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 09:36:16 -0800 (PST)

Daniel,
  
  I put up the following situation to you . I have posted the cookies below.
  I see that the session is set twice. Once it is set normally, as you see in the first cookie, In the next cookie it is set to null.
  
  In the first cookie, I see the Date format to be ok. If curl's date parser had failed, then why do I get the second cookie at all? Also, in the cookies from the same site , is there any possibility that I get cookies of different formats?
  
  Or Is this the curl related problem?
  
  thanks,
    Imran
  
  HTTP/1.1 303 See Other
  Date: Fri, 12 Jan 2007 17:13:40 GMT
  Content-length: 106
  Content-type: text/html
  P3p: CP="NON CURa ADMa DEVa TAIa IVAa OUR DELa SAMa LEG UNI PRE"
  Set-cookie:ctrust-session-v001d=AAAAAQABAEBFMUxYOxh46hrBja8wE28ko%2FCb4gdGcL46sN%2F2az5OQ3AHgYvTj1efCV8%2B3w0lv5Dds%2Bdu0cMsb7lrnRgNS5%2Fw; secure;
  
  
  HTTP/1.1 200 OK
  Date: Fri, 12 Jan 2007 17:29:31 GMT
  Content-type: text/html
  P3p: CP="NON CURa ADMa DEVa TAIa IVAa OUR DELa SAMa LEG UNI PRE"
  Set-Cookie: LLLIVEPRODNav=; domain=.lehman.com; expires=Thursday, 01-Jan-1970 01:00:00 GMT; path=/; secure
  Set-Cookie: ctrust-session-v001d=; domain=.lehman.com; expires=Thursday, 01-Jan-1970 01:00:00 GMT; path=/; secure
  
  

Daniel Stenberg <daniel_at_haxx.se> wrote: On Fri, 12 Jan 2007, imran shaik wrote:

> Where can I get the valid time formats?

In the cookie RFCs and the original Netscape cookie spec.

> Can I know why the old formats were removed, though few weservers still use
> those formats?

We had to rewrite the date parser since the old one was horrible in several
aspects. I then went through all the formats we needed to support, and added a
bunch more and people have been happy since. This change was done in September
2004.

-- 
  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