Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

WWW::Mechanize can't GET; no helpful error message comes back

by SamCG (Hermit)
on Jun 06, 2013 at 15:21 UTC ( #1037476=perlquestion: print w/ replies, xml ) Need Help??
SamCG has asked for the wisdom of the Perl Monks concerning the following question:



Not sure what to make of this error or how to go about troubleshooting it... using strawberry perl portablezip edition on a Virtual machine, so I'm not sure if that's what's causing this... Note that because I used -e on a windows cmd line I need to escape the double-quotes.
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.


-----------------
s''limp';@p=split '!','n!h!p!';s,m,s,;$s=y;$c=slice @p1;so brutally;d;$n=reverse;$c=$s**$#p;print(''.$c^chop($n))while($c/=$#p)>=1;

Comment on WWW::Mechanize can't GET; no helpful error message comes back
Download Code
Re: WWW::Mechanize can't GET; no helpful error message comes back
by perlfan (Curate) on Jun 06, 2013 at 15:27 UTC
    DNS or internetz not working?


      No, those are all working fine, at least when I open up IE (not my personal browser choice, but meh).


      -----------------
      s''limp';@p=split '!','n!h!p!';s,m,s,;$s=y;$c=slice @p1;so brutally;d;$n=reverse;$c=$s**$#p;print(''.$c^chop($n))while($c/=$#p)>=1;
        IE configured to use a proxy or something?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1037476]
Approved by Jim
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2014-08-20 23:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (125 votes), past polls