Internet Direct (Indy)
Home
PreviousUpNext
TIdEntityHeaderInfo.ContentEncoding Property

Indicates transformations applied to the content of an entity.

Pascal
property ContentEncoding: string;

ContentEncoding is a String property used as an optional modifier to the ContentType for an entity body. ContentEncoding indicates the additional content encoding performed on the entity body, and the decoding mechanisms needed to obtain the media-type referenced by ContentType

ContentEncoding must contain a value that is registered with the Internet Assigned Numbers Authority (IANA), and initially permitted the following values: 

 

Value 
Meaning 
gzip 
An encoding format produced by the file compression program "gzip" (GNU zip) as described in RFC 1952. This format is a Lempel-Ziv coding (LZ77) with a 32 bit CRC. 
The encoding format produced by the common UNIX file compression program "compress". This format is an adaptive Lempel-Ziv-Welch coding (LZW). 
The "zlib" format defined in RFC 1950 in combination with the "deflate" compression mechanism described in RFC 1951. 
identity 
The default (identity) encoding; uses no transformation whatsoever. This content encoding is used only in the AcceptEncoding header in TIdRequestHeaderInfo, and should not be used in the ContentEncoding header. 

 

If multiple encodings have been applied to an entity, then ContentEncoding will list the encodings in the order in which they were applied. Additional information about encoding parameters may be provided by other entity header properties, or in ExtraHeaders.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.