fightliteracy has asked for the wisdom of the Perl Monks concerning the following question:
but their server doesn't seem to recognize the cookies being sent, even though that is the same data being used by netscape/IE/Opera etc, etc. thus i am unable to get the image.$req = new HTTP::Request 'GET',"http://ftp.website.com/download.asp?f= +/image.gif $req->push_header(cookie=>"ID=b9a15e1"); $req->push_header(cookie=>"SESSION=LLMODEMBGI"); my $ua = new LWP::UserAgent; $rc = $ua->request($req); my $image = $rc->content;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Get an image off a server and send cookies
by merlyn (Sage) on Oct 16, 2001 at 05:10 UTC | |
|
Re: Get an image off a server and send cookies
by cacharbe (Curate) on Oct 16, 2001 at 05:21 UTC |