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

"Vary: Cookie" header not working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.1.3
    • 4.3 Alpha1
    • HttpCache
    • None

    Description

      When using a CachingHttpClient with a target server that uses a cookie and "Vary: Cookie" header in order to have different variants depending on the value of the cookie, there is only one variant stored in the cache and sent whatever the value of the cookie.
      The problems comes from the cookie header that does not really exist in the request, it is just created by the HttpClient while executing the request. As a result the variant key is always "

      {cookie=}

      ".

      Attachments

        Activity

          People

            Unassigned Unassigned
            fx.bonnet Francois-Xavier Bonnet
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: