所以我有一个相当复杂的环境变量_JAVA_OPTIONS
export _JAVA_OPTIONS="-Dhttp.proxyHost=my-proxy.com -Dhttp.proxyPort=1080
-Dhttps.proxyHost=my-proxy.com -Dhttps.proxyPort=1080
-DsocksProxyHost=my-socks-proxy.com
-Dhttp.nonProxyHosts=\"localhost|127.0.0.1|*.local|*.my-co.com\""
然而,当我尝试使用Apache HTTP客户端API从Scala代码中运行它时,我无法使其忽略内部服务器URL。
https://username:pwd@server.my-co.com/foo/bar
我是否需要为HTTPS指定不同的nonProxyHosts
?文档没有说明这样的参数。我错过了什么?我使用的是Mac。
my-co.com
应该通过my-socks-proxy.com
还是my-proxy.com
访问? - jaume