Re: cookie_jar
Derek J. Balling (dredd@megacity.org)
Tue, 15 Jun 1999 14:33:31 -0700
Nevermind... I figured this one out all on my own (duh, forgot the port 80). :)
Next problem to follow soon (want to beat on it a little more first).
D
At 11:05 AM 6/15/99 -0700, Derek J. Balling wrote:
>OK, this may seem very boneheaded, but how come:
>
>$cookie_jar = HTTP::Cookies->new;
>$cookie_jar->set_cookie('1','A','A-VALUE','/','.domain.com', 0, 0, 999999,
0 );
>$cookie_jar->set_cookie('1','Y','Y-VALUE','/','.domain.com', 0, 0, 999999,
0 );
>print "Cookies:\n";
>print $cookie_jar->as_string();
>
>... doesn't yield me a cookie jar with two cookies in it? I've tried
>replacing the "0"'s with FALSE's, although admittedly, I have no idea what
>those boolean values MEAN (are they documented somewhere? certainly not in
>the HTTP::Cookies perldoc..., nor is the "version" value... :( )
>
>I know in theory I can just rip out cookies from response headers, but the
>cookies themselves in this case are dynamic (and to retrieve each pair from
>a response header would unnecessarily double the workload of the Perl
>program in question).
>
>D
>