[
https://issues.apache.org/jira/browse/HTTPCLIENT-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16000852#comment-16000852
]
Lê Văn Thanh commented on HTTPCLIENT-1844:
------------------------------------------
Can you check code from link : https://pastebin.com/tj1Ewq2P
method testHttpURLConnection() you will see line code :
Proxy proxy = new Proxy(Proxy.Type.SOCKS, new InetSocketAddress("localhost",
9150));
HttpURLConnection uc = (HttpURLConnection) url.openConnection(proxy);
> CloseableHttpClient error : org.apache.http.NoHttpResponseException failed to
> respond
> -------------------------------------------------------------------------------------
>
> Key: HTTPCLIENT-1844
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1844
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: HttpClient (async)
> Affects Versions: 4.5.3
> Environment: JDK : Java 8
> IDE : Netbean
> EVR : MacOS
> Reporter: Lê Văn Thanh
> Attachments: log_bug
>
>
> I tried to using CloseableHttpClient with tor proxy but i got a messenge :
> org.apache.http.NoHttpResponseException: The target server failed to respond
> My code I using CloseableHttpClient:
> I format my code at : https://pastebin.com/tj1Ewq2P
> method : testCloseableHttpClient()
> But when i using HttpURLConnection then ok , so I don't know why
> CloseableHttpClient not ok.
> My code i using HttpURLConnection :
> method : testHttpURLConnection()
> Many thanks !
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]