cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Invalid cookie expiry time

From: imran shaik <sk.imran_at_yahoo.com>
Date: Fri, 12 Jan 2007 05:40:26 -0800 (PST)

Hi Daniel,
  
  Then what is the solution left for me?
  
  As I can't change the cookie expiry date format, revert back to old version?
  
  Or Is it necessary to format the cookie date as the cookie is received?
  
  thanks,
  Imran

Daniel Stenberg <daniel_at_haxx.se> wrote: On Thu, 11 Jan 2007, imran shaik wrote:

> The problem I could see is with the cookie expiry time being set as
> expires=Thursday, 01-Jan-1970 01:00:00 GMT; path=/; secure
> on my i386 machine.

That is not a legal cookie expire date format.

> curl 7.14.0 (i386-pc-solaris2.10) libcurl/7.14.0 OpenSSL/0.9.7g zlib/1.1.4 Protocols: ftp gopher telnet dict ldap http file https ftps

...

> curl 7.9.8 (sparc-sun-solaris2.8) libcurl 7.9.8 (OpenSSL 0.9.6g)

...

> Is this the known problem with curl or could be anything else??

I rewrote the date parser a while ago and between these two versions. The new
one does not support the wide range of formats that the old one did.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
 
---------------------------------
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.
Received on 2007-01-12