perl with proxy

Newbie Member
7Jan2009,15:27   #1
best_praveen's Avatar
Could any help me to access web site by LWP module in perl , through proxy
Team Leader
8Jan2009,15:57   #2
pradeep's Avatar
Code: Perl
use LWP::UserAgent;
$ua = LWP::UserAgent->new;
$ua->agent("MyApp/0.1 ");
$ua->proxy(['http','ftp'] => 'http://proxy.mycompany.com:1080');