Subject: | Mech cannot fetch wikipedia |
Mech cannot fetch wikipedia. I can get to the same url on the same
machine via lynx or wget. A sample url is: http://en.wikipedia.org/
In lynx or wget I get the Wikipedia front page. If I run this:
use WWW::Mechanize;
my $mech = WWW::Mechanize->new();
$mech->get("http://en.wikipedia.org/");
print "Status " . $mech->status . "\n";
print $mech->content;
I get a status of 403 and page saying access denied. I use mech for
other sites without a problem, so I assume this is not some kind of
configuration error on my part. This seems to be specific to Wikipedia.