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

The PostMethod did not bring back response headers from proxy servers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.0 Beta 1
    • 2.0 Beta 1
    • HttpClient (classic)
    • None
    • Operating System: other
      Platform: PC
    • 19250

    Description

      Description:

      When doing tunnelling through proxy servers, in case of 407 response, the
      wrapper class ConnectMethod failed to pass the response header back to the
      wrapped method (PostMethod in our case). As result, the response headers are
      not passed back to the application.

      Proposed Fix:
      Change the ConnectMethod to use the wrapped method instance to get response
      headers. It will be reinitialized again if "CONNECT" is successful.

      Also have to modify the addProxyAuthorizationRequestHeader code to use the
      wrapped method for the authenticator to work.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--ConnectMethod.patch
          0.9 kB
          Bin Chen
        2. ASF.LICENSE.NOT.GRANTED--ssltunnel.patch
          11 kB
          Oleg Kalnichevski
        3. ASF.LICENSE.NOT.GRANTED--ssltunnel.patch
          13 kB
          Oleg Kalnichevski
        4. ASF.LICENSE.NOT.GRANTED--fakeResponse.patch
          10 kB
          Michael Becke
        5. ASF.LICENSE.NOT.GRANTED--applet2.http
          57 kB
          Bin Chen

        Activity

          People

            olegk Oleg Kalnichevski
            bin.chen@sabre-holdings.com Bin Chen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: