hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vikram (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPCLIENT-1481) Http Proxy with SSL target not working
Date Fri, 14 Mar 2014 13:08:43 GMT

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13934963#comment-13934963
] 

Vikram commented on HTTPCLIENT-1481:
------------------------------------

Below is with the wire enabled. This is for the first try, then does the same thing for multiple
retries.

Executing request GET / HTTP/1.1 to https://issues.apache.org:443 via http://127.0.0.1:8080
2014/03/14 18:32:21:500 IST [DEBUG] RequestAddCookies - CookieSpec selected: best-match
2014/03/14 18:32:21:514 IST [DEBUG] RequestAuthCache - Auth cache not set in the context
2014/03/14 18:32:21:515 IST [DEBUG] PoolingHttpClientConnectionManager - Connection request:
[route: {tls}->http://127.0.0.1:8080->https://issues.apache.org:443][total kept alive:
0; route allocated: 0 of 2; total allocated: 0 of 20]
2014/03/14 18:32:21:530 IST [DEBUG] PoolingHttpClientConnectionManager - Connection leased:
[id: 0][route: {tls}->http://127.0.0.1:8080->https://issues.apache.org:443][total kept
alive: 0; route allocated: 1 of 2; total allocated: 1 of 20]
2014/03/14 18:32:21:542 IST [DEBUG] MainClientExec - Opening connection {tls}->http://127.0.0.1:8080->https://issues.apache.org:443
2014/03/14 18:32:21:545 IST [DEBUG] HttpClientConnectionOperator - Connecting to /127.0.0.1:8080
2014/03/14 18:32:21:602 IST [DEBUG] HttpClientConnectionOperator - Connection established
127.0.0.1:30572<->127.0.0.1:8080
2014/03/14 18:32:21:605 IST [DEBUG] headers - http-outgoing-0 >> CONNECT issues.apache.org:443
HTTP/1.1
2014/03/14 18:32:21:605 IST [DEBUG] headers - http-outgoing-0 >> Host: issues.apache.org:443
2014/03/14 18:32:21:605 IST [DEBUG] headers - http-outgoing-0 >> Proxy-Connection: Keep-Alive
2014/03/14 18:32:21:605 IST [DEBUG] wire - http-outgoing-0 >> "CONNECT issues.apache.org:443
HTTP/1.1[\r][\n]"
2014/03/14 18:32:21:605 IST [DEBUG] wire - http-outgoing-0 >> "Host: issues.apache.org:443[\r][\n]"
2014/03/14 18:32:21:606 IST [DEBUG] wire - http-outgoing-0 >> "Proxy-Connection: Keep-Alive[\r][\n]"
2014/03/14 18:32:21:606 IST [DEBUG] wire - http-outgoing-0 >> "[\r][\n]"
2014/03/14 18:32:22:609 IST [DEBUG] wire - http-outgoing-0 << "end of stream"
2014/03/14 18:32:22:609 IST [DEBUG] DefaultManagedHttpClientConnection - http-outgoing-0:
Close connection
2014/03/14 18:32:22:609 IST [DEBUG] DefaultManagedHttpClientConnection - http-outgoing-0:
Shutdown connection
2014/03/14 18:32:22:609 IST [DEBUG] MainClientExec - Connection discarded
2014/03/14 18:32:22:610 IST [DEBUG] DefaultManagedHttpClientConnection - http-outgoing-0:
Close connection
2014/03/14 18:32:22:610 IST [DEBUG] PoolingHttpClientConnectionManager - Connection released:
[id: 0][route: {tls}->http://127.0.0.1:8080->https://issues.apache.org:443][total kept
alive: 0; route allocated: 0 of 2; total allocated: 0 of 20]
2014/03/14 18:32:22:611 IST [INFO] RetryExec - 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
2014/03/14 18:32:22:611 IST [DEBUG] RetryExec - The target server failed to respond <org.apache.http.NoHttpResponseException:
The target server failed to respond>org.apache.http.NoHttpResponseException: The target
server 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:50)

2014/03/14 18:32:22:612 IST [INFO] RetryExec - Retrying request to {tls}->http://127.0.0.1:8080->https://issues.apache.org:443


> 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


Mime
View raw message