sorry to say, but Mechanize uses LWP::UserAgent under the bonnet as far as I can gather. So the net result remains the same.
use WWW::Mechanize; my $mech = WWW::Mechanize->new( autocheck => 1 ); $mech->get($url); if ( $mech->success() ) { print $mech->content,"\n"; } else { print "status is: " . $mech->status,"\n"; }
Returns
try_web_again.pl Error GETing http://perlmeme.org/tutorials/lwp.html: Unexpected keys - + LocalHost at /home/bill/bin/try_web_again.pl line 15
Also, according to cpan...
Database was generated on Tue, 29 Jul 2014 06:06:23 GMT All modules are up to date for LWP
So it seems thast I have the latest LWP
regards.
In reply to Re^2: LWP::UserAgent error Unexpected keys - LocalHost
by trendle
in thread LWP::UserAgent error Unexpected keys - LocalHost
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |