Thread LWP::UserAgent - 404er trotz funktionierender Webseite (12 answers)
Opened by pktm at 2009-06-29 17:56

pktm
 2009-06-29 18:08
#122722 #122722
User since
2003-08-07
2921 Artikel
BenutzerIn
[Homepage]
user image
So?

Code: (dl )
1
2
3
4
5
6
7
8
9
10
	# create the user agent we want to use to check the websites
my $ua = LWP::UserAgent->new(agent => 'Opera/9.80 (Macintosh; Intel Mac OS X; U; en) Presto/2.2.15 Version/10.00');
$ua->default_header(ACCEPT_LANGUAGE => 'en');
$ua->max_redirect(24);

my $req = HTTP::Request->new(GET => $uri);
$req->header('Accept' => 'text/html');

my $res = $ua->head( $uri );
return $res->status_line();


Bringt leider keine Ă„nderung :(
http://www.intergastro-service.de (mein erstes CMS :) )

View full thread LWP::UserAgent - 404er trotz funktionierender Webseite