On Wed, 2014-03-12 at 15:46 +0100, Joan Balagueró wrote:
> Hello Oleg,
> 
> Thanks. But taking this example:
> 
> RequestConfig.Builder builder = RequestConfig.custom(); if (proxyPort != 0) {
>     builder.setProxy(new HttpHost(proxyHost, proxyPort)) } RequestConfig 
> config = builder.build();
> 
> The question is this can be modified once the CloseableHttpClient is already 
> created. This means that I had a proxy but not now, thus I want to remove 
> this proxy from the HttpClient.
> 
> Must I create another RequestConfig.Builder, reconfigure it with all options  
> (without the setProxy, because now I don't have proxy) and set it again to 
> the HttpClient?
> 
> Thanks,
> Joan.
> 

Use a custom route planner if you want more control over request
routing.

http://hc.apache.org/httpcomponents-client-4.3.x/tutorial/html/connmgmt.html#d5e342

Oleg 




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to