How can I use a ClosableHttpClient from HttpClient-4.5 over a configured SOCKS proxy? Is there a way to accomplish this without specifying a global SOCKS proxy with java -DsocksProxyHost
or setting a custom default ProxySelector
?
The explicit documention about proxies, is as far as I understand only about HTTP proxies (which I imply by defining such a proxy as HttpHost
). For me it looks like "Connection socket factories" is more relevant.