hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HTTPCLIENT-1844) CloseableHttpClient error : org.apache.http.NoHttpResponseException failed to respond
Date Mon, 08 May 2017 13:20:04 GMT

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oleg Kalnichevski resolved HTTPCLIENT-1844.
-------------------------------------------
    Resolution: Invalid

 Lê Văn,

According to the log the proxy HttpClient attempted to establish a tunnel though dropped the
connection without sending back a status response
{noformat}
2017-05-08 10:07:30 [Thread-4] DEBUG:: http-outgoing-0 >> "CONNECT wtfismyip.com:443
HTTP/1.1[\r][\n]"
2017-05-08 10:07:30 [Thread-4] DEBUG:: http-outgoing-0 >> "Host: wtfismyip.com[\r][\n]"
2017-05-08 10:07:30 [Thread-4] DEBUG:: http-outgoing-0 >> "User-Agent: Apache-HttpClient/4.5.3
(Java/1.8.0_121)[\r][\n]"
2017-05-08 10:07:30 [Thread-4] DEBUG:: http-outgoing-0 >> "[\r][\n]"
2017-05-08 10:07:30 [Thread-4] DEBUG:: http-outgoing-0 << "end of stream"
{noformat}

This looks a problem with your proxy server.

Oleg

> 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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message