Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by PerlSufi (Pilgrim)
on Jun 06, 2013 at 18:29 UTC ( #1037499=note: print w/ replies, xml ) Need Help??


in reply to Re^3: WWW::Mechanize can't GET; no helpful error message comes back
in thread WWW::Mechanize can't GET; no helpful error message comes back

it worked for me doing this:

use WWW::Mechanize; my $mech = WWW::Mechanize->new(); $mech->get ('http://google.com'); my $content = $mech->content; print $content;
I don't think it is necessary to put the 'or die "Can't create mech" part? Also,I have a brief tutorial that I have requested for comment using WWW::Mechanize that is in the meditations section


Comment on Re^4: WWW::Mechanize can't GET; no helpful error message comes back
Download Code
Re^5: WWW::Mechanize can't GET; no helpful error message comes back
by runrig (Abbot) on Jun 06, 2013 at 23:13 UTC
    That doesn't fix anything if a proxy is involved. See the LWP::UserAgent proxy() and env_proxy() methods.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2014-07-25 21:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls