You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Toby <to...@gmail.com> on 2012/06/08 20:37:27 UTC

[Apache HC 4.x] Setting different proxies based on host

Hi Folks,

I thought I read somewhere that I could set different hosts to use
different proxies, but can't seem to figure out how!? All I can see is a
DEFAULT_PROXY parameter. I'm using 4.x BTW.

Any tips?

Thanks in advance,
Toby

Re: [Apache HC 4.x] Setting different proxies based on host

Posted by Toby <to...@gmail.com>.
Thanks,

I'll take a closer look.

All the best,
Toby


On 9 Jun 2012, at 12:08, Oleg Kalnichevski <ol...@apache.org> wrote:

> On Fri, 2012-06-08 at 19:37 +0100, Toby wrote:
>> Hi Folks,
>> 
>> I thought I read somewhere that I could set different hosts to use
>> different proxies, but can't seem to figure out how!? All I can see is a
>> DEFAULT_PROXY parameter. I'm using 4.x BTW.
>> 
>> Any tips?
>> 
>> Thanks in advance,
>> Toby
> 
> Toby 
> 
> Custom HttpRoutePlanner is your friend.
> 
> http://hc.apache.org/httpcomponents-client-ga/tutorial/html/connmgmt.html#d5e571
> 
> Oleg
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Re: [Apache HC 4.x] Setting different proxies based on host

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Fri, 2012-06-08 at 19:37 +0100, Toby wrote:
> Hi Folks,
> 
> I thought I read somewhere that I could set different hosts to use
> different proxies, but can't seem to figure out how!? All I can see is a
> DEFAULT_PROXY parameter. I'm using 4.x BTW.
> 
> Any tips?
> 
> Thanks in advance,
> Toby

Toby 

Custom HttpRoutePlanner is your friend.

http://hc.apache.org/httpcomponents-client-ga/tutorial/html/connmgmt.html#d5e571

Oleg


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org