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] [Comment Edited] (HTTPCLIENT-1617) HttpClientBuilder does not utilize http.nonProxyHosts
Date Thu, 19 Feb 2015 13:59:12 GMT

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

Oleg Kalnichevski edited comment on HTTPCLIENT-1617 at 2/19/15 1:58 PM:
------------------------------------------------------------------------

In system mode HttpClientBuilder creates a route planner that effectively delegates to a ProxySelector
returned by ProxySelector#getDefault(). The default implementation of the ProxySelector (sun.net.spi.DefaultProxySelector)
is expected to take 'http.nonProxyHosts' into consideration.

{code:java}
routePlannerCopy = new SystemDefaultRoutePlanner(schemePortResolverCopy, ProxySelector.getDefault());
{code}

Oleg




was (Author: olegk):
In system mode HttpClientBuilder creates a route planner that effectively delegates to a ProxySelector
returned by ProxySelector#getDefault(). The default implementation of the ProxySelector (sun.net.spi.DefaultProxySelector)
is expected to take 'http.nonProxyHosts' consideration.

{code:java}
routePlannerCopy = new SystemDefaultRoutePlanner(schemePortResolverCopy, ProxySelector.getDefault());
{code}

Oleg



> HttpClientBuilder does not utilize http.nonProxyHosts
> -----------------------------------------------------
>
>                 Key: HTTPCLIENT-1617
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1617
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 4.3.6
>            Reporter: Joe Gamache
>
> The header documentation for HttpClientBuilder.java (in pkg: org.apache.http.impl.client)
states that when the 'useSystemProperties()' method is invoked that system settings for http.nonProxyHosts
will be honored.  However, the code never references that Property, nor does it seem that
any invoked code references that property.  In testing, when that property has been set, http
calls still go through the Proxy.   
> Please fix so that when the property is set, http calls to one of the listed hosts does
not pass through the Proxy Server.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message