Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 making s'mores by the fire in the courtyard of the Monastery: (15)
As of 2015-07-28 21:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (259 votes), past polls