[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Download only part of a file using LuaSocket HTTP
- From: Ignacio Burgueño <ignaciob@...>
- Date: Fri, 30 Jan 2009 14:11:58 -0200
RJP Computing wrote:
Is there a way to only download part of a file using LuaSocket and the
HTTP request() function? Does it involve writting my own sink? If so,
does anyone have an example that does this. The file is text and so I am
just trying to download the first 1k of it, because that contains the
information I need. Is this possible? Thanks.
If your server supports partial transfers, you could try with
"Content-Range" header.
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.16
Regards,
Ignacio