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

HTTPClient doesn't send authentication header in threaded environment

    XMLWordPrintableJSON

Details

    Description

      Using HTTPClient with multiple threads and basic authentication seems to create a race condition. The request headers sometimes don't contain the authorization entry, which results in a 401 (although the username and password credentials are correctly set).

      Attachments

        1. ThreadedHttpBasicAuthTest.java
          3 kB
          Lennart Diedrich

        Activity

          People

            Unassigned Unassigned
            lennart.diedrich Lennart Diedrich
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: