logo       

Re: Download manager - problem solved: msg#00035

lang.perl.modules.lwp

Subject: Re: Download manager - problem solved

Hi,

I have found how to insert HTTP headers in the line:

$ua->get($url, ":content_file" => $file);

...But I still can't find how to get and send cookies in other way than
trying to manually add the headers for Cookies.

Thanks.

Teddy

----- Original Message -----
From: "Octavian Rasnita" <orasnita@xxxxxx>
To: <libwww@xxxxxxxx>
Sent: Friday, September 17, 2004 9:06 PM
Subject: Download manager


Hello,

I want to create a module that will have a method that should work like a
download manager.
It will be able to automaticly resume downloads, meaning that if a local
file with a given name exists, it will start downloading the remote file
skipping the number of bytes that file contains, and adding the rest of the
remote file to the local one.

I have seen that the recommended way for saving a file using LWP is to use
something like:

$ua->get($url, ":content_file" => $file);

But I would like to know if there is a more flexible way that allow setting
some headers (like the referer, and setting the Range of bytes that will be




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise