Perl Home Search CGI

2.4 Access to protected URIs


14.02.2006

2.3 https XML POST with LWP [  up  ] - [ top ] 3 Etc

use LWP::UserAgent;

my $ua = LWP::UserAgent->new;
my $req = HTTP::Request->new(GET => 'http://www.yourdomain.com/private/');
   $req->authorization_basic('user', 'pass');

print $ua->request($req)->as_string;

copyright by reto - created with mytexi