Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by SamCG (Hermit)
on Jun 06, 2013 at 15:21 UTC ( [id://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;

Replies are listed 'Best First'.
Re: WWW::Mechanize can't GET; no helpful error message comes back
by perlfan (Vicar) 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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2024-04-19 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found