- or download this
use LWP::Simple;
my $url = 'http://site.com/file.html';
print "Getting\n";
my $content = get $url;
print "Done\n";
- or download this
Getting
Done
Getting
Hang
- or download this
use LWP::UserAgent;
use LWP;
...
$ua->agent($ident); # set the id
$ua->timeout($timeout); # timeout
my $req = new HTTP::Request GET => 'http://site.com';