http://www.perlmonks.org?node_id=605628


in reply to WWW::Mechanize - Could not connect to a server

Are you behind a proxy?

If you are, WWW::Mechanize respects your $ENV{HTTP_PROXY} environment variable - you could try setting that in your program to whatever your browser is set to.

Update: Just checked the Mech FAQ, How to use mech through a proxy might be of interest, too



--chargrill
s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; = qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)