Font
Wiki:Tipp zum Debugging: use Data::Dumper; local $Data::Dumper::Useqq = 1; print Dumper \@var;
[thread]4368[/thread]

LWP::UserAgent: Datei herunterladen

Readers: 2


<< >> 2 entries, 1 page
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;
guest Gast
 2003-10-19 21:06
#38422 #38422
Hi,
ist es möglich mit LWP::UserAgent einen Stream herunterzuladen?
Oder auch sonst eine normale Datei??

mfg
<< >> 2 entries, 1 page



View all threads created 2003-10-19 21:34.