I find a solution. using custom MyHttpRoutePlanner extends DefaultRoutePlanner
On Thu, Aug 14, 2014 at 6:50 PM, Li Li <fancye...@gmail.com> wrote: > 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-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org