cURL / Mailing Lists / curl-users / Single Mail

curl-users

Probable Bug in Curl cookie handling 'expires=+6s'

From: Farhad Tarapore <bilaribilari_til_at_yahoo.com>
Date: Mon, 15 Jan 2007 01:42:18 -0800 (PST)

Hi,
In the 7.15.4 version of Curl, the code is not able to handle cookies of the form

expires=+6s

Ideally, such cookie values should be handled by translating them to an absolute timestamp. But Curl directly calls curl_getdate (in parsedate.c) on the '6s' string and results in a value of -1 for expires. This is incorrect.

The earlier version of curl (which had getdate.c and getdate.y), used to take care of this and used to convert the +6s into an absolute timestamp.

Probably some changes in date parsing have caused this to get regressed.

Can you please tell me if this is a bug, or it is intended? The browser (Firefox 2.0.1) treats such cookies correctly i.e. it handles expires=+6s.

Thanks and regards,
Farhad.

 
---------------------------------
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.
Received on 2007-01-15