hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: No cookie.. Proxy realm.. limit setFollowRedirects
Date Fri, 13 Feb 2004 20:33:28 GMT
On Fri, 2004-02-13 at 21:27, Emre Sokullu wrote:
> Thanx very much Oleg for your answers, I have a few things to say :
> 
> > > 1) How can I reject all cookies ? (code please)
> >
> > This feature is only available in the development version of HttpClient
> > (3.0, which is currently in pre-alpha development stage). There's no
> > straight-forward way to automatically reject all the cookies in the
> > stable version (2.0 branch) of HttpClient
> >
> 
> While waiting for the upcoming release, we can solve this problem
> temporarily by :
> 
> setting up a very old date in purgeExpiredCookies(Date) method.
> 
> I didn't try it. But I think it may work...
> 

That should work indeed. Alternatively you can remove unwanted cookies
manually using methods of the HttpState class

Hope this helps,

Cheers,

Oleg





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


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


Mime
View raw message