Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-1878

Automatic redirect handling incorrectly parses cookies

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.5.3
    • None
    • None
    • Linux, Java 8 OpenJDK

    Description

      When a request is handled as a redirect, the HttpClient incorrectly does not handle any `SetCookie` headers but instead just starts the redirect.

      This issue affects both the HttpClient and HttpAsyncClient.

      To reproduce:

      1. Create two pages, one redirecting to the next.
      2. Let the first page set a cookie
      3. Dump all cookies sent to the second page

      A current workaround is to handle redirects manually, since that way cookies are parsed normally.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bertptrs Bert Peters
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: