Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Perl (http://www.go4expert.com/forumdisplay.php?f=29)
-   -   perl with proxy (http://www.go4expert.com/showthread.php?t=15753)

best_praveen 7Jan2009 15:27

perl with proxy
 
Could any help me to access web site by LWP module in perl , through proxy

pradeep 8Jan2009 15:57

Re: perl with proxy
 
Code: Perl

use LWP::UserAgent;
$ua = LWP::UserAgent->new;
$ua->agent("MyApp/0.1 ");
$ua->proxy(['http','ftp'] => 'http://proxy.mycompany.com:1080');



All times are GMT +5.5. The time now is 01:24.