Parsing chunked and gzip'ed content?

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 UTC