11.07.2015 Views

Network Working Group R. Fielding Request for Comments: 2616 ...

Network Working Group R. Fielding Request for Comments: 2616 ...

Network Working Group R. Fielding Request for Comments: 2616 ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Un<strong>for</strong>tunately, some older HTTP/1.0 clients did not deal properly withan explicit charset parameter. HTTP/1.1 recipients MUST respect thecharset label provided by the sender; and those user agents that havea provision to "guess" a charset MUST use the charset from the<strong>Fielding</strong>, et al. Standards Track [Page 22]RFC <strong>2616</strong> HTTP/1.1 June 1999content-type field if they support that charset, rather than therecipient's preference, when initially displaying a document. Seesection 3.7.1.3.5 Content CodingsContent coding values indicate an encoding trans<strong>for</strong>mation that hasbeen or can be applied to an entity. Content codings are primarilyused to allow a document to be compressed or otherwise usefullytrans<strong>for</strong>med without losing the identity of its underlying media typeand without loss of in<strong>for</strong>mation. Frequently, the entity is stored incoded <strong>for</strong>m, transmitted directly, and only decoded by the recipient.content-coding = tokenAll content-coding values are case-insensitive. HTTP/1.1 usescontent-coding values in the Accept-Encoding (section 14.3) andContent-Encoding (section 14.11) header fields. Although the valuedescribes the content-coding, what is more important is that itindicates what decoding mechanism will be required to remove theencoding.The Internet Assigned Numbers Authority (IANA) acts as a registry <strong>for</strong>content-coding value tokens. Initially, the registry contains thefollowing tokens:gzip An encoding <strong>for</strong>mat produced by the file compression program"gzip" (GNU zip) as described in RFC 1952 [25]. This <strong>for</strong>mat is aLempel-Ziv coding (LZ77) with a 32 bit CRC.compressThe encoding <strong>for</strong>mat produced by the common UNIX file compressionprogram "compress". This <strong>for</strong>mat is an adaptive Lempel-Ziv-Welchcoding (LZW).Use of program names <strong>for</strong> the identification of encoding <strong>for</strong>mats

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!