Hello, I am having some trouble running a secure login script. I need mechanize for its link following capabilities, yet i cannot get mech to login using the identical commands as the version of the script using LWP::Agent.
I am using:
then when i print response content, when $agent is of LWP::Agent i am logged in, but with I am redirected to the login screen.
This is EXTREMELY frustrating since this isnt even supposed to be what I am doing. any help would be greatly appreciated.
I am using:
Code:
$response = $agent->get($url);
my $form = HTML::Form->parse($response->{_content}, $response->base());
$form->param("username", "---------");
$form->param("password", "---------");
$response = $agent->request($form->click);
This is EXTREMELY frustrating since this isnt even supposed to be what I am doing. any help would be greatly appreciated.