httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <>
Subject Re: [users@httpd] chunked transfer-encoding and gzip content-encoding
Date Mon, 13 Jul 2009 04:09:25 GMT
On Sun, Jul 12, 2009 at 11:55 PM, thaakshana raala<> wrote:

> Transfer-Encoding: chunked
> Content-Encoding: gzip
> According to http 1.1,
> do the chunks have to be decompressed chunk by chunk and then assembled or
> assemble the whole message and then decompress the whole message?
> Gamini.

Content-Encoding is on the "inside", so you dechunk then decompress.

7.2.1 Type

   When an entity-body is included with a message, the data type of that
   body is determined via the header fields Content-Type and Content-
   Encoding. These define a two-layer, ordered encoding model:

       entity-body := Content-Encoding( Content-Type( data ) )

4.3 Message Body

   The message-body (if any) of an HTTP message is used to carry the
   entity-body associated with the request or response. The message-body
   differs from the entity-body only when a transfer-coding has been
   applied, as indicated by the Transfer-Encoding header field (section

       message-body = entity-body
                    | <entity-body encoded as per Transfer-Encoding>

Eric Covener

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message