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

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]
[Discipulus]: here spring has sprung, so the warm is available without holidays..
[Discipulus]: Oh I got a (small but better than nothing) salary increase!! beer for all!
[cavac]: Not sure if it's only my connection, but seems rather slow to respond today.
[cavac]: Could some of you just log in for a second and check, for example, the tail daemon logfile?

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2017-02-22 08:55 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (325 votes). Check out past polls.