From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/45372 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: on imposition and local or external files Date: Fri, 07 Nov 2008 11:52:10 +0100 Message-ID: <49141DDA.6010609@elvenkind.com> References: <491378F2.5070603@web.de> <4914127E.5090301@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1226055268 6080 80.91.229.12 (7 Nov 2008 10:54:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Nov 2008 10:54:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 07 11:55:30 2008 connect(): Connection refused Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KyOzx-0001C4-L1 for gctc-ntg-context-518@m.gmane.org; Fri, 07 Nov 2008 11:55:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2731A1FC2F; Fri, 7 Nov 2008 11:54:18 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24916-01-3; Fri, 7 Nov 2008 11:52:57 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BEE591FBAA; Fri, 7 Nov 2008 11:52:57 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D98C31FB30 for ; Fri, 7 Nov 2008 11:52:56 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21299-01-21 for ; Fri, 7 Nov 2008 11:52:17 +0100 (CET) Original-Received: from plane.elvenkind.com (elvenknd.xs4all.nl [82.95.203.226]) by ronja.ntg.nl (Postfix) with ESMTP id 2DA4D1FBBA for ; Fri, 7 Nov 2008 11:52:11 +0100 (CET) Original-Received: from glenlivet.elvenkind.com (glenlivet.elvenkind.com [10.10.0.6]) by plane.elvenkind.com (Postfix) with ESMTP id D18BE8041717 for ; Fri, 7 Nov 2008 11:52:10 +0100 (CET) User-Agent: Thunderbird 2.0.0.12 (X11/20080305) In-Reply-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:45372 Archived-At: 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 ___________________________________________________________________________________