use LWP::UserAgent; use HTTP::Request::Common; $DEV_URL = 'http://server2.com/page.html'; my $ua = LWP::UserAgent->new; my $response = $ua->request(POST $DEV_URL, [ jsp => 'login', USER_ID => 'DEV', PASSWORD => 'SIM01', ]); print "RESPONSE: " . $response->as_string() . "\n";