HTTP Traffic Compression

In order to get a Gzipped response, the client must request one. It is assumed that the client knows how to handle Gzip.

When requesting a Gzip response from the server, the client should add the following header to the web request: "Accept-encoding: gzip" to tell the server that the client can handle a Gzip response.

Important note: When unGzipping a response stream, try to pass the response stream directly to the Gzip stream for decompression. Otherwise, the data might get corrupted, creating a problem in decompressing it.

Sample source code to demonstrate using HTTP traffic compression is included in the attached file.

AttachmentSize
HTMLform.zip403 bytes