From: Taco Hoekwater <taco@elvenkind.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: on imposition and local or external files
Date: Fri, 07 Nov 2008 11:52:10 +0100 [thread overview]
Message-ID: <49141DDA.6010609@elvenkind.com> (raw)
In-Reply-To: <fe8d59da0811070226w46c3ddc4we030917765120c07@mail.gmail.com>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2008-11-07 10:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-06 23:08 Pablo Rodríguez
2008-11-07 10:03 ` Taco Hoekwater
2008-11-07 10:26 ` luigi scarso
2008-11-07 10:50 ` Hans Hagen
2008-11-07 10:52 ` Taco Hoekwater [this message]
2008-11-07 11:22 ` luigi scarso
2008-11-08 14:22 ` Peter Münster
[not found] ` <6faad9f00811070409r7f30cd66o938c0b8ce56e54e7@mail.gmail.com>
2008-11-08 12:39 ` Pablo Rodríguez
2008-12-15 20:32 ` Patrick Gundlach
2008-11-08 14:57 ` Peter Münster
2008-11-08 19:21 ` Pablo Rodríguez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49141DDA.6010609@elvenkind.com \
--to=taco@elvenkind.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).