- or download this
my $username = "someuser";
my $password = "password";
...
$req = HTTP::Request->new(GET => $url);
$req->authorization_basic($username,$password);
print $ua->request($req)->as_string;
- or download this
## LWP!
use LWP;
...
my $response=$browser->get($url);
print $response->content();
- or download this
## WWW::Mechanize
#!/usr/bin/perl
...
$mechanize->get($url);
# Retrieve the desired page
print $mechanize->content();