[guest - Wed Oct 2 20:19:28 2002]:
Show quoted text> you can add cookie support to WWW::Automate (and thus WWW::Mechanize)
> by doing the following - maybe this should be added to the docs.
>
> # Create a new WWW::Automate agent
> $agent = WWW::Automate->new();
>
> # Support Cookies
> $agent->cookie_jar({});
Does this work? I've just tried:
use WWW::Mechanize;
$agent = WWW::Mechanize->new();
$agent->cookie_jar({ file => "cookies.txt" });
$agent->get("
http://site/with_cookies.html");
.. and the file isn't created or populated.
I could really use support for cookies in W::M. Any tips with this
would be very much appreciated.