httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <>
Subject Re: Apache2::Cookie odd return values
Date Tue, 02 Aug 2005 16:58:18 GMT
John ORourke <> writes:

> Right, I've solved my problem with a hack and some RTFSing, but I think 
> I've found a bug either in the docs or Apache2::Cookie...
> Basically if I read cookies like this:
> $cookie_hash_ref = APR::Request::Apache2->handle($r)->jar();
> it works, I can treat the return as a hash of cookies.
> However, if I (following the Apache2::Cookie man page) go:
> $jar=Apache2::Cookie->new($r);
> foreach $name ($jar->cookies()){ blah blah }
> then the names are actually the full baked header value (eg. "name=value")

Strangely enough, everything you talk about here is by design.
And it's also why we recommend the new APR::Request:: modules
over Apache2::Cookie and friends, because it's IMO a simpler API.

Joe Schaefer

View raw message