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: HTTP compression
Date Sun, 19 Oct 2008 15:48:02 GMT
On Sat, 2008-10-18 at 18:08 -0700, cowwoc wrote:
> I am glad to see this works, but I am surprised that server to client
> compression is not handled more seamlessly out-of-the-box.
> 
> I was actually wondering about client to server GZip compression (that is,
> compressing even the request).
> 
> Gili
> 

Gili,

The request entity compression should be as trivial to implement as the
response entity decompression. 

HttpClient is meant to be content agnostic, that is, any kind of content
processing is out of project's scope.

Oleg


> 
> olegk wrote:
> > 
> > On Sat, 2008-10-18 at 10:57 -0700, cowwoc wrote:
> >> Hi,
> >> 
> >> I'm wondering why HTTP Client doesn't support HTTP compression
> >> (http://en.wikipedia.org/wiki/HTTP_compression). Will you seriously
> >> entertain a RFE for this feature if I file one?
> >> 
> >> Thank you,
> >> Gili
> > 
> > Gili
> > 
> > If you are using HttpClient 4.0 you can easily add support for content
> > compression by adding a few custom protocol interceptors.
> > 
> > Please refer to this example for details:
> > 
> > http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/client/ClientGZipContentCompression.java
> > 
> > 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


Mime
View raw message