Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F3E6210BCE for ; Fri, 14 Mar 2014 12:32:46 +0000 (UTC) Received: (qmail 3098 invoked by uid 500); 14 Mar 2014 12:32:46 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 2895 invoked by uid 500); 14 Mar 2014 12:32:45 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 2787 invoked by uid 99); 14 Mar 2014 12:32:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Mar 2014 12:32:42 +0000 Date: Fri, 14 Mar 2014 12:32:42 +0000 (UTC) From: "Vikram (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Reopened] (HTTPCLIENT-1481) Http Proxy with SSL target not working MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HTTPCLIENT-1481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vikram reopened HTTPCLIENT-1481: -------------------------------- Downloaded httpclient 4.3.3, i suppose this would be the latest. Ran the example code in "ClientExecuteProxy.java". Just replaced the target value from "localhost" to "issues.apache.org". Test 1 - Commented the proxy bit. The example ran successfully. Test 2 - Uncommented the proxy part, failed with the same error as in 4.0.1. So i don't think this is something to do with the latest version. Getting the following exception in console when i run it, Executing request GET / HTTP/1.1 to https://issues.apache.org:443 via http://127.0.0.1:8080 Mar 14, 2014 5:56:05 PM org.apache.http.impl.execchain.RetryExec execute INFO: I/O exception (org.apache.http.NoHttpResponseException) caught when processing request to {tls}->http://127.0.0.1:8080->https://issues.apache.org:443: The target server failed to respond Mar 14, 2014 5:56:05 PM org.apache.http.impl.execchain.RetryExec execute INFO: Retrying request to {tls}->http://127.0.0.1:8080->https://issues.apache.org:443 Mar 14, 2014 5:56:06 PM org.apache.http.impl.execchain.RetryExec execute INFO: I/O exception (org.apache.http.NoHttpResponseException) caught when processing request to {tls}->http://127.0.0.1:8080->https://issues.apache.org:443: The target server failed to respond Mar 14, 2014 5:56:06 PM org.apache.http.impl.execchain.RetryExec execute INFO: Retrying request to {tls}->http://127.0.0.1:8080->https://issues.apache.org:443 Mar 14, 2014 5:56:07 PM org.apache.http.impl.execchain.RetryExec execute INFO: I/O exception (org.apache.http.NoHttpResponseException) caught when processing request to {tls}->http://127.0.0.1:8080->https://issues.apache.org:443: The target server failed to respond Mar 14, 2014 5:56:07 PM org.apache.http.impl.execchain.RetryExec execute INFO: Retrying request to {tls}->http://127.0.0.1:8080->https://issues.apache.org:443 Exception in thread "main" org.apache.http.NoHttpResponseException: issues.apache.org:443 failed to respond at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:143) at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:57) at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:260) at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:161) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.http.impl.conn.CPoolProxy.invoke(CPoolProxy.java:138) at com.sun.proxy.$Proxy0.receiveResponseHeader(Unknown Source) at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:271) at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123) at org.apache.http.impl.execchain.MainClientExec.createTunnelToTarget(MainClientExec.java:455) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:115) at com.httpclient3.TestClient.main(TestClient.java:41) Note - For proxy, i am using tcpmon in proxy mode (no security) just specifying the listen port. I have posted my detailed code and usecase in stackover flow if you need any references - http://stackoverflow.com/questions/22343149/apache-http-client-4-0-1-ssl-proxy > Http Proxy with SSL target not working > -------------------------------------- > > Key: HTTPCLIENT-1481 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1481 > Project: HttpComponents HttpClient > Issue Type: Bug > Components: HttpClient > Affects Versions: 4.2.6 > Reporter: Vikram > > I am using HttpClient 4.0.1 and trying to configure proxy for my target https server but its not working. > Case being Http Client -> Http Proxy -> Https Target. > Direct communication between the client and the target is working fine, but when i introduce the proxy. Followed the example provided here - http://hc.apache.org/httpcomponents-client-4.2.x/httpclient/examples/org/apache/http/examples/client/ClientExecuteProxy.java > Tried posting this on the user lists but no one seems to respond there, is this really supported? -- This message was sent by Atlassian JIRA (v6.2#6252) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org