Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
P is for Practical
 
PerlMonks  

Re: Connection refused error

by Jonathan (Curate)
on Jan 17, 2002 at 14:29 UTC ( #139470=note: print w/ replies, xml ) Need Help??


in reply to Connection refused error

Shouldn't be too hard, get your proxy's name and number. Something like below works for me.

use LWP::UserAgent; my $ua = new LWP::UserAgent; $ua->proxy(['http', 'ftp'] => 'http://your_proxy.com:portnumber'); my $req = new HTTP::Request 'GET', "http://www.whatyouwant.com/blah.html"; $req->proxy_authorization_basic("$user_name","$user_password"); $res = $ua->request($req);


Comment on Re: Connection refused error
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2014-04-21 10:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (492 votes), past polls