Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the WWW-Mechanize CPAN distribution.

Report information
The Basics
Id: 1516
Status: resolved
Priority: 0/
Queue: WWW-Mechanize

People
Owner: Nobody in particular
Requestors: jesse [...] fsck.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Date: Sun, 15 Sep 2002 21:25:22 -0400
From: Jesse <jesse [...] fsck.com>
To: bug-www-mechanize [...] rt.cpan.org
Subject: WWW::Mechanize should support cookies
wouldn't it be nice to test RT with WWW::M. -- jesse reed vincent -- root@eruditorum.org -- jesse@fsck.com 70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90 "It's buried in the desert, got sand in it, melts Nazis. You know, the Ark of the Covenant" -- siva
From: B.Schofield [...] mailbox.gu.edu.au
[jesse@fsck.com - Sun Sep 15 21:25:26 2002]: Show quoted text
> wouldn't it be nice to test RT with
WWW::M. 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- Show quoted text
>cookie_jar({});
everything then works as expected! -Brook <B.Schofield@mailbox.gu.edu.au>
From: chris [...] cpan.org
[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.
This has always worked. I have a code snippet from Jesse in the docs for the next version after 0.33.