|P is for Practical|
Authentication with WWW::Mechanizeby cdherold (Monk)
|on Sep 19, 2005 at 18:36 UTC||Need Help??|
cdherold has asked for the
wisdom of the Perl Monks concerning the following question:
Now that I am feeling relatively comfortable about sending my user/pass data over the net to the https server that I am logging onto, I am at Stage 3 of my quest to screen scrape my brokerage account ... getting past the embattlements that are trying to keep my WWW::Mechanize agent out.
So once again, I come to the Monks for direction.
I will start with the current state of my code ...
Please assume that I am not fully clear on most concepts.
In the code above, I pulled out a value called DV_DATA from the webpage when I first pull it down. This is a "hidden" input variable that appears to be time-based and assigned when the user enters the log-in page. I then include it as an input. I am not sure this is correct.
With the cookies, I am not sure what is going on, but I've been reading around and what I put in seems to be the general consensus for acceptable code to include a cookie jar in WWW::Mechanize. I know I need a cookie jar, but other than that I do not know what I should be doing with it.
When I run the code, it outputs these two Not Found statements ...
Has anybody seen any of this before? Am I going in the right direction? What are the things that I am forgetting to consider?
Thanks Again Monks,