hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Correct usage (instantiation of httpClient, proxy, resource releasing)
Date Fri, 07 Jan 2011 12:59:26 GMT
On Fri, 2011-01-07 at 11:51 +0100, Stelios Togias wrote:
> so I would do:
> httpClient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy);
> 
> and when I don't want to use it
> httpClient.getParams().removeParameter(ConnRoutePNames.DEFAULT_PROXY);
> 
> thanks
> stelios
> 

HttpUriRequest#setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy);

Hope this helps

Oleg



---------------------------------------------------------------------
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