Perl-Sensitive Sunglasses | |
PerlMonks |
Re: WWW::Mechanize and Cookiesby dorko (Prior) |
on May 02, 2005 at 03:42 UTC ( [id://453119]=note: print w/replies, xml ) | Need Help?? |
Hello buddyq, A quick Google for "WWW::Mechanize cookies" found an article by Chris Ball as the first result. I quote: As a note for your own experiments, WWW::Mechanize supports cookies - in that the requestor is a normal LWP::UserAgent object - but they aren't enabled by default. If you need to support cookies, then your script should call "use HTTP::Cookies; $agent->cookie_jar(HTTP::Cookies->new);" on your agent object in order to enable session-volatile cookies for your own code.NOTE: I haven't used cookies with WWW::Mechanize, but I've used them with LWP. So take this post with a grain of salt. Cheers,
Brent
-- Yeah, I'm a Delt.
In Section
Seekers of Perl Wisdom
|
|