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

ProxyClient always throws ProtocolException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.1.3
    • 5.1.4, 5.2
    • HttpClient (classic)
    • None

    Description

      When setting up HTTP proxy tunnel using ProxyClient, the following exception is thrown:

       

      Exception in thread "main" org.apache.hc.core5.http.ProtocolException: Target host is unknown
          at org.apache.hc.core5.http.protocol.RequestTargetHost.process(RequestTargetHost.java:77)
          at org.apache.hc.core5.http.protocol.DefaultHttpProcessor.process(DefaultHttpProcessor.java:107)
          at org.apache.hc.core5.http.impl.io.HttpRequestExecutor.preProcess(HttpRequestExecutor.java:246)
          at org.apache.hc.client5.http.impl.classic.ProxyClient.tunnel(ProxyClient.java:174)
          at ProxyClientTest.main(ProxyClientTest.java:7)

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            rsmirnov Rostyslav Smirnov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: