in reply to http upload simulating browser
--Jimuse strict; require LWP::UserAgent; my $ua = LWP::UserAgent->new; my $req = HTTP::Request->new('GET', 'http://server.com/cgi-bin/upload. +cgi'); my $resp = $ua->request($req, 'c:/test.dat'); if ($resp->is_success) { print "Success.\n"; } else { print "Failed.\n"; }
Update: Sorry about that. I misread the original post and was thinking download.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: http upload simulating browser
by IlyaM (Parson) on Dec 07, 2001 at 01:54 UTC |