See WWW::Mechanize about the autocheck parameter to ->new.
In reply to Re: handling WWW::Mechanize Error GETing by Corion in thread handling WWW::Mechanize Error GETing by NoSyu