hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Reject Cookies
Date Sun, 12 Apr 2009 10:03:56 GMT
On Fri, 2009-04-10 at 06:34 -0700, HockeyDave wrote:
> How exactly does one go about "removing protocol interceptors"?
> Here's what I'm doing in 4.0b2 to handle cookies.  My intent is to have as
> fast of a performance as possible and I don't want cookies coming over the
> wire slowing things down.

If you want maximum performance and do not mind sacrificing connection
management, cookie, authentication and redirect handling, just use
HttpCore instead of HttpClient. This should give you 30 to 40% higher
data throughput for small to medium requests compared to HttpClient



> ((DefaultHttpClient) httpClient).setCookieStore(null);
> ((DefaultHttpClient) httpClient).setCookieSpecs(null);
> Here's what I did in 3.1:
> getmethod.getParams().setCookiePolicy(CookiePolicy.IGNORE_COOKIES);
> Are these correct?

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

View raw message