|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker mailing list Archives
[ curl-Bugs-2890369 ] cookie expires time parse and processing bug
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Sun, 01 Nov 2009 18:34:18 +0000
Bugs item #2890369, was opened at 2009-11-01 10:34
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
In order to remove some specific cookie from the browser's (or curl) cookies list server may send to the client already expired cookie. libcurl improperly handles such cookie If server uses specific timestap "Thu, 01-Jan-1970 00:00:00 GMT". Example:
Set-Cookie: SomeCookie=blabla; domain=.some.domain.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; path=/
Timestamp "Thu, 01-Jan-1970 00:00:00 GMT" is parsed by curl_getdate() to the time_t(0) and libcurl improperly treats this cookie as session one instead of expired.
File: cookie.c
File: cookie.c
Possible solution: add extra special value "1" (expired) to the expiration time in addition to the values "-1" (invalid) and 0 (session cookie) so date "Thu, 01-Jan-1970 00:00:00 GMT" will be handled correctly as expired.
----------------------------------------------------------------------
You can respond by visiting:
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info