http://www.perlmonks.org?node_id=139470


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);