JDK-6641309 : Wrong Cookie separator used in HttpURLConnection
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 5.0
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2007-12-13
  • Updated: 2011-03-08
  • Resolved: 2011-03-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b25Fixed
Related Reports
Relates :  
Description
HttpURLConnection uses ';' as a separtor for multiple cookies in the HTTP request headers, as it is specified in RFC 2965. However in the "real world" the expected separator is a semi-colon followed by a space (probably due to early implementation in Netscape).
The net effect is that many web servers can't parse correctly the Cookie: header as set by HttpURLConnection.

Comments
EVALUATION Description says it all. The fix is simple, and needed. Will fix as soon as possible.
13-12-2007