Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://139470]
help
Chatterbox?
[Discipulus]: how I can tell in which perl version was included List::Util 1.29 ?
[Discipulus]: to specify use 5.0.x to be sure to have pairmap from the module..

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2017-05-25 09:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?