W3C home > Mailing lists > Public > www-lib@w3.org > April to June 2005

Parsing chunked and gzip'ed content?

From: Steinar Bang <sb@dod.no>
Date: Wed, 13 Apr 2005 17:07:52 +0200
To: www-lib@w3.org
Message-ID: <8764yqk94n.fsf@dod.no>

Has anyone on this list had any success with handling content that
come back with the headers
 Content-Encoding: gzip
 Transfer-Encoding: chunked
?

Chunked on non-gzipped content works for me, and gzip on stuff with
content-length works.

But gzipped stuff that is sent as chunked ends up in nowhere.

What I've seen in the debugger, is that the stream stack is created
correctly, with the end content handler at the bottom, then the gzip
deflater, then chunk decoding stream.

Where it fails, is where HTZLibInflate_write_gzip() is called from
HTChunkDecode_block() (in line 124 in my copy of HTTChunk.c), and
where the buf argument contains something that gzcheckheader() doesn't
recognize as gzipped content.

Any hints tips, and guesses, appreciated!

Thanx!
Received on Wednesday, 13 April 2005 16:09:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:45 GMT