hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stelios Togias <stetog...@gmail.com>
Subject Re: Correct usage (instantiation of httpClient, proxy, resource releasing)
Date Fri, 07 Jan 2011 13:02:39 GMT
ok that sets the proxy, now when I want to remove it I do
httpClient.getParams().removeParameter(ConnRoutePNames.DEFAULT_PROXY);
or I set the ConnRoutePNames some other value...


On 7 January 2011 13:59, Oleg Kalnichevski <olegk@apache.org> wrote:

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message