geektron has asked for the wisdom of the Perl Monks concerning the following question:
I've read and re-read the perldoc for WWW::Mechanize and Test::WWW::Mechanize, and it *appears* that I'm creating a valid cookie jar, but there are no cookies to be found.
I've looked through the source code to be sure, and not *all* of the cookies are set via Javascript, so my assumption is that I'm doing something wrong with the cookie jar ...
Now, if the frontpage *does* in fact set a cookie, I should see something in the Dumper output that indicates an accepted cookie, correct?my $robot = Test::WWW::Mechanize->new( cookie_jar => {} ); $robot->get( $frontPage ); warn Dumper $robot->{cookie_jar};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WWW::Mechanize and cookies
by Errto (Vicar) on Dec 30, 2004 at 02:02 UTC | |
by geektron (Curate) on Dec 30, 2004 at 03:35 UTC | |
|
Re: WWW::Mechanize and cookies
by Solo (Deacon) on Dec 30, 2004 at 14:36 UTC |