Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by runrig (Abbot)
on Jun 06, 2013 at 17:38 UTC ( #1037493=note: print w/ replies, xml ) Need Help??

Comment on Re^3: WWW::Mechanize can't GET; no helpful error message comes back
Re^4: WWW::Mechanize can't GET; no helpful error message comes back
by SamCG (Hermit) on Jun 06, 2013 at 18:04 UTC
    Likely it is. Ugh, now I have to remember how to figure out how to get around that... hmmm...



    -----------------
    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;
Re^4: WWW::Mechanize can't GET; no helpful error message comes back
by PerlSufi (Pilgrim) on Jun 06, 2013 at 18:29 UTC
    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
      That doesn't fix anything if a proxy is involved. See the LWP::UserAgent proxy() and env_proxy() methods.
Re^4: WWW::Mechanize can't GET; no helpful error message comes back
by PerlSufi (Pilgrim) on Jun 07, 2013 at 15:54 UTC
    If that's the case, the only other thing I can think of is
    $ua->no_proxy();
      That doesn't help either if the OP is behind a firewall and needs to use a proxy.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-07-11 21:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (235 votes), past polls