I am trying to open a website using ActiveState's ActivePerl (WWW::Mechanize
).
$mech -> get($url);
The above mentioned line shows an error:
Error GETing URL : Unauthorized
The URL has a form in which the credentials are to be entered and only on submitting the form will it load the URL. I.e., before the URL loads, it asks for the username and password. How do I keep the URL on hold and load it after entering the username and password?