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:

http://juliusdavies.ca/gzip-post-example/

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.



yours,

Julius Davies


http://juliusdavies.ca/



-----Original Message-----
From:   Samuel Liard [mailto:[EMAIL PROTECTED]
Sent:   Mon 11/13/2006 2:09 PM
To:     [email protected]
Cc:     
Subject:        Response and gzip

Hy,

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 ?

Thanks

Samuel



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to