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 Vasiliy Keretsman <vk...@e-mobilink.com> on 2004/11/03 14:55:56 UTC
isProxySet
Hello!
It seems to me isProxySet does not properly indicate Proxy Settings
state.
1. Set ProxySettings to actual values. isProxySet indicates TRUE.
2. Set ProxySettings to host=null, port=-1. isProxySet still indicates
TRUE.
Or maybe there is another way to reset proxy settings?
Thank you for reply.
--
Best regards,
Vasiliy
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
Re: isProxySet
Posted by Oleg Kalnichevski <ol...@apache.org>.
> Given that the HostConfiguration at the method level is no longer
> relevant in 3.0 the is*Set methods have become unnecessary. We should
> probably deprecate them in 3.0.
Done. HostConfiguration#isHostSet and Hostconfiguration#isProxySet
methods deprecated in CVS HEAD
Oleg
>
> Mike
>
> Oleg Kalnichevski wrote:
> > Vasiliy,
> >
> > It does look like a bug in HttpClient 2.0.x
> >
> > http://jakarta.apache.org/commons/httpclient/xref/org/apache/commons/httpclient/HostConfiguration.html#403
> >
> > Feel free to file a bug report for this issue
> >
> > http://issues.apache.org/bugzilla/enter_bug.cgi?product=HttpClient
> >
> > Vsego,
> >
> > Oleg
> >
> >
> >
> > On Wed, Nov 03, 2004 at 03:55:56PM +0200, Vasiliy Keretsman wrote:
> >
> >>Hello!
> >>
> >>It seems to me isProxySet does not properly indicate Proxy Settings
> >>state.
> >>
> >>1. Set ProxySettings to actual values. isProxySet indicates TRUE.
> >>2. Set ProxySettings to host=null, port=-1. isProxySet still indicates
> >>TRUE.
> >>
> >>Or maybe there is another way to reset proxy settings?
> >>
> >>Thank you for reply.
> >>
> >>--
> >>Best regards,
> >> Vasiliy
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
Re: isProxySet
Posted by Michael Becke <be...@u.washington.edu>.
This is actually the intended behavior. The is*Set methods are there
to determine if the values have ever been set. The only way to force
them to false is to create a new instance of HostConfig. The reason
for this behavior is to allow the following:
// set the default proxy host to proxy:8080
HttpClient client = new HttpClient();
client.getHostConfiguration().setProxyHost("proxy", 8080);
GetMethod get = new GetMethod();
// force this method not to use a proxy
get.getHostConfiguration().setProxyHost(null, -1);
Given that the HostConfiguration at the method level is no longer
relevant in 3.0 the is*Set methods have become unnecessary. We should
probably deprecate them in 3.0.
Mike
Oleg Kalnichevski wrote:
> Vasiliy,
>
> It does look like a bug in HttpClient 2.0.x
>
> http://jakarta.apache.org/commons/httpclient/xref/org/apache/commons/httpclient/HostConfiguration.html#403
>
> Feel free to file a bug report for this issue
>
> http://issues.apache.org/bugzilla/enter_bug.cgi?product=HttpClient
>
> Vsego,
>
> Oleg
>
>
>
> On Wed, Nov 03, 2004 at 03:55:56PM +0200, Vasiliy Keretsman wrote:
>
>>Hello!
>>
>>It seems to me isProxySet does not properly indicate Proxy Settings
>>state.
>>
>>1. Set ProxySettings to actual values. isProxySet indicates TRUE.
>>2. Set ProxySettings to host=null, port=-1. isProxySet still indicates
>>TRUE.
>>
>>Or maybe there is another way to reset proxy settings?
>>
>>Thank you for reply.
>>
>>--
>>Best regards,
>> Vasiliy
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
Re: isProxySet
Posted by Oleg Kalnichevski <ol...@apache.org>.
Vasiliy,
It does look like a bug in HttpClient 2.0.x
http://jakarta.apache.org/commons/httpclient/xref/org/apache/commons/httpclient/HostConfiguration.html#403
Feel free to file a bug report for this issue
http://issues.apache.org/bugzilla/enter_bug.cgi?product=HttpClient
Vsego,
Oleg
On Wed, Nov 03, 2004 at 03:55:56PM +0200, Vasiliy Keretsman wrote:
> Hello!
>
> It seems to me isProxySet does not properly indicate Proxy Settings
> state.
>
> 1. Set ProxySettings to actual values. isProxySet indicates TRUE.
> 2. Set ProxySettings to host=null, port=-1. isProxySet still indicates
> TRUE.
>
> Or maybe there is another way to reset proxy settings?
>
> Thank you for reply.
>
> --
> Best regards,
> Vasiliy
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org