imrags has asked for the wisdom of the Perl Monks concerning the following question:
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";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP proxy user authentication
by Khen1950fx (Canon) on May 27, 2011 at 07:39 UTC | |
|
Re: LWP proxy user authentication
by Anonymous Monk on May 26, 2011 at 11:07 UTC |