Perl: the Markov chain saw | |
PerlMonks |
Re^2: WWW::Mechanize submission problemby no21 (Sexton) |
on Feb 05, 2006 at 13:22 UTC ( [id://528065]=note: print w/replies, xml ) | Need Help?? |
I agree. Sorry about that.
This sub is what is currently working to log me in to Yahoo with ActivePerl:
And the original error message was actually with the $mech->field() methods. They failed on the Linux box first. After re-reading the documentation on CPAN, I tried a different way of setting the values for those fields, and I was able to fix that problem by using this code instead of the two $mech->field lines above above:
However, apparently the submission is not working because I am not downloading the HTML content that should be there after logging in. It actually downloads an HTML page telling me that I haven't logged in. So now my linux box code looked like this:
That's when I began Dumping the form to make sure the login and password fields were actually being set to the correct values, and they are. So tried a few other submission methods other than $mech->click(). Like the following: ...and...
None of these worked. Again, any help would be greatly appreciated.
In Section
Seekers of Perl Wisdom
|
|