geosolutions-it / http-proxy

Lean and Mean HTTP Proxy written in Java
GNU General Public License v3.0
21 stars 31 forks source link

http.nonProxyHosts ignored by http-proxy #47

Closed randomorder closed 1 year ago

randomorder commented 6 years ago

I struggled a bit with the configuration of HTTP Proxy, apparently, only some of the Proxy System variables (https://docs.oracle.com/javase/7/docs/api/java/net/doc-files/net-properties.html) are picked up by http-proxy. Specifically, http.proxyHost and http.proxyPort are working fine but it looks like http.nonProxyHosts is ignored.

https://github.com/geosolutions-it/http-proxy/blob/master/src/main/java/it/geosolutions/httpproxy/HTTPProxy.java#L147

Gnafu commented 5 years ago

This may help to remove that code block and use system properties:

http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/impl/client/HttpClientBuilder.html

tdipisa commented 1 year ago

Closed through https://github.com/geosolutions-it/MapStore2/issues/7950#issuecomment-1092836366