jwagenleitner / groovy-wslite

Lightweight SOAP and REST webservice clients for Groovy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

System proxy fallback doesn't honor nonProxyHosts.

Trinition opened this issue · comments

HTTPClient tries to use the system proxy if one isn't explicitly set. It does this by honoring the http.proxyHost and http.proxyPort system properties to construct a proxy. It does not honor the http.nonProxyHosts system property. What this means is that while any other Java connection will honor the Proxy blacklist, wslite does not.

It might be simple to honor the http.nonProxyHosts property in the existing code. Alternatively, maybe a java.net.ProxySelector can be queried (the sun.net.spi.DefaultProxySelector already honors the blacklist).