Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^2: WWW::Mechanize - Could not connect to a server

by jesuashok (Curate)
on Mar 20, 2007 at 03:41 UTC ( #605632=note: print w/replies, xml ) Need Help??

in reply to Re: WWW::Mechanize - Could not connect to a server
in thread WWW::Mechanize - Could not connect to a server

I Don't know how to check whether my system uses Proxy, through Perl. because when I tried to
print $ENV{HTTP_PROXY} , "\n";
Prints nothing.
But I could see a IP address set in Internet Explorer. Can I use that Ip as follows in my perl code ?
$ENV{HTTP_PROXY} = "xx.xx.xx.xx:<port_number>";
I am Sorry, if this questions annoy you.

hmmm ....let me think what did I said

Replies are listed 'Best First'.
Re^3: WWW::Mechanize - Could not connect to a server
by chargrill (Parson) on Mar 20, 2007 at 03:48 UTC

    It's been a while since I've tried to mech from inside a proxy. (Yes, I've just verbized the short name for WWW::Mechanize).

    Give that a shot, or try following the other suggestions frm the FAQ, for which you've already got the link above.

    If that fails (and I don't see how, since now you've confirmed you're behind a proxy) there are some other troubleshooting steps you can try near the end of the Mech FAQ, including checking $mech->status after every attempt to get something.

    s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; = qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://605632]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2018-05-21 10:53 GMT
Find Nodes?
    Voting Booth?