Connected: An Internet Encyclopedia
19.4.1 Conversion to Canonical Form

Up: Connected: An Internet Encyclopedia
Up: Requests For Comments
Up: RFC 2068
Up: 19 Appendices
Up: 19.4 Differences Between HTTP Entities and MIME Entities
Prev: 19.4 Differences Between HTTP Entities and MIME Entities
Next: 19.4.2 Conversion of Date Formats

19.4.1 Conversion to Canonical Form

19.4.1 Conversion to Canonical Form

MIME requires that an Internet mail entity be converted to canonical form prior to being transferred. Section 3.7.1 of this document describes the forms allowed for subtypes of the "text" media type when transmitted over HTTP. MIME requires that content with a type of "text" represent line breaks as CRLF and forbids the use of CR or LF outside of line break sequences. HTTP allows CRLF, bare CR, and bare LF to indicate a line break within text content when a message is transmitted over HTTP.

Where it is possible, a proxy or gateway from HTTP to a strict MIME environment SHOULD translate all line breaks within the text media types described in section 3.7.1 of this document to the MIME canonical form of CRLF. Note, however, that this may be complicated by the presence of a Content-Encoding and by the fact that HTTP allows the use of some character sets which do not use octets 13 and 10 to represent CR and LF, as is the case for some multi-byte character sets.


Next: 19.4.2 Conversion of Date Formats

Connected: An Internet Encyclopedia
19.4.1 Conversion to Canonical Form