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

DecompressingHttpClient fails to request on https host

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2 Final
    • Fix Version/s: 4.2.1
    • Component/s: HttpClient (classic)
    • Labels:
      None
    • Environment:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: