in reply to lwp (mechanize) authentication
#!/usr/bin/perl use strict; use warnings; use LWP::AuthenAgent; my $url = 'http://jigsaw.w3.org/HTTP/Basic/'; my $ua = new LWP::AuthenAgent; my $response = $ua->request(new HTTP::Request 'GET' => $url); print $response->decoded_content, "\n";
|
|---|