You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Kedar Panse <ke...@bancbridge.com> on 2005/01/31 09:39:48 UTC

[HTTPClient] 3.0 Unsettings proxy

How do i unset a proxy for a client object? Using 
client.getHostConfiguration().setProxy(proxyhost, proxyport);
will setting it to blank work and a valid way? I want to skip to next 
proxy if 1 doesnt work

Thanks in advance

Kedar

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [HTTPClient] 3.0 Unsettings proxy

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Mon, Jan 31, 2005 at 12:39:48AM -0800, Kedar Panse wrote:
> How do i unset a proxy for a client object? Using 
> client.getHostConfiguration().setProxy(proxyhost, proxyport);
> will setting it to blank work and a valid way? I want to skip to next 
> proxy if 1 doesnt work
> 

client.setHostConfiguration(new HttpConfiguration())

should do the trick

Oleg


> Thanks in advance
> 
> Kedar
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org