Re: skip bad cookie value in Apache2::Cookie::Jar?

Mark Hedges <[email protected]> Tue, 21 Dec 2010 17:09:28 -0800 (PST)
Newsgroups gmane.comp.apache.apreq
Message-ID <[email protected]>
On Tue, 21 Dec 2010, Joe Schaefer wrote:
> > Could Apache2::Cookie::Jar maybe have an option to skip
> > NOTOKEN  errors when reading the jar?  Then it would do
> > something like  below.  Or does the eval have to happen in
> > the 'each %attrs' loop of  Jar->new().
>
> The issue has nothing to do with browsers.  It has to do
> with 3rd party apps that generate bogus cookies. If you
> want apreq to ignore those cookies, just use eval {} and
> trap the exception.
>
> If you want to fix those 3rd party cookie apps, it's good
> that apreq lets you know there's a problem.
>

That makes sense.  Now I get the jar with eval { } in my
thing only if a directive is set to do that.  Thanks for
the input.

--mark--