Leser: 25
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/perl -w -T
use strict;
use WWW::Mechanize;
my $url = "http://localhost";
my $mech = WWW::Mechanize->new();
$mech->get($url);
my $resp = $mech->response();
print $resp->content."\n";
1 2 3 4 5 6 7
#!/usr/bin/perl -w -T use strict; use WWW::Mechanize; my $url = "http://localhost"; my $mech = WWW::Mechanize->new(); my $response = $mech->get($url); print $response->content."\n";
if ($response -> is_success) {}
³É(Éͱ³IÊO©´³É0´ó,Q(Ï/Ê.V´Ñòlô!ú`U\QUÅf-
print $resp->decoded_content."\n";
Parsing of undecoded UTF-8 will give garbage when decoding entities at /usr/share/perl5/WWW/Mechanize.pm line 514.
QuoteParsen von UTF-8 decodierten Unsinn geben bei der Decodierung von Unternehmen
open (STDERR,">/temppfad/www_mechanize_error.txt");
$mech = WWW::Mechanize -> new ( quiet => 1 );