PugSA has asked for the wisdom of the Perl Monks concerning the following question:
Hi Fellow Monks
I've been searching through the old nodes to solve my problem but can't seem to get an answer
my knowledge on HTTP is limited to 2 days
All I was told is to get a zip file through HTTP
I found the following code where I can retrieve a htm file through http but I can't find a way to fetch a file like a zip file through http and put it in a specific folder in the web server.
Please Help
PugSAmy $req = HTTP::Request->new(GET => 'http://localhost/dbconnect/instru +ctions.htm'); $req->header(Accept => "text/html, */*;q=0.1"); my $res = $ua->reques +t($req); # Check the outcome of the response if ($res->is_success) { print HTTP $res->content; } else { print LOG $res->status_line, "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Get a file with HTTP
by planetscape (Chancellor) on Oct 26, 2005 at 06:33 UTC | |
|
Re: Get a file with HTTP
by svenXY (Deacon) on Oct 26, 2005 at 06:38 UTC | |
|
Re: Get a file with HTTP
by Corion (Patriarch) on Oct 26, 2005 at 06:41 UTC | |
|
Re: Get a file with HTTP
by radiantmatrix (Parson) on Oct 26, 2005 at 19:30 UTC | |
by PugSA (Beadle) on Oct 27, 2005 at 11:36 UTC | |
|
Re: Get a file with HTTP
by murugu (Curate) on Oct 26, 2005 at 06:41 UTC | |
|
Re: Get a file with HTTP
by Anonymous Monk on Oct 26, 2005 at 07:02 UTC |