| Article Index |
|---|
| Header Fields in SIP |
| Page 2 |
| Page 3 |
| Page 4 |
| Page 5 |
| Page 6 |
| Page 7 |
| Page 8 |
| Page 9 |
| Page 10 |
| Page 11 |
| Page 12 |
| Page 13 |
| Page 14 |
| Page 15 |
| Page 16 |
| All Pages |
Page 6 of 16
20.12 Content-Encoding
The Content-Encoding header field is used as a modifier to the
"media-type". When present, its value indicates what additional
content codings have been applied to the entity-body, and thus what
decoding mechanisms MUST be applied in order to obtain the media-type
referenced by the Content-Type header field. Content-Encoding is
primarily used to allow a body to be compressed without losing the
identity of its underlying media type.
If multiple encodings have been applied to an entity-body, the
content codings MUST be listed in the order in which they were
applied.
All content-coding values are case-insensitive. IANA acts as a
registry for content-coding value tokens. See [H3.5] for a
definition of the syntax for content-coding.
Clients MAY apply content encodings to the body in requests. A
server MAY apply content encodings to the bodies in responses. The
server MUST only use encodings listed in the Accept-Encoding header
field in the request.
The compact form of the Content-Encoding header field is e.
Examples:
Content-Encoding: gzip
e: tar
20.13 Content-Language
See [H14.12]. Example:
Content-Language: fr
20.14 Content-Length
The Content-Length header field indicates the size of the message-
body, in decimal number of octets, sent to the recipient.
Applications SHOULD use this field to indicate the size of the
message-body to be transferred, regardless of the media type of the
entity. If a stream-based protocol (such as TCP) is used as
transport, the header field MUST be used.
The size of the message-body does not include the CRLF separating
header fields and body. Any Content-Length greater than or equal to
zero is a valid value. If no body is present in a message, then the
Content-Length header field value MUST be set to zero.
The ability to omit Content-Length simplifies the creation of
cgi-like scripts that dynamically generate responses.
The compact form of the header field is l.
Examples:
Content-Length: 349
l: 173
20.15 Content-Type
The Content-Type header field indicates the media type of the
message-body sent to the recipient. The "media-type" element is
defined in [H3.7]. The Content-Type header field MUST be present if
the body is not empty. If the body is empty, and a Content-Type
header field is present, it indicates that the body of the specific
type has zero length (for example, an empty audio file).
The compact form of the header field is c.
Examples:
Content-Type: application/sdp
c: text/html; charset=ISO-8859-4




