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"; }
In reply to Get a file with HTTP by PugSA
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |