hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Li Li <fancye...@gmail.com>
Subject how to set http proxy like DnsResolver
Date Thu, 14 Aug 2014 10:50:22 GMT
I know how to set proxy by
RequestConfig config = RequestConfig.custom()
                    .setProxy(proxy)
                    .build();
But I want to use different proxy for different host.
in the constructor of PoolingHttpClientConnectionManager, I can pass
it a DnsResolver so I can do anything of dns resolver. how can I do
with proxy setting?

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message