fionbarr has asked for the wisdom of the Perl Monks concerning the following question:
1 use strict; 2 use warnings; 3 4 use LWP::UserAgent; 5 6 my $url='http://<>.com/justifier'; 7 my $ua = LWP::UserAgent->new; 8 $ua->credentials($url, 'test', 'user', 'pass'); 9 my $response = $ua->get($url); 10 $response->is_success or die $response->status_line; 11 print $response->decoded_content;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: lwp (mechanize) authentication
by Corion (Patriarch) on Jul 25, 2011 at 13:06 UTC | |
|
Re: lwp (mechanize) authentication
by Khen1950fx (Canon) on Jul 25, 2011 at 14:32 UTC |