Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6641315

HttpCookie a bit too strict when parsing expiration date

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 7
    • 6
    • core-libs
    • None
    • 6
    • generic
    • generic

      HttpCookie expects the format to be "EEE',' dd-MMM-yyyy HH:mm:ss 'GMT'" (as specified in the proper RFC)
      e.g.:
       - FPS=ds;expires=Wed, 19-Aug-2015 16:00:00 GMT;path=/;domain=www.yahoo.com
      But some sites have a slightly different formats:
       - FPHH=2;expires=Sun, 02 Dec 2007 13:23:04 GMT;path=/;domain=www.yahoo.com
       - FPCK=R0WC0eQA;expires=Fri Nov 23 2007 14:23:03 GMT+0100 (CET);path=/;domain=www.yahoo.com

      A less strict date parsing is necessary for a wider compatibility.

            jccollet Jean-Christophe Collet (Inactive)
            jccollet Jean-Christophe Collet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: