On Mon, 15 Aug 2005 13:40:19 -0700, Johnc wrote:
> Hi,  I'm trying to write a bot to login to the scottrade trading site, 
> and while I'm taking care to grok hidden fields
> and I've initalized a cookie jar for my LWP agent, posting the login 
> info to the form still just returns the login form
> again (no error message).

Use WWW::Mechanize and you won't have to grok hidden fields or cookies.

> Are there any tutorials out there that address common caveats for this 
> sort of thing?  Or what else do I potentially
> need to take care of to make sure my LWP agent is getting all of the 
> necessary session data to log in?

The big danger is JavaScript.  I have found no alternative to looking at
the source and analyzing the source by hand to see whether JavaScript
might be modifying any form parameters.  However so far this hasn't taken
me very long.

-- 
Peter Scott
http://www.perlmedic.com/
http://www.perldebugged.com/

Reply via email to