# method 1: my $req = new HTTP::Request POST => 'http://www.environet.gov.on.ca/dwws-app/DWWSApp'; $req->content_type('application/x-www-form-urlencoded'); $req->content('username=frankie&password=tomato'); # method 2: $req = HTTP::Request->new(GET => 'http://www.environet.gov.on.ca/dwws-app/DWWSApp?username=frankie&password=tomato');