luigi scarso wrote:
> 
> curl as os.spawn ?
> Why don't use lua-curl
> http://luaforge.net/projects/lua-curl/

300kb extra in the binary and an extra portability headache.

Luatex actually includes the luasocket libraries, so that
would be a better option, but it takes time to write the code
for a http/ftp fetcher to replace curl completely.

If you (or someone else) is interested in writing a replacement
for luat-crl.lua, have a look at:

   http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/

The bare bones usage (for http) is as simple as this:

   local http = require("socket.http")
   local content, responsecode, extra = http.request(arg[1])
   io.write (content)

but in real life, you have to deal with partial content,
errors codes, url escaping, etc. etc.

Best wishes,
Taco

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to