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 12:40:22 GMT
well that seems to work. If anyone knows a better way please post.

thanks
stelios

On 7 January 2011 11:51, Stelios Togias <stetogias@gmail.com> 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
>
>
> On 5 January 2011 17:06, Oleg Kalnichevski <olegk@apache.org> wrote:
>
>> On Wed, 2011-01-05 at 16:54 +0100, Stelios Togias wrote:
>> > Hi Oleg thanks for the answers there are helpful :)
>> >
>> > how can I set the proxy per request?
>> >
>>
>> ConnRoutePName#DEFAULT_PROXY parameter is your friend.
>>
>> 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