Accept-Encoding

Accept-Encoding

 


 

 

The Accept-Encoding header is used by clients to tell servers what encodings are acceptable. If the content the server is holding is encoded (perhaps compressed), this request header lets the server know whether the client will accept it. Chapter 17contains a complete description of the Accept-Encoding header.

Type

Request header

Basic Syntax

Accept-Encoding: 1# ((content-coding | "*") [";" "q" "=" qvalue])

Examples

Accept-Encoding:[1]

[1] The empty Accept-Encoding example is not a typo. It refers to the identity encodingthat is, the unencoded content. If the Accept-Encoding header is present and empty, only the unencoded content is acceptable.

Accept-Encoding: gzip

Accept-Encoding: compress;q=0.5, gzip;q=1

 



HTTP. The Definitive Guide
HTTP: The Definitive Guide
ISBN: 1565925092
EAN: 2147483647
Year: 2001
Pages: 294

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net