in reply to WWW::Mechanize form submit w/ password failing [SOLVED]

If all else fails, compare what a Real Browser sends over the wire with what WWW::Mechanize sends. Adapt your code until the bytes your code sends are indistinguishable from what a Real Browser sends.

A convenient tool are the Mozilla HTTP Live Headers for Firefox. Likely, other browsers have similar tools.

For WWW::Mechanize, see LWP::Debug on how to enable a dump of the incoming and outgoing data.

The sledgehammer tool for tracking what really goes over the wire would be Wireshark.

  • Comment on Re: WWW::Mechanize form submit w/ password failing

Replies are listed 'Best First'.
Re^2: WWW::Mechanize form submit w/ password failing
by ogmogul (Initiate) on Nov 14, 2013 at 17:05 UTC
    Thanks for the tips! In Chrome I was able to see that the password was being encrypted in the post after I looked at the network tab in the Developer Toolbox. Thanks for getting my brain on the right track!