Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8129622 javadoc clarification on cookie parsing
  3. JDK-8175377

Release Note: HttpCookie parsing only works for response cookie headers

XMLWordPrintable

    • Verified

      The current implementation of `java.net.HttpCookie` can only be used to parse cookie headers generated by a server and sent in a HTTP response as a `Set-Cookie` or `Set-Cookie2` header. It does not support parsing of client generated cookie headers.

      This is not completely clear from the API documentation of that class. The documentation could be updated to make the current behavior clearer, or preferably, the implementation could be updated to support both behaviors in a future release.

            michaelm Michael McMahon
            michaelm Michael McMahon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: