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

Sneha Murganoor commented on HTTPCLIENT-2369:
---------------------------------------------

But I see Classic Apache HTTPClient works. 
{quote}HttpClientBuilder builder; 
builder.disableConnectionState();
..
HttpRoutePlanner planner = (target, context) -> {
           HttpHost httpHost = new HttpHost("https", target.getHostName(), 443);
            HttpHost proxy = new HttpHost("https", "ourserver.com", 443);
            HttpRoute route = new HttpRoute(
                     httpHost,
                     null,
                     proxy,
                     true,
                     RouteInfo.TunnelType.TUNNELLED,
                     RouteInfo.LayerType.LAYERED
             );
             return route;
};
builder.setRoutePlanner(planner);
return builder.build();
 
response = this.client.execute(request, cacheContext);
log.info("Request isTunneled: " + context.getHttpRoute().isTunnelled());
log.info("Proxy: " + context.getHttpRoute().getProxyHost());{quote}
I see 
{quote}Request isTunneled: true

Proxy: [https://ourserver.com:443|https://ourserver.com/]
{quote}

> Does HttpAsync Client Support Proxy Tunnel
> ------------------------------------------
>
>                 Key: HTTPCLIENT-2369
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2369
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient (async)
>    Affects Versions: 5.4
>            Reporter: Sneha Murganoor
>            Priority: Major
>
> I'm working on implementing a client that needs to connect to HTTPS endpoints 
> through an HTTPS proxy. I'd like to use 
> CloseableHttpAsyncClient/InternalHttpAsyncClient from Apache HttpComponents 
> AsyncClient library for this purpose. Does it support HTTPS proxy tunneling 
> to HTTPS targets?
> Also, if CloseableHttpAsyncClient//InternalHttpAsyncClient isn't suitable for 
> this scenario, what alternatives would you recommend?
>  
> Thanks in Advance,
> Sneha



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org
For additional commands, e-mail: dev-h...@hc.apache.org

Reply via email to