Closed GoogleCodeExporter closed 9 years ago
Hi,
Proxy vole does only work with the standard Java network stack and http client
out of the box.
For the Apache hhtpclient you need to use a different approach like this:
ProxySearch proxySearch = ProxySearch.getDefaultProxySearch();
ProxySelector myProxySelector = proxySearch.getProxySelector();
SystemDefaultRoutePlanner routePlanner = new SystemDefaultRoutePlanner(
myProxySelector);
CloseableHttpClient httpclient = HttpClients.custom()
.setRoutePlanner(routePlanner)
.build();
See also
http://hc.apache.org/httpcomponents-client-ga/tutorial/html/connmgmt.html#d5e475
Have fun,
- Rossi
Original comment by rosstaus...@googlemail.com
on 9 Feb 2015 at 8:45
Great! Thank you Rossi.
Pedro Nunes
Original comment by pgh.nu...@gmail.com
on 21 Feb 2015 at 10:56
Original issue reported on code.google.com by
pgh.nu...@gmail.com
on 29 Jan 2015 at 9:12