SamCG has asked for the wisdom of the Perl Monks concerning the following question:
I:\perl>perl -e "use WWW::Mechanize;$mech=WWW::Mechanize->new() or die + \"Cannot create mech: $!\n\";$mech->get('http://www.google.com') or +die \"Cannot get: $!\";$page=$mech->content();print $page;" Error GETing http://www.google.com: Can't connect to www.google.com:80 + (Bad host name) at -e line 1.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WWW::Mechanize can't GET; no helpful error message comes back
by perlfan (Parson) on Jun 06, 2013 at 15:27 UTC | |
by SamCG (Hermit) on Jun 06, 2013 at 16:17 UTC | |
by runrig (Abbot) on Jun 06, 2013 at 17:38 UTC | |
by PerlSufi (Friar) on Jun 07, 2013 at 15:54 UTC | |
by runrig (Abbot) on Jun 10, 2013 at 17:02 UTC | |
by SamCG (Hermit) on Jun 06, 2013 at 18:04 UTC | |
by PerlSufi (Friar) on Jun 06, 2013 at 18:29 UTC | |
by runrig (Abbot) on Jun 06, 2013 at 23:13 UTC |