hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julius Davies" <juliusdav...@cucbc.com>
Subject RE: Response and gzip
Date Tue, 14 Nov 2006 02:25:40 GMT
Hi, Samuel,

I would be surprised if the content actually has an EOF in the middle.  That would trip up
any program that tried to read it!

It's very rare for clients to send gzip encoded content in HTTP POST or PUT requests.  It's
much more common for the server to gzip encode the response (Google, for example), but for
client to gzip the upload is very rare.

If you are sure that's what's happening, I do have some example code that does just that.
 Here's some example code for playing with gzip POST uploads and httpclient:


Maybe it will help!

The lynchpin to the whole gzip operation is this header:

Content-Encoding: gzip

If you don't see that, then your content is probably not gzip encoded.


Julius Davies


-----Original Message-----
From:	Samuel Liard [mailto:samuel@net-liard.com]
Sent:	Mon 11/13/2006 2:09 PM
To:	httpclient-user@jakarta.apache.org
Subject:	Response and gzip


I receive an HTTP response but the content is in gzip format.
I can't read it... It try to use GZIPInputStream, but I just read 633 caracteres...Maybe a
EOF is in this content...

What libraries did you use to read gzip stream ?



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

View raw message