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

DecompressingHttpClient fails to request on https host

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.2 Final
    • 4.2.1
    • HttpClient (classic)
    • None
    • Ubuntu / openjdk-7

    Description

      When using the DecompressingHttpClient on a https host, if the client is executed with "execute(HttpUriRequest request, HttpContext context)" or any other execute method that do not provide the HttpHost target, the target is generated from the getHttpHost method.

      Problem in this method is that uri.getAuthority() may not contain scheme, nor port. So this results in issuing https queries to port 80.

      Follow a patch that fixes this

      Attachments

        1. fix-host.patch
          2 kB
          Guillaume Castagnino

        Issue Links

          Activity

            People

              Unassigned Unassigned
              guilc Guillaume Castagnino
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: