in reply to LWP Authorization Problem

I guess then, in that case (since the page doesn't use HTTP authentication -- my mistake). . .

You're going to have to reverse-engineer their webpage a little bit. It's usually only as hard as finding out the <FORM> values of the two input boxes it uses for username and password.

Assuming these two values are named Username and Password, we can either use HTTP::Request POST or HTTP::Request GET to send that page our values.

Play around with this (untested):
# 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=franki +e&password=tomato');

. . . where dwws-app/DWWSApp is the name of the form in the ACTION attribute of the <FORM> element.

. .. post back with your findings!

--twerq