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.
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.
- duplicates
-
JDK-6644726 Cookie management issues
-
- Closed
-