Thank you! I've seen that "range" parameter. Can I read more about it?
I am wondering if I could say that I want to read from byte 1024 to byte 2048... or other ranges. Teddy, Teddy's Center: http://teddy.fcc.ro/ Email: [EMAIL PROTECTED] ----- Original Message ----- From: "Gisle Aas" <[EMAIL PROTECTED]> To: "Octavian Rasnita" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, February 15, 2003 11:06 PM Subject: Re: Getting the last 1 kb of a file "Octavian Rasnita" <[EMAIL PROTECTED]> writes: > Please tell me how to get the last 1 kb of the file avoiding to download all > the file. > > I've read the POD documentation for LWP::UserAgent, but I couldn't find > anything helpful. You need to read the HTTP spec[1] or some other source decribing the HTTP protocol. This should work on servers that implement it: my $res = $ua->get("http://....", Range => "bytes=-1024", ); [1] http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.1 > Thank you very much. Your welcome! Regards, Gisle
