hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Li Li <fancye...@gmail.com>
Subject Re: how to set http proxy like DnsResolver
Date Thu, 14 Aug 2014 12:15:41 GMT
I find a solution. using custom MyHttpRoutePlanner extends DefaultRoutePlanner

On Thu, Aug 14, 2014 at 6:50 PM, Li Li <fancyerii@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-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org

View raw message