in reply to https login using WWW::Mechanize

$ua->add_handler("request_send", sub { shift->dump; return }); $ua->add_handler("response_done", sub { shift->dump; return });

Replies are listed 'Best First'.
Re^2: https login using WWW::Mechanize
by baghu (Initiate) on Aug 10, 2010 at 02:59 UTC

    Hey

    Thanks... I can now see the cookies getting padded to the requests, but on the third request (where I'm redirected to the homepage)I just see

    Cookie2: $Version="1".

    In response to that request, the http response cookie has the field "loggedin=false" which was 'true' in all the prior transactions. I was even able to see my user ID & other personal info fetched from the server in the cookie fields in the first 2 trransactions. So I assume I was logged into the server before this transaction happened. Am I still logged in ?

    'Client-SSL-Warning: Peer certificate not verified' for the first 2 requests. Is that an issue ?

    The field 'Connection' is always 'close' in response to my requests where I set that field to 'keep-alive'.

    How do I remain logged in to continue with further transactions ?

    Please help.... thanks

      forgot to mention, that there is very little data in the 'cookie' field in the above mentioned GET request & Cookie2: $Version="1". The cookies in the prior requests contain a lot of information. This request appends barely any information in the cookies.

      I've disabled Java settings in the firefox browser & in firebug I can see the web server updating cookies pertaining to login, user info.... frequently.

      How do I get this thing working ?? Any help please....