At 2/3/2003 12:01 AM -0800, Gisle Aas wrote:
I dimly remember that I did this once, and that it normally works fine. The only caveats I remember is that some servers simply ignore the byte-range header, and send a full response right from the beginning; and some servers just don't understand HEAD at all, and others reply to HEAD as if it were a GET!"Octavian Rasnita" <[EMAIL PROTECTED]> writes: > Is it possible to download a file with LWP starting from a certain byte in > the file and not from the beginning of the file? Yes. > Can you give me some hints how could I do that? http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.2
I guess you could test for whether the server understands the byte-range header by requesting a range of just two bytes, and if it replies with more, then you know it doesn't do ranges and so you can't do resumes.
--
Sean M. Burke [EMAIL PROTECTED] http://search.cpan.org/~sburke/
