good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Cookiejar for www::mechanizeby Aragorn (Curate) |
on Jun 16, 2004 at 07:49 UTC ( [id://367135]=note: print w/replies, xml ) | Need Help?? |
You can create an in-memory cookie jar using the constructor of WWW::Mechanize. Using an existing cookie jar, you can use the HTTP::Cookies module. The file format this module uses is different from, for example, Mozilla. You can use HTTP::Cookies::Netscape or HTTP::Cookies::Explorer to read these browser-specific files.
Using an existing file of cookies with WWW::Mechanize can be done as follows: (Substitute HTTP::Cookies::Netscape or HTTP::Cookies::Explorer to use a cookie file from those browsers. Arjen
In Section
Seekers of Perl Wisdom
|
|