Re: Content Encoding and transfer encoding

Diwakar Shetty <diwakar.shetty@oracle.com> writes:

> Suppose I want to compress as well as chunk the response using following
> response headers:
>
> Content-Encoding: gzip
> Transfer-Encoding: chunked
>
> What should be done first by server ? Chunking of response or compression
> of response ?

Content-Encoding applies to the entity; Transfer-Encoding appies to
the message body.  Since the entity is inside the message body, the
sender applies Content-Encoding first, then Transfer-Encoding; the
recipient does the reverse.

-- 
Scott Lawrence        
  http://skrb.org/scott/
  [ <lawrence@world.std.com> is deprecated ]

Received on Monday, 28 July 2003 11:05:55 UTC