Thread LWP::UserAgent: Datei herunterladen (1 answers)
Opened by esskar at 2003-10-19 21:34

esskar
 2003-10-19 21:34
#38421 #38421
User since
2003-08-04
7321 articles
ModeratorIn

user image
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
use strict;
use LWP::UserAgent;

my $ua = LWP::UserAgent->new(env_proxy => 1,
keep_alive => 1,
timeout => 30,
);
my $req = HTTP::Request->new('GET', 'http://www.perl-community.de/');
my $res = $ua->request($req, '/sponsoren.html');

print $res->as_string if $res->is_success;

View full thread LWP::UserAgent: Datei herunterladen