in reply to Re: Perl Mechanize login issue
in thread Perl Mechanize login issue

I turned off js on my browser and it doesn't work and that's because it does a redirect after the login. I have already accommodated for the redirect in my code and this was working up until the day after the cert expired.
<html> <body onload="javascript:submitAction();"> <form name="groupForm" method="post" action="/vzw-scat-ui/RedirectToGr +oup.do"><div><input type="hidden" name="org.apache.struts.taglib.html +.TOKEN" value="d61fa121c70d93339c7bc8fe53936299"></div> </form> </body> <script language="JavaScript"><!-- function submitAction(){ document.forms[0].submit(); } //--></script>

Replies are listed 'Best First'.
Re^3: Perl Mechanize login issue
by Gangabass (Vicar) on Jan 13, 2011 at 13:17 UTC

    So you just make a redirect after login or submit this second hidden redirect form?

      I submit the second form.

        You need to look at the HTTP headers your browser sends to the target site (in HttpFox) and repeat all this headers in your code. For example, this may be User-Agent or x, y coordinates of the submit button sended to the target site...

        Also you can try to investigate it with disabled JavaScript in your browser: Firebug (add-on for Firefox) allow you to add HTML to the code. So you may try to add submit button to your second form and press it.