dinosaurclover 0 Newbie Poster

Does anyone know about doing rfc 1950 deflate and inflate at socket level.

The RFCs are very specific about the HTTP headers you need to send, the start of stream flags(CMF, FLG, FDICT) and the ADLER32 checksum at the end of the stream but the explanation of how to assemble the compressed data is not detailed fully.

Obviously I'll need to call one or more ZLIB functions on the uncompressed data to produce the compressed data stream but I'll need to know which ones (and why would be helpful).

I've had a quick look at the source text of apache's mod_deflate and decided that life's too short to work out what it gets upto.

I'd be mega garteful if someone could give me a short explanation of what's required.

dino.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.