Thread lwp::useragent: uebles problem :O (15 answers)
Opened by RPerl at 2007-01-21 17:30

RPerl
 2007-01-21 19:20
#48207 #48207
User since
2006-11-26
384 Artikel
BenutzerIn

user image
dennoch mal ein bsp code von cpan wo der error kommt:

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/perl
require LWP::UserAgent;

my $ua = LWP::UserAgent->new;
$ua->timeout(10);
$ua->env_proxy;

my $response = $ua->get('http://search.cpan.org/');

if ($response->is_success) {
print $response->content; # or whatever
}
else {
die $response->status_line;
}

View full thread lwp::useragent: uebles problem :O