httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <>
Subject Re: Apache2::Cookie cookie parse error "Expected token not present"
Date Thu, 24 Dec 2009 21:19:54 GMT
Apreq doesn't generate cookies that would create a "1" in
the client's Cookie header.  It's some other application that
did that, but you can tell apreq to ignore the 1 by using eval:

my $req = APR::Request::Apache2->handle($r);
my $jar = eval {$req->jar()} || $@->jar;

eval will trap the error and put an APR::Request::Error object
in $@.  Calling ->jar on that object won't cause another exception
to be thrown.


>From: 陈建春 <>
>Sent: Wed, December 23, 2009 10:55:41 PM
>Subject: Apache2::Cookie cookie parse error "Expected token not present"
> >
>>Our web site use
>>but it displays  "Expected token not present" on the page occasionally.
>>I log the cookie string in header when the error occur, the abnormal
>cookie would like this:
>>rtime30013728=0; ltime30013728=1261566403616;
>>rtime30013728=0; ltime30013728=1261566403616;
>>I compared them with the normal cookie string, I find all of the
>abnormal cookie string contain "1;"
>>It is sure that the "1;" cause the Apache2::Cookie parser error.
>>I wonder how and why the "1;" is added, and how to fix it.
>陈建春 | ChenJianchun
>Maxthon® --每个人的互联网中心!         上网从傲游开始!
>傲游天下科技有限公司(中国) >| 

View raw message