Hello monks
I'm trying to write a simple code which will get details of the website using LWP.I also tried using basic_authorization, http::headers etc.use LWP::Simple; use LWP::UserAgent; my $user = 'user'; my $pwd = 'password'; my $browser = LWP::UserAgent->new(); $browser->credentials('http://proxy.srvr.com:8080/','domain',$user=>$p +wd); my $url = 'http://www.google.com'; my $response = $browser->get($url); print $response->header("Server"),"\n";
In reply to LWP proxy user authentication by imrags
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |