I am getting following error page in return (Surprisingly when I go to www.google.com through Mozilla or IE it allows me to go to it.) Any idea what has gone wrong?use strict; use WWW::Mechanize; my $mech = WWW::Mechanize->new(); $mech->get("http://www.google.com"); print $mech->content();
<H1>ERROR</H1> <H2>Cache Access Denied</H2> <HR noshade size="1px"> <P> While trying to retrieve the URL: <A HREF="http://www.google.com">http://www.google.com</A> <P> The following error was encountered: <UL> <LI> <STRONG> Cache Access Denied. </STRONG> </UL> </P> <P>Sorry, you are not currently allowed to request: <PRE> http://www.google.com</PRE> from this cache until you have authenticated yourself. </P> <P> You need to use Netscape version 2.0 or greater, or Microsoft Internet Explorer 3.0, or an HTTP/1.1 compliant browser for this to work. Plea +se contact the <A HREF="mailto:root">cache administrator</a> if you have difficulties authenticating yourself or <A HREF="http://squid.YOURDOMAINHERE.com/cgi-bin/chpasswd.cgi">change< +/a> your default password. </P> <BR clear="all"> <HR noshade size="1px">
20060505 Janitored by Corion: Moved error message HTML into code tags
In reply to Mechanize module by sanPerl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |