use HTTP::Request::Common qw(POST); use LWP::UserAgent; use strict; my $ua = LWP::UserAgent->new(); my $req = POST 'http://home.sff.net/login.asp', [ username => 'jonathanmark', RecordID => 4142]; print "The netloc is" , $req->url->netloc, ". "; $ua->credentials($req->url->netloc, "home.sff.net", 'jonathanmark', 'nottherealpassword'); my$content = $ua->request($req)->as_string; print "Content is $content";