source: draft-ietf-httpbis/03/p3-payload.xml @ 301

Last change on this file since 301 was 264, checked in by julian.reschke@…, 15 years ago

Prepare for release of draft 03 on Tuesday, 2008-06-17.

  • Property svn:eol-style set to native
File size: 115.2 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<?xml-stylesheet type='text/xsl' href='../myxml2rfc.xslt'?>
3<!DOCTYPE rfc [
4  <!ENTITY MAY "<bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>MAY</bcp14>">
5  <!ENTITY MUST "<bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>MUST</bcp14>">
6  <!ENTITY MUST-NOT "<bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>MUST NOT</bcp14>">
7  <!ENTITY OPTIONAL "<bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>OPTIONAL</bcp14>">
8  <!ENTITY RECOMMENDED "<bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>RECOMMENDED</bcp14>">
9  <!ENTITY REQUIRED "<bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>REQUIRED</bcp14>">
10  <!ENTITY SHALL "<bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>SHALL</bcp14>">
11  <!ENTITY SHALL-NOT "<bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>SHALL NOT</bcp14>">
12  <!ENTITY SHOULD "<bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>SHOULD</bcp14>">
13  <!ENTITY SHOULD-NOT "<bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>SHOULD NOT</bcp14>">
14  <!ENTITY ID-VERSION "03">
15  <!ENTITY ID-MONTH "June">
16  <!ENTITY ID-YEAR "2008">
17  <!ENTITY notation-abnf            "<xref target='Part1' x:rel='#notation.abnf' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
18  <!ENTITY basic-rules              "<xref target='Part1' x:rel='#basic.rules' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
19  <!ENTITY caching-neg-resp         "<xref target='Part6' x:rel='#caching.negotiated.responses' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
20  <!ENTITY header-transfer-encoding "<xref target='Part1' x:rel='#header.transfer-encoding' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
21  <!ENTITY header-content-length    "<xref target='Part1' x:rel='#header.content-length' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
22  <!ENTITY header-content-range     "<xref target='Part5' x:rel='#header.content-range' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
23  <!ENTITY header-expires           "<xref target='Part6' x:rel='#header.expires' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
24  <!ENTITY header-last-modified     "<xref target='Part4' x:rel='#header.last-modified' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
25  <!ENTITY header-user-agent        "<xref target='Part2' x:rel='#header.user-agent' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
26  <!ENTITY header-vary              "<xref target='Part6' x:rel='#header.vary' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
27  <!ENTITY message-body             "<xref target='Part1' x:rel='#message.body' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
28  <!ENTITY message-length           "<xref target='Part1' x:rel='#message.length' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
29  <!ENTITY message-headers          "<xref target='Part1' x:rel='#message.headers' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
30  <!ENTITY general-syntax           "<xref target='Part1' x:rel='#general.syntax' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
31  <!ENTITY multipart-byteranges     "<xref target='Part5' x:rel='#internet.media.type.multipart.byteranges' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
32]>
33<?rfc toc="yes" ?>
34<?rfc symrefs="yes" ?>
35<?rfc sortrefs="yes" ?>
36<?rfc compact="yes"?>
37<?rfc subcompact="no" ?>
38<?rfc linkmailto="no" ?>
39<?rfc editing="no" ?>
40<?rfc comments="yes"?>
41<?rfc inline="yes"?>
42<?rfc-ext allow-markup-in-artwork="yes" ?>
43<?rfc-ext include-references-in-index="yes" ?>
44<rfc obsoletes="2616" category="std"
45     ipr="full3978" docName="draft-ietf-httpbis-p3-payload-&ID-VERSION;"
46     xmlns:x='http://purl.org/net/xml2rfc/ext'>
47<front>
48
49  <title abbrev="HTTP/1.1, Part 3">HTTP/1.1, part 3: Message Payload and Content Negotiation</title>
50
51  <author initials="R." surname="Fielding" fullname="Roy T. Fielding" role="editor">
52    <organization abbrev="Day Software">Day Software</organization>
53    <address>
54      <postal>
55        <street>23 Corporate Plaza DR, Suite 280</street>
56        <city>Newport Beach</city>
57        <region>CA</region>
58        <code>92660</code>
59        <country>USA</country>
60      </postal>
61      <phone>+1-949-706-5300</phone>
62      <facsimile>+1-949-706-5305</facsimile>
63      <email>fielding@gbiv.com</email>
64      <uri>http://roy.gbiv.com/</uri>
65    </address>
66  </author>
67
68  <author initials="J." surname="Gettys" fullname="Jim Gettys">
69    <organization>One Laptop per Child</organization>
70    <address>
71      <postal>
72        <street>21 Oak Knoll Road</street>
73        <city>Carlisle</city>
74        <region>MA</region>
75        <code>01741</code>
76        <country>USA</country>
77      </postal>
78      <email>jg@laptop.org</email>
79      <uri>http://www.laptop.org/</uri>
80    </address>
81  </author>
82 
83  <author initials="J." surname="Mogul" fullname="Jeffrey C. Mogul">
84    <organization abbrev="HP">Hewlett-Packard Company</organization>
85    <address>
86      <postal>
87        <street>HP Labs, Large Scale Systems Group</street>
88        <street>1501 Page Mill Road, MS 1177</street>
89        <city>Palo Alto</city>
90        <region>CA</region>
91        <code>94304</code>
92        <country>USA</country>
93      </postal>
94      <email>JeffMogul@acm.org</email>
95    </address>
96  </author>
97
98  <author initials="H." surname="Frystyk" fullname="Henrik Frystyk Nielsen">
99    <organization abbrev="Microsoft">Microsoft Corporation</organization>
100    <address>
101      <postal>
102        <street>1 Microsoft Way</street>
103        <city>Redmond</city>
104        <region>WA</region>
105        <code>98052</code>
106        <country>USA</country>
107      </postal>
108      <email>henrikn@microsoft.com</email>
109    </address>
110  </author>
111
112  <author initials="L." surname="Masinter" fullname="Larry Masinter">
113    <organization abbrev="Adobe Systems">Adobe Systems, Incorporated</organization>
114    <address>
115      <postal>
116        <street>345 Park Ave</street>
117        <city>San Jose</city>
118        <region>CA</region>
119        <code>95110</code>
120        <country>USA</country>
121      </postal>
122      <email>LMM@acm.org</email>
123      <uri>http://larry.masinter.net/</uri>
124    </address>
125  </author>
126 
127  <author initials="P." surname="Leach" fullname="Paul J. Leach">
128    <organization abbrev="Microsoft">Microsoft Corporation</organization>
129    <address>
130      <postal>
131        <street>1 Microsoft Way</street>
132        <city>Redmond</city>
133        <region>WA</region>
134        <code>98052</code>
135      </postal>
136      <email>paulle@microsoft.com</email>
137    </address>
138  </author>
139   
140  <author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
141    <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
142    <address>
143      <postal>
144        <street>MIT Computer Science and Artificial Intelligence Laboratory</street>
145        <street>The Stata Center, Building 32</street>
146        <street>32 Vassar Street</street>
147        <city>Cambridge</city>
148        <region>MA</region>
149        <code>02139</code>
150        <country>USA</country>
151      </postal>
152      <email>timbl@w3.org</email>
153      <uri>http://www.w3.org/People/Berners-Lee/</uri>
154    </address>
155  </author>
156
157  <author initials="Y." surname="Lafon" fullname="Yves Lafon" role="editor">
158    <organization abbrev="W3C">World Wide Web Consortium</organization>
159    <address>
160      <postal>
161        <street>W3C / ERCIM</street>
162        <street>2004, rte des Lucioles</street>
163        <city>Sophia-Antipolis</city>
164        <region>AM</region>
165        <code>06902</code>
166        <country>France</country>
167      </postal>
168      <email>ylafon@w3.org</email>
169      <uri>http://www.raubacapeu.net/people/yves/</uri>
170    </address>
171  </author>
172
173  <author initials="J. F." surname="Reschke" fullname="Julian F. Reschke" role="editor">
174    <organization abbrev="greenbytes">greenbytes GmbH</organization>
175    <address>
176      <postal>
177        <street>Hafenweg 16</street>
178        <city>Muenster</city><region>NW</region><code>48155</code>
179        <country>Germany</country>
180      </postal>
181      <phone>+49 251 2807760</phone>   
182      <facsimile>+49 251 2807761</facsimile>   
183      <email>julian.reschke@greenbytes.de</email>       
184      <uri>http://greenbytes.de/tech/webdav/</uri>     
185    </address>
186  </author>
187
188  <date month="&ID-MONTH;" year="&ID-YEAR;" day="17"/>
189
190<abstract>
191<t>
192   The Hypertext Transfer Protocol (HTTP) is an application-level
193   protocol for distributed, collaborative, hypermedia information
194   systems. HTTP has been in use by the World Wide Web global information
195   initiative since 1990. This document is Part 3 of the seven-part specification
196   that defines the protocol referred to as "HTTP/1.1" and, taken together,
197   obsoletes RFC 2616.  Part 3 defines HTTP message content,
198   metadata, and content negotiation.
199</t>
200</abstract>
201
202<note title="Editorial Note (To be removed by RFC Editor)">
203  <t>
204    Discussion of this draft should take place on the HTTPBIS working group
205    mailing list (ietf-http-wg@w3.org). The current issues list is
206    at <eref target="http://www.tools.ietf.org/wg/httpbis/trac/report/11"/>
207    and related documents (including fancy diffs) can be found at
208    <eref target="http://www.tools.ietf.org/wg/httpbis/"/>.
209  </t>
210  <t>
211    The changes in this draft are summarized in <xref target="changes.since.02"/>.
212  </t>
213</note>
214</front>
215<middle>
216<section title="Introduction" anchor="introduction">
217<t>
218   This document defines HTTP/1.1 message payloads (a.k.a., content), the
219   associated metadata header fields that define how the payload is intended
220   to be interpreted by a recipient, the request header fields that
221   may influence content selection, and the various selection algorithms
222   that are collectively referred to as HTTP content negotiation.
223</t>
224<t>
225   This document is currently disorganized in order to minimize the changes
226   between drafts and enable reviewers to see the smaller errata changes.
227   The next draft will reorganize the sections to better reflect the content.
228   In particular, the sections on entities will be renamed payload and moved
229   to the first half of the document, while the sections on content negotiation
230   and associated request header fields will be moved to the second half.  The
231   current mess reflects how widely dispersed these topics and associated
232   requirements had become in <xref target="RFC2616"/>.
233</t>
234
235<section title="Requirements" anchor="intro.requirements">
236<t>
237   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
238   "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
239   document are to be interpreted as described in <xref target="RFC2119"/>.
240</t>
241<t>
242   An implementation is not compliant if it fails to satisfy one or more
243   of the &MUST; or &REQUIRED; level requirements for the protocols it
244   implements. An implementation that satisfies all the &MUST; or &REQUIRED;
245   level and all the &SHOULD; level requirements for its protocols is said
246   to be "unconditionally compliant"; one that satisfies all the &MUST;
247   level requirements but not all the &SHOULD; level requirements for its
248   protocols is said to be "conditionally compliant."
249</t>
250</section>
251</section>
252
253<section title="Notational Conventions and Generic Grammar" anchor="notation">
254  <x:anchor-alias value="ALPHA"/>
255  <x:anchor-alias value="DIGIT"/>
256  <x:anchor-alias value="OCTET"/>
257  <x:anchor-alias value="quoted-string"/>
258  <x:anchor-alias value="token"/>
259<t>
260  This specification uses the ABNF syntax defined in &notation-abnf; and
261  the core rules defined in &basic-rules;:
262  <cref anchor="abnf.dep">ABNF syntax and basic rules will be adopted from RFC 5234, see
263  <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/36"/>.</cref>
264</t>
265<figure><artwork type="abnf2616">
266  <x:ref>ALPHA</x:ref>          = &lt;ALPHA, defined in &basic-rules;&gt;
267  <x:ref>DIGIT</x:ref>          = &lt;DIGIT, defined in &basic-rules;&gt;
268  <x:ref>OCTET</x:ref>          = &lt;OCTET, defined in &basic-rules;&gt;
269</artwork></figure>
270<figure><artwork type="abnf2616">
271  <x:ref>quoted-string</x:ref>  = &lt;quoted-string, defined in &basic-rules;&gt;
272  <x:ref>token</x:ref>          = &lt;token, defined in &basic-rules;&gt;
273</artwork></figure>
274<t anchor="abnf.dependencies">
275  <x:anchor-alias value="absoluteURI"/>
276  <x:anchor-alias value="Allow"/>
277  <x:anchor-alias value="Content-Length"/>
278  <x:anchor-alias value="Content-Range"/>
279  <x:anchor-alias value="Expires"/>
280  <x:anchor-alias value="Last-Modified"/>
281  <x:anchor-alias value="message-header"/>
282  <x:anchor-alias value="relativeURI"/>
283  The ABNF rules below are defined in other parts:
284</t>
285<figure><!--Part1--><artwork type="abnf2616">
286  <x:ref>absoluteURI</x:ref>    = &lt;absoluteURI, defined in &general-syntax;&gt;
287  <x:ref>Content-Length</x:ref> = &lt;Content-Length, defined in &header-content-length;&gt;
288  <x:ref>relativeURI</x:ref>    = &lt;relativeURI, defined in &general-syntax;&gt;
289  <x:ref>message-header</x:ref> = &lt;message-header, defined in &message-headers;&gt;
290</artwork></figure>
291<figure><!--Part4--><artwork type="abnf2616">
292  <x:ref>Last-Modified</x:ref>  = &lt;Last-Modified, defined in &header-last-modified;&gt;
293</artwork></figure>
294<figure><!--Part5--><artwork type="abnf2616">
295  <x:ref>Content-Range</x:ref>  = &lt;Content-Range, defined in &header-content-range;&gt;
296</artwork></figure>
297<figure><!--Part6--><artwork type="abnf2616">
298  <x:ref>Expires</x:ref>        = &lt;Expires, defined in &header-expires;&gt;
299</artwork></figure>
300</section>
301
302<section title="Protocol Parameters" anchor="protocol.parameters">
303
304<section title="Character Sets" anchor="character.sets">
305<t>
306   HTTP uses the same definition of the term "character set" as that
307   described for MIME:
308</t>
309<t>
310   The term "character set" is used in this document to refer to a
311   method used with one or more tables to convert a sequence of octets
312   into a sequence of characters. Note that unconditional conversion in
313   the other direction is not required, in that not all characters may
314   be available in a given character set and a character set may provide
315   more than one sequence of octets to represent a particular character.
316   This definition is intended to allow various kinds of character
317   encoding, from simple single-table mappings such as US-ASCII to
318   complex table switching methods such as those that use ISO-2022's
319   techniques. However, the definition associated with a MIME character
320   set name &MUST; fully specify the mapping to be performed from octets
321   to characters. In particular, use of external profiling information
322   to determine the exact mapping is not permitted.
323</t>
324<t><list><t>
325      <x:h>Note:</x:h> This use of the term "character set" is more commonly
326      referred to as a "character encoding." However, since HTTP and
327      MIME share the same registry, it is important that the terminology
328      also be shared.
329</t></list></t>
330<t anchor="rule.charset">
331  <x:anchor-alias value="charset"/>
332   HTTP character sets are identified by case-insensitive tokens. The
333   complete set of tokens is defined by the IANA Character Set registry
334   (<eref target="http://www.iana.org/assignments/character-sets"/>).
335</t>
336<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="charset"/>
337  <x:ref>charset</x:ref> = <x:ref>token</x:ref>
338</artwork></figure>
339<t>
340   Although HTTP allows an arbitrary token to be used as a charset
341   value, any token that has a predefined value within the IANA
342   Character Set registry &MUST; represent the character set defined
343   by that registry. Applications &SHOULD; limit their use of character
344   sets to those defined by the IANA registry.
345</t>
346<t>
347   HTTP uses charset in two contexts: within an Accept-Charset request
348   header (in which the charset value is an unquoted token) and as the
349   value of a parameter in a Content-Type header (within a request or
350   response), in which case the parameter value of the charset parameter
351   may be quoted.
352</t>
353<t>
354   Implementors should be aware of IETF character set requirements <xref target="RFC3629"/>
355   <xref target="RFC2277"/>.
356</t>
357
358<section title="Missing Charset" anchor="missing.charset">
359<t>
360   Some HTTP/1.0 software has interpreted a Content-Type header without
361   charset parameter incorrectly to mean "recipient should guess."
362   Senders wishing to defeat this behavior &MAY; include a charset
363   parameter even when the charset is ISO-8859-1 (<xref target="ISO-8859-1"/>) and &SHOULD; do so when
364   it is known that it will not confuse the recipient.
365</t>
366<t>
367   Unfortunately, some older HTTP/1.0 clients did not deal properly with
368   an explicit charset parameter. HTTP/1.1 recipients &MUST; respect the
369   charset label provided by the sender; and those user agents that have
370   a provision to "guess" a charset &MUST; use the charset from the
371   content-type field if they support that charset, rather than the
372   recipient's preference, when initially displaying a document. See
373   <xref target="canonicalization.and.text.defaults"/>.
374</t>
375</section>
376</section>
377
378<section title="Content Codings" anchor="content.codings">
379  <x:anchor-alias value="content-coding"/>
380<t>
381   Content coding values indicate an encoding transformation that has
382   been or can be applied to an entity. Content codings are primarily
383   used to allow a document to be compressed or otherwise usefully
384   transformed without losing the identity of its underlying media type
385   and without loss of information. Frequently, the entity is stored in
386   coded form, transmitted directly, and only decoded by the recipient.
387</t>
388<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="content-coding"/>
389  <x:ref>content-coding</x:ref>   = <x:ref>token</x:ref>
390</artwork></figure>
391<t>
392   All content-coding values are case-insensitive. HTTP/1.1 uses
393   content-coding values in the Accept-Encoding (<xref target="header.accept-encoding"/>) and
394   Content-Encoding (<xref target="header.content-encoding"/>) header fields. Although the value
395   describes the content-coding, what is more important is that it
396   indicates what decoding mechanism will be required to remove the
397   encoding.
398</t>
399<t>
400   The Internet Assigned Numbers Authority (IANA) acts as a registry for
401   content-coding value tokens. Initially, the registry contains the
402   following tokens:
403</t>
404<t>
405   gzip<iref item="gzip"/>
406  <list>
407    <t>
408        An encoding format produced by the file compression program
409        "gzip" (GNU zip) as described in <xref target="RFC1952"/>. This format is a
410        Lempel-Ziv coding (LZ77) with a 32 bit CRC.
411    </t>
412  </list>
413</t>
414<t>
415   compress<iref item="compress"/>
416  <list><t>
417        The encoding format produced by the common UNIX file compression
418        program "compress". This format is an adaptive Lempel-Ziv-Welch
419        coding (LZW).
420</t><t>
421        Use of program names for the identification of encoding formats
422        is not desirable and is discouraged for future encodings. Their
423        use here is representative of historical practice, not good
424        design. For compatibility with previous implementations of HTTP,
425        applications &SHOULD; consider "x-gzip" and "x-compress" to be
426        equivalent to "gzip" and "compress" respectively.
427  </t></list>
428</t>
429<t>
430   deflate<iref item="deflate"/>
431  <list><t>
432        The "zlib" format defined in <xref target="RFC1950"/> in combination with
433        the "deflate" compression mechanism described in <xref target="RFC1951"/>.
434  </t></list>
435</t>
436<t>
437   identity<iref item="identity"/>
438  <list><t>
439        The default (identity) encoding; the use of no transformation
440        whatsoever. This content-coding is used only in the Accept-Encoding
441        header, and &SHOULD-NOT;  be used in the Content-Encoding
442        header.
443  </t></list>
444</t>
445<t>
446   New content-coding value tokens &SHOULD; be registered; to allow
447   interoperability between clients and servers, specifications of the
448   content coding algorithms needed to implement a new value &SHOULD; be
449   publicly available and adequate for independent implementation, and
450   conform to the purpose of content coding defined in this section.
451</t>
452</section>
453
454<section title="Media Types" anchor="media.types">
455  <x:anchor-alias value="media-type"/>
456  <x:anchor-alias value="type"/>
457  <x:anchor-alias value="subtype"/>
458<t>
459   HTTP uses Internet Media Types <xref target="RFC2046"/> in the Content-Type (<xref target="header.content-type"/>)
460   and Accept (<xref target="header.accept"/>) header fields in order to provide
461   open and extensible data typing and type negotiation.
462</t>
463<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="media-type"/><iref primary="true" item="Grammar" subitem="type"/><iref primary="true" item="Grammar" subitem="subtype"/>
464  <x:ref>media-type</x:ref>     = <x:ref>type</x:ref> "/" <x:ref>subtype</x:ref> *( ";" <x:ref>parameter</x:ref> )
465  <x:ref>type</x:ref>           = <x:ref>token</x:ref>
466  <x:ref>subtype</x:ref>        = <x:ref>token</x:ref>
467</artwork></figure>
468<t anchor="rule.parameter">
469  <x:anchor-alias value="attribute"/>
470  <x:anchor-alias value="parameter"/>
471  <x:anchor-alias value="value"/>
472   Parameters &MAY; follow the type/subtype in the form of attribute/value
473   pairs.
474</t>
475<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="parameter"/><iref primary="true" item="Grammar" subitem="attribute"/><iref primary="true" item="Grammar" subitem="value"/>
476  <x:ref>parameter</x:ref>      = <x:ref>attribute</x:ref> "=" <x:ref>value</x:ref>
477  <x:ref>attribute</x:ref>      = <x:ref>token</x:ref>
478  <x:ref>value</x:ref>          = <x:ref>token</x:ref> | <x:ref>quoted-string</x:ref>
479</artwork></figure>
480<t>
481   The type, subtype, and parameter attribute names are case-insensitive.
482   Parameter values might or might not be case-sensitive,
483   depending on the semantics of the parameter name. Linear white space
484   (LWS) &MUST-NOT; be used between the type and subtype, nor between an
485   attribute and its value. The presence or absence of a parameter might
486   be significant to the processing of a media-type, depending on its
487   definition within the media type registry.
488</t>
489<t>
490   All parameters defined as a token are also allowed to occur as quoted-string;
491   both notations are equivalent.
492</t>
493<t>
494   Note that some older HTTP applications do not recognize media type
495   parameters. When sending data to older HTTP applications,
496   implementations &SHOULD; only use media type parameters when they are
497   required by that type/subtype definition.
498</t>
499<t>
500   Media-type values are registered with the Internet Assigned Number
501   Authority (IANA). The media type registration process is
502   outlined in <xref target="RFC4288"/>. Use of non-registered media types is
503   discouraged.
504</t>
505
506<section title="Canonicalization and Text Defaults" anchor="canonicalization.and.text.defaults">
507<t>
508   Internet media types are registered with a canonical form. An
509   entity-body transferred via HTTP messages &MUST; be represented in the
510   appropriate canonical form prior to its transmission except for
511   "text" types, as defined in the next paragraph.
512</t>
513<t>
514   When in canonical form, media subtypes of the "text" type use CRLF as
515   the text line break. HTTP relaxes this requirement and allows the
516   transport of text media with plain CR or LF alone representing a line
517   break when it is done consistently for an entire entity-body. HTTP
518   applications &MUST; accept CRLF, bare CR, and bare LF as being
519   representative of a line break in text media received via HTTP. In
520   addition, if the text is represented in a character set that does not
521   use octets 13 and 10 for CR and LF respectively, as is the case for
522   some multi-byte character sets, HTTP allows the use of whatever octet
523   sequences are defined by that character set to represent the
524   equivalent of CR and LF for line breaks. This flexibility regarding
525   line breaks applies only to text media in the entity-body; a bare CR
526   or LF &MUST-NOT; be substituted for CRLF within any of the HTTP control
527   structures (such as header fields and multipart boundaries).
528</t>
529<t>
530   If an entity-body is encoded with a content-coding, the underlying
531   data &MUST; be in a form defined above prior to being encoded.
532</t>
533<t>
534   The "charset" parameter is used with some media types to define the
535   character set (<xref target="character.sets"/>) of the data. When no explicit charset
536   parameter is provided by the sender, media subtypes of the "text"
537   type are defined to have a default charset value of "ISO-8859-1" when
538   received via HTTP. Data in character sets other than "ISO-8859-1" or
539   its subsets &MUST; be labeled with an appropriate charset value. See
540   <xref target="missing.charset"/> for compatibility problems.
541</t>
542</section>
543
544<section title="Multipart Types" anchor="multipart.types">
545<t>
546   MIME provides for a number of "multipart" types -- encapsulations of
547   one or more entities within a single message-body. All multipart
548   types share a common syntax, as defined in <xref target="RFC2046" x:sec="5.1.1" x:fmt="of"/>,
549   and &MUST; include a boundary parameter as part of the media type
550   value. The message body is itself a protocol element and &MUST;
551   therefore use only CRLF to represent line breaks between body-parts.
552   Unlike in RFC 2046, the epilogue of any multipart message &MUST; be
553   empty; HTTP applications &MUST-NOT; transmit the epilogue (even if the
554   original multipart contains an epilogue). These restrictions exist in
555   order to preserve the self-delimiting nature of a multipart message-body,
556   wherein the "end" of the message-body is indicated by the
557   ending multipart boundary.
558</t>
559<t>
560   In general, HTTP treats a multipart message-body no differently than
561   any other media type: strictly as payload. The one exception is the
562   "multipart/byteranges" type (&multipart-byteranges;) when it appears in a 206
563   (Partial Content) response.
564   <!-- jre: re-insert removed text pointing to caching? -->
565   In all
566   other cases, an HTTP user agent &SHOULD; follow the same or similar
567   behavior as a MIME user agent would upon receipt of a multipart type.
568   The MIME header fields within each body-part of a multipart message-body
569   do not have any significance to HTTP beyond that defined by
570   their MIME semantics.
571</t>
572<t>
573   In general, an HTTP user agent &SHOULD; follow the same or similar
574   behavior as a MIME user agent would upon receipt of a multipart type.
575   If an application receives an unrecognized multipart subtype, the
576   application &MUST; treat it as being equivalent to "multipart/mixed".
577</t>
578<t><list><t>
579      <x:h>Note:</x:h> The "multipart/form-data" type has been specifically defined
580      for carrying form data suitable for processing via the POST
581      request method, as described in <xref target="RFC2388"/>.
582</t></list></t>
583</section>
584</section>
585
586<section title="Quality Values" anchor="quality.values">
587  <x:anchor-alias value="qvalue"/>
588<t>
589   HTTP content negotiation (<xref target="content.negotiation"/>) uses short "floating point"
590   numbers to indicate the relative importance ("weight") of various
591   negotiable parameters.  A weight is normalized to a real number in
592   the range 0 through 1, where 0 is the minimum and 1 the maximum
593   value. If a parameter has a quality value of 0, then content with
594   this parameter is `not acceptable' for the client. HTTP/1.1
595   applications &MUST-NOT; generate more than three digits after the
596   decimal point. User configuration of these values &SHOULD; also be
597   limited in this fashion.
598</t>
599<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="qvalue"/>
600  <x:ref>qvalue</x:ref>         = ( "0" [ "." 0*3<x:ref>DIGIT</x:ref> ] )
601                 | ( "1" [ "." 0*3("0") ] )
602</artwork></figure>
603<t>
604   "Quality values" is a misnomer, since these values merely represent
605   relative degradation in desired quality.
606</t>
607</section>
608
609<section title="Language Tags" anchor="language.tags">
610  <x:anchor-alias value="language-tag"/>
611  <x:anchor-alias value="primary-tag"/>
612  <x:anchor-alias value="subtag"/>
613<t>
614   A language tag identifies a natural language spoken, written, or
615   otherwise conveyed by human beings for communication of information
616   to other human beings. Computer languages are explicitly excluded.
617   HTTP uses language tags within the Accept-Language and Content-Language
618   fields.
619</t>
620<t>
621   The syntax and registry of HTTP language tags is the same as that
622   defined by <xref target="RFC1766"/>. In summary, a language tag is composed of 1
623   or more parts: A primary language tag and a possibly empty series of
624   subtags:
625</t>
626<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="language-tag"/><iref primary="true" item="Grammar" subitem="primary-tag"/><iref primary="true" item="Grammar" subitem="subtag"/>
627  <x:ref>language-tag</x:ref>  = <x:ref>primary-tag</x:ref> *( "-" <x:ref>subtag</x:ref> )
628  <x:ref>primary-tag</x:ref>   = 1*8<x:ref>ALPHA</x:ref>
629  <x:ref>subtag</x:ref>        = 1*8<x:ref>ALPHA</x:ref>
630</artwork></figure>
631<t>
632   White space is not allowed within the tag and all tags are case-insensitive.
633   The name space of language tags is administered by the
634   IANA. Example tags include:
635</t>
636<figure><artwork type="example">
637    en, en-US, en-cockney, i-cherokee, x-pig-latin
638</artwork></figure>
639<t>
640   where any two-letter primary-tag is an ISO-639 language abbreviation
641   and any two-letter initial subtag is an ISO-3166 country code. (The
642   last three tags above are not registered tags; all but the last are
643   examples of tags which could be registered in future.)
644</t>
645</section>
646</section>
647
648<section title="Entity" anchor="entity">
649<t>
650   Request and Response messages &MAY; transfer an entity if not otherwise
651   restricted by the request method or response status code. An entity
652   consists of entity-header fields and an entity-body, although some
653   responses will only include the entity-headers.
654</t>
655<t>
656   In this section, both sender and recipient refer to either the client
657   or the server, depending on who sends and who receives the entity.
658</t>
659
660<section title="Entity Header Fields" anchor="entity.header.fields">
661  <x:anchor-alias value="entity-header"/>
662  <x:anchor-alias value="extension-header"/>
663<t>
664   Entity-header fields define metainformation about the entity-body or,
665   if no body is present, about the resource identified by the request.
666</t>
667<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="entity-header"/><iref primary="true" item="Grammar" subitem="extension-header"/>
668  <x:ref>entity-header</x:ref>  = <x:ref>Content-Encoding</x:ref>         ; <xref target="header.content-encoding"/>
669                 | <x:ref>Content-Language</x:ref>         ; <xref target="header.content-language"/>
670                 | <x:ref>Content-Length</x:ref>           ; &header-content-length;
671                 | <x:ref>Content-Location</x:ref>         ; <xref target="header.content-location"/>
672                 | <x:ref>Content-MD5</x:ref>              ; <xref target="header.content-md5"/>
673                 | <x:ref>Content-Range</x:ref>            ; &header-content-range;
674                 | <x:ref>Content-Type</x:ref>             ; <xref target="header.content-type"/>
675                 | <x:ref>Expires</x:ref>                  ; &header-expires;
676                 | <x:ref>Last-Modified</x:ref>            ; &header-last-modified;
677                 | <x:ref>extension-header</x:ref>
678 
679  <x:ref>extension-header</x:ref> = <x:ref>message-header</x:ref>
680</artwork></figure>
681<t>
682   The extension-header mechanism allows additional entity-header fields
683   to be defined without changing the protocol, but these fields cannot
684   be assumed to be recognizable by the recipient. Unrecognized header
685   fields &SHOULD; be ignored by the recipient and &MUST; be forwarded by
686   transparent proxies.
687</t>
688</section>
689
690<section title="Entity Body" anchor="entity.body">
691  <x:anchor-alias value="entity-body"/>
692<t>
693   The entity-body (if any) sent with an HTTP request or response is in
694   a format and encoding defined by the entity-header fields.
695</t>
696<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="entity-body"/>
697  <x:ref>entity-body</x:ref>    = *<x:ref>OCTET</x:ref>
698</artwork></figure>
699<t>
700   An entity-body is only present in a message when a message-body is
701   present, as described in &message-body;. The entity-body is obtained
702   from the message-body by decoding any Transfer-Encoding that might
703   have been applied to ensure safe and proper transfer of the message.
704</t>
705
706<section title="Type" anchor="type">
707<t>
708   When an entity-body is included with a message, the data type of that
709   body is determined via the header fields Content-Type and Content-Encoding.
710   These define a two-layer, ordered encoding model:
711</t>
712<figure><artwork type="example">
713    entity-body := Content-Encoding( Content-Type( data ) )
714</artwork></figure>
715<t>
716   Content-Type specifies the media type of the underlying data.
717   Content-Encoding may be used to indicate any additional content
718   codings applied to the data, usually for the purpose of data
719   compression, that are a property of the requested resource. There is
720   no default encoding.
721</t>
722<t>
723   Any HTTP/1.1 message containing an entity-body &SHOULD; include a
724   Content-Type header field defining the media type of that body. If
725   and only if the media type is not given by a Content-Type field, the
726   recipient &MAY; attempt to guess the media type via inspection of its
727   content and/or the name extension(s) of the URI used to identify the
728   resource. If the media type remains unknown, the recipient &SHOULD;
729   treat it as type "application/octet-stream".
730</t>
731</section>
732   
733<section title="Entity Length" anchor="entity.length">
734<t>
735   The entity-length of a message is the length of the message-body
736   before any transfer-codings have been applied. &message-length; defines
737   how the transfer-length of a message-body is determined.
738</t>
739</section>
740</section>
741</section>
742
743<section title="Content Negotiation" anchor="content.negotiation">
744<t>
745   Most HTTP responses include an entity which contains information for
746   interpretation by a human user. Naturally, it is desirable to supply
747   the user with the "best available" entity corresponding to the
748   request. Unfortunately for servers and caches, not all users have the
749   same preferences for what is "best," and not all user agents are
750   equally capable of rendering all entity types. For that reason, HTTP
751   has provisions for several mechanisms for "content negotiation" --
752   the process of selecting the best representation for a given response
753   when there are multiple representations available.
754  <list><t>
755      <x:h>Note:</x:h> This is not called "format negotiation" because the
756      alternate representations may be of the same media type, but use
757      different capabilities of that type, be in different languages,
758      etc.
759  </t></list>
760</t>
761<t>
762   Any response containing an entity-body &MAY; be subject to negotiation,
763   including error responses.
764</t>
765<t>
766   There are two kinds of content negotiation which are possible in
767   HTTP: server-driven and agent-driven negotiation. These two kinds of
768   negotiation are orthogonal and thus may be used separately or in
769   combination. One method of combination, referred to as transparent
770   negotiation, occurs when a cache uses the agent-driven negotiation
771   information provided by the origin server in order to provide
772   server-driven negotiation for subsequent requests.
773</t>
774
775<section title="Server-driven Negotiation" anchor="server-driven.negotiation">
776<t>
777   If the selection of the best representation for a response is made by
778   an algorithm located at the server, it is called server-driven
779   negotiation. Selection is based on the available representations of
780   the response (the dimensions over which it can vary; e.g. language,
781   content-coding, etc.) and the contents of particular header fields in
782   the request message or on other information pertaining to the request
783   (such as the network address of the client).
784</t>
785<t>
786   Server-driven negotiation is advantageous when the algorithm for
787   selecting from among the available representations is difficult to
788   describe to the user agent, or when the server desires to send its
789   "best guess" to the client along with the first response (hoping to
790   avoid the round-trip delay of a subsequent request if the "best
791   guess" is good enough for the user). In order to improve the server's
792   guess, the user agent &MAY; include request header fields (Accept,
793   Accept-Language, Accept-Encoding, etc.) which describe its
794   preferences for such a response.
795</t>
796<t>
797   Server-driven negotiation has disadvantages:
798  <list style="numbers">
799    <t>
800         It is impossible for the server to accurately determine what
801         might be "best" for any given user, since that would require
802         complete knowledge of both the capabilities of the user agent
803         and the intended use for the response (e.g., does the user want
804         to view it on screen or print it on paper?).
805    </t>
806    <t>
807         Having the user agent describe its capabilities in every
808         request can be both very inefficient (given that only a small
809         percentage of responses have multiple representations) and a
810         potential violation of the user's privacy.
811    </t>
812    <t>
813         It complicates the implementation of an origin server and the
814         algorithms for generating responses to a request.
815    </t>
816    <t>
817         It may limit a public cache's ability to use the same response
818         for multiple user's requests.
819    </t>
820  </list>
821</t>
822<t>
823   HTTP/1.1 includes the following request-header fields for enabling
824   server-driven negotiation through description of user agent
825   capabilities and user preferences: Accept (<xref target="header.accept"/>), Accept-Charset
826   (<xref target="header.accept-charset"/>), Accept-Encoding (<xref target="header.accept-encoding"/>), Accept-Language
827   (<xref target="header.accept-language"/>), and User-Agent (&header-user-agent;). However, an
828   origin server is not limited to these dimensions and &MAY; vary the
829   response based on any aspect of the request, including information
830   outside the request-header fields or within extension header fields
831   not defined by this specification.
832</t>
833<t>
834   The Vary header field (&header-vary;) can be used to express the parameters the
835   server uses to select a representation that is subject to server-driven
836   negotiation.
837</t>
838</section>
839
840<section title="Agent-driven Negotiation" anchor="agent-driven.negotiation">
841<t>
842   With agent-driven negotiation, selection of the best representation
843   for a response is performed by the user agent after receiving an
844   initial response from the origin server. Selection is based on a list
845   of the available representations of the response included within the
846   header fields or entity-body of the initial response, with each
847   representation identified by its own URI. Selection from among the
848   representations may be performed automatically (if the user agent is
849   capable of doing so) or manually by the user selecting from a
850   generated (possibly hypertext) menu.
851</t>
852<t>
853   Agent-driven negotiation is advantageous when the response would vary
854   over commonly-used dimensions (such as type, language, or encoding),
855   when the origin server is unable to determine a user agent's
856   capabilities from examining the request, and generally when public
857   caches are used to distribute server load and reduce network usage.
858</t>
859<t>
860   Agent-driven negotiation suffers from the disadvantage of needing a
861   second request to obtain the best alternate representation. This
862   second request is only efficient when caching is used. In addition,
863   this specification does not define any mechanism for supporting
864   automatic selection, though it also does not prevent any such
865   mechanism from being developed as an extension and used within
866   HTTP/1.1.
867</t>
868<t>
869   HTTP/1.1 defines the 300 (Multiple Choices) and 406 (Not Acceptable)
870   status codes for enabling agent-driven negotiation when the server is
871   unwilling or unable to provide a varying response using server-driven
872   negotiation.
873</t>
874</section>
875
876<section title="Transparent Negotiation" anchor="transparent.negotiation">
877<t>
878   Transparent negotiation is a combination of both server-driven and
879   agent-driven negotiation. When a cache is supplied with a form of the
880   list of available representations of the response (as in agent-driven
881   negotiation) and the dimensions of variance are completely understood
882   by the cache, then the cache becomes capable of performing server-driven
883   negotiation on behalf of the origin server for subsequent
884   requests on that resource.
885</t>
886<t>
887   Transparent negotiation has the advantage of distributing the
888   negotiation work that would otherwise be required of the origin
889   server and also removing the second request delay of agent-driven
890   negotiation when the cache is able to correctly guess the right
891   response.
892</t>
893<t>
894   This specification does not define any mechanism for transparent
895   negotiation, though it also does not prevent any such mechanism from
896   being developed as an extension that could be used within HTTP/1.1.
897</t>
898</section>
899</section>
900
901<section title="Header Field Definitions" anchor="header.fields">
902<t>
903   This section defines the syntax and semantics of HTTP/1.1 header fields
904   related to the payload of messages.
905</t>
906<t>
907   For entity-header fields, both sender and recipient refer to either the
908   client or the server, depending on who sends and who receives the entity.
909</t>
910
911<section title="Accept" anchor="header.accept">
912  <iref primary="true" item="Accept header" x:for-anchor=""/>
913  <iref primary="true" item="Headers" subitem="Accept" x:for-anchor=""/>
914  <x:anchor-alias value="Accept"/>
915  <x:anchor-alias value="accept-extension"/>
916  <x:anchor-alias value="accept-params"/>
917  <x:anchor-alias value="media-range"/>
918<t>
919   The Accept request-header field can be used to specify certain media
920   types which are acceptable for the response. Accept headers can be
921   used to indicate that the request is specifically limited to a small
922   set of desired types, as in the case of a request for an in-line
923   image.
924</t>
925<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Accept"/><iref primary="true" item="Grammar" subitem="media-range"/><iref primary="true" item="Grammar" subitem="accept-params"/><iref primary="true" item="Grammar" subitem="accept-extension"/>
926  <x:ref>Accept</x:ref>         = "Accept" ":"
927                   #( <x:ref>media-range</x:ref> [ <x:ref>accept-params</x:ref> ] )
928 
929  <x:ref>media-range</x:ref>    = ( "*/*"
930                   | ( <x:ref>type</x:ref> "/" "*" )
931                   | ( <x:ref>type</x:ref> "/" <x:ref>subtype</x:ref> )
932                   ) *( ";" <x:ref>parameter</x:ref> )
933  <x:ref>accept-params</x:ref>  = ";" "q" "=" <x:ref>qvalue</x:ref> *( <x:ref>accept-extension</x:ref> )
934  <x:ref>accept-extension</x:ref> = ";" <x:ref>token</x:ref> [ "=" ( <x:ref>token</x:ref> | <x:ref>quoted-string</x:ref> ) ]
935</artwork></figure>
936<t>
937   The asterisk "*" character is used to group media types into ranges,
938   with "*/*" indicating all media types and "type/*" indicating all
939   subtypes of that type. The media-range &MAY; include media type
940   parameters that are applicable to that range.
941</t>
942<t>
943   Each media-range &MAY; be followed by one or more accept-params,
944   beginning with the "q" parameter for indicating a relative quality
945   factor. The first "q" parameter (if any) separates the media-range
946   parameter(s) from the accept-params. Quality factors allow the user
947   or user agent to indicate the relative degree of preference for that
948   media-range, using the qvalue scale from 0 to 1 (<xref target="quality.values"/>). The
949   default value is q=1.
950  <list><t>
951      <x:h>Note:</x:h> Use of the "q" parameter name to separate media type
952      parameters from Accept extension parameters is due to historical
953      practice. Although this prevents any media type parameter named
954      "q" from being used with a media range, such an event is believed
955      to be unlikely given the lack of any "q" parameters in the IANA
956      media type registry and the rare usage of any media type
957      parameters in Accept. Future media types are discouraged from
958      registering any parameter named "q".
959  </t></list>
960</t>
961<t>
962   The example
963</t>
964<figure><artwork type="example">
965    Accept: audio/*; q=0.2, audio/basic
966</artwork></figure>
967<t>
968   &SHOULD; be interpreted as "I prefer audio/basic, but send me any audio
969   type if it is the best available after an 80% mark-down in quality."
970</t>
971<t>
972   If no Accept header field is present, then it is assumed that the
973   client accepts all media types. If an Accept header field is present,
974   and if the server cannot send a response which is acceptable
975   according to the combined Accept field value, then the server &SHOULD;
976   send a 406 (Not Acceptable) response.
977</t>
978<t>
979   A more elaborate example is
980</t>
981<figure><artwork type="example">
982    Accept: text/plain; q=0.5, text/html,
983            text/x-dvi; q=0.8, text/x-c
984</artwork></figure>
985<t>
986   Verbally, this would be interpreted as "text/html and text/x-c are
987   the preferred media types, but if they do not exist, then send the
988   text/x-dvi entity, and if that does not exist, send the text/plain
989   entity."
990</t>
991<t>
992   Media ranges can be overridden by more specific media ranges or
993   specific media types. If more than one media range applies to a given
994   type, the most specific reference has precedence. For example,
995</t>
996<figure><artwork type="example">
997    Accept: text/*, text/html, text/html;level=1, */*
998</artwork></figure>
999<t>
1000   have the following precedence:
1001</t>
1002<figure><artwork type="example">
1003    1) text/html;level=1
1004    2) text/html
1005    3) text/*
1006    4) */*
1007</artwork></figure>
1008<t>
1009   The media type quality factor associated with a given type is
1010   determined by finding the media range with the highest precedence
1011   which matches that type. For example,
1012</t>
1013<figure><artwork type="example">
1014    Accept: text/*;q=0.3, text/html;q=0.7, text/html;level=1,
1015            text/html;level=2;q=0.4, */*;q=0.5
1016</artwork></figure>
1017<t>
1018   would cause the following values to be associated:
1019</t>
1020<figure><artwork type="example">
1021    text/html;level=1         = 1
1022    text/html                 = 0.7
1023    text/plain                = 0.3
1024    image/jpeg                = 0.5
1025    text/html;level=2         = 0.4
1026    text/html;level=3         = 0.7
1027</artwork></figure>
1028<t>
1029      <x:h>Note:</x:h> A user agent might be provided with a default set of quality
1030      values for certain media ranges. However, unless the user agent is
1031      a closed system which cannot interact with other rendering agents,
1032      this default set ought to be configurable by the user.
1033</t>
1034</section>
1035
1036<section title="Accept-Charset" anchor="header.accept-charset">
1037  <iref primary="true" item="Accept-Charset header" x:for-anchor=""/>
1038  <iref primary="true" item="Headers" subitem="Accept-Charset" x:for-anchor=""/>
1039  <x:anchor-alias value="Accept-Charset"/>
1040<t>
1041   The Accept-Charset request-header field can be used to indicate what
1042   character sets are acceptable for the response. This field allows
1043   clients capable of understanding more comprehensive or special-purpose
1044   character sets to signal that capability to a server which is
1045   capable of representing documents in those character sets.
1046</t>
1047<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Accept-Charset"/>
1048  <x:ref>Accept-Charset</x:ref> = "Accept-Charset" ":"
1049          1#( ( <x:ref>charset</x:ref> | "*" ) [ ";" "q" "=" <x:ref>qvalue</x:ref> ] )
1050</artwork></figure>
1051<t>
1052   Character set values are described in <xref target="character.sets"/>. Each charset &MAY;
1053   be given an associated quality value which represents the user's
1054   preference for that charset. The default value is q=1. An example is
1055</t>
1056<figure><artwork type="example">
1057   Accept-Charset: iso-8859-5, unicode-1-1;q=0.8
1058</artwork></figure>
1059<t>
1060   The special value "*", if present in the Accept-Charset field,
1061   matches every character set (including ISO-8859-1) which is not
1062   mentioned elsewhere in the Accept-Charset field. If no "*" is present
1063   in an Accept-Charset field, then all character sets not explicitly
1064   mentioned get a quality value of 0, except for ISO-8859-1, which gets
1065   a quality value of 1 if not explicitly mentioned.
1066</t>
1067<t>
1068   If no Accept-Charset header is present, the default is that any
1069   character set is acceptable. If an Accept-Charset header is present,
1070   and if the server cannot send a response which is acceptable
1071   according to the Accept-Charset header, then the server &SHOULD; send
1072   an error response with the 406 (Not Acceptable) status code, though
1073   the sending of an unacceptable response is also allowed.
1074</t>
1075</section>
1076
1077<section title="Accept-Encoding" anchor="header.accept-encoding">
1078  <iref primary="true" item="Accept-Encoding header" x:for-anchor=""/>
1079  <iref primary="true" item="Headers" subitem="Accept-Encoding" x:for-anchor=""/>
1080  <x:anchor-alias value="Accept-Encoding"/>
1081  <x:anchor-alias value="codings"/>
1082<t>
1083   The Accept-Encoding request-header field is similar to Accept, but
1084   restricts the content-codings (<xref target="content.codings"/>) that are acceptable in
1085   the response.
1086</t>
1087<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Accept-Encoding"/><iref primary="true" item="Grammar" subitem="codings"/>
1088  <x:ref>Accept-Encoding</x:ref>  = "Accept-Encoding" ":"
1089                     #( <x:ref>codings</x:ref> [ ";" "q" "=" <x:ref>qvalue</x:ref> ] )
1090  <x:ref>codings</x:ref>          = ( <x:ref>content-coding</x:ref> | "*" )
1091</artwork></figure>
1092<t>
1093   Each codings value &MAY; be given an associated quality value which
1094   represents the preference for that encoding. The default value is q=1.
1095</t>
1096<t>
1097   Examples of its use are:
1098</t>
1099<figure><artwork type="example">
1100    Accept-Encoding: compress, gzip
1101    Accept-Encoding:
1102    Accept-Encoding: *
1103    Accept-Encoding: compress;q=0.5, gzip;q=1.0
1104    Accept-Encoding: gzip;q=1.0, identity; q=0.5, *;q=0
1105</artwork></figure>
1106<t>
1107   A server tests whether a content-coding is acceptable, according to
1108   an Accept-Encoding field, using these rules:
1109  <list style="numbers">
1110      <t>If the content-coding is one of the content-codings listed in
1111         the Accept-Encoding field, then it is acceptable, unless it is
1112         accompanied by a qvalue of 0. (As defined in <xref target="quality.values"/>, a
1113         qvalue of 0 means "not acceptable.")</t>
1114
1115      <t>The special "*" symbol in an Accept-Encoding field matches any
1116         available content-coding not explicitly listed in the header
1117         field.</t>
1118
1119      <t>If multiple content-codings are acceptable, then the acceptable
1120         content-coding with the highest non-zero qvalue is preferred.</t>
1121
1122      <t>The "identity" content-coding is always acceptable, unless
1123         specifically refused because the Accept-Encoding field includes
1124         "identity;q=0", or because the field includes "*;q=0" and does
1125         not explicitly include the "identity" content-coding. If the
1126         Accept-Encoding field-value is empty, then only the "identity"
1127         encoding is acceptable.</t>
1128  </list>
1129</t>
1130<t>
1131   If an Accept-Encoding field is present in a request, and if the
1132   server cannot send a response which is acceptable according to the
1133   Accept-Encoding header, then the server &SHOULD; send an error response
1134   with the 406 (Not Acceptable) status code.
1135</t>
1136<t>
1137   If no Accept-Encoding field is present in a request, the server &MAY;
1138   assume that the client will accept any content coding. In this case,
1139   if "identity" is one of the available content-codings, then the
1140   server &SHOULD; use the "identity" content-coding, unless it has
1141   additional information that a different content-coding is meaningful
1142   to the client.
1143  <list><t>
1144      <x:h>Note:</x:h> If the request does not include an Accept-Encoding field,
1145      and if the "identity" content-coding is unavailable, then
1146      content-codings commonly understood by HTTP/1.0 clients (i.e.,
1147      "gzip" and "compress") are preferred; some older clients
1148      improperly display messages sent with other content-codings.  The
1149      server might also make this decision based on information about
1150      the particular user-agent or client.
1151    </t><t>
1152      <x:h>Note:</x:h> Most HTTP/1.0 applications do not recognize or obey qvalues
1153      associated with content-codings. This means that qvalues will not
1154      work and are not permitted with x-gzip or x-compress.
1155    </t></list>
1156</t>
1157</section>
1158
1159<section title="Accept-Language" anchor="header.accept-language">
1160  <iref primary="true" item="Accept-Language header" x:for-anchor=""/>
1161  <iref primary="true" item="Headers" subitem="Accept-Language" x:for-anchor=""/>
1162  <x:anchor-alias value="Accept-Language"/>
1163  <x:anchor-alias value="language-range"/>
1164<t>
1165   The Accept-Language request-header field is similar to Accept, but
1166   restricts the set of natural languages that are preferred as a
1167   response to the request. Language tags are defined in <xref target="language.tags"/>.
1168</t>
1169<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Accept-Language"/><iref primary="true" item="Grammar" subitem="language-range"/>
1170  <x:ref>Accept-Language</x:ref> = "Accept-Language" ":"
1171                    1#( <x:ref>language-range</x:ref> [ ";" "q" "=" <x:ref>qvalue</x:ref> ] )
1172  <x:ref>language-range</x:ref>  = ( ( 1*8<x:ref>ALPHA</x:ref> *( "-" 1*8<x:ref>ALPHA</x:ref> ) ) | "*" )
1173</artwork></figure>
1174<t>
1175   Each language-range &MAY; be given an associated quality value which
1176   represents an estimate of the user's preference for the languages
1177   specified by that range. The quality value defaults to "q=1". For
1178   example,
1179</t>
1180<figure><artwork type="example">
1181    Accept-Language: da, en-gb;q=0.8, en;q=0.7
1182</artwork></figure>
1183<t>
1184   would mean: "I prefer Danish, but will accept British English and
1185   other types of English." A language-range matches a language-tag if
1186   it exactly equals the tag, or if it exactly equals a prefix of the
1187   tag such that the first tag character following the prefix is "-".
1188   The special range "*", if present in the Accept-Language field,
1189   matches every tag not matched by any other range present in the
1190   Accept-Language field.
1191  <list><t>
1192      <x:h>Note:</x:h> This use of a prefix matching rule does not imply that
1193      language tags are assigned to languages in such a way that it is
1194      always true that if a user understands a language with a certain
1195      tag, then this user will also understand all languages with tags
1196      for which this tag is a prefix. The prefix rule simply allows the
1197      use of prefix tags if this is the case.
1198  </t></list>
1199</t>
1200<t>
1201   The language quality factor assigned to a language-tag by the
1202   Accept-Language field is the quality value of the longest language-range
1203   in the field that matches the language-tag. If no language-range
1204   in the field matches the tag, the language quality factor
1205   assigned is 0. If no Accept-Language header is present in the
1206   request, the server
1207   &SHOULD; assume that all languages are equally acceptable. If an
1208   Accept-Language header is present, then all languages which are
1209   assigned a quality factor greater than 0 are acceptable.
1210</t>
1211<t>
1212   It might be contrary to the privacy expectations of the user to send
1213   an Accept-Language header with the complete linguistic preferences of
1214   the user in every request. For a discussion of this issue, see
1215   <xref target="privacy.issues.connected.to.accept.headers"/>.
1216</t>
1217<t>
1218   As intelligibility is highly dependent on the individual user, it is
1219   recommended that client applications make the choice of linguistic
1220   preference available to the user. If the choice is not made
1221   available, then the Accept-Language header field &MUST-NOT; be given in
1222   the request.
1223  <list><t>
1224      <x:h>Note:</x:h> When making the choice of linguistic preference available to
1225      the user, we remind implementors of  the fact that users are not
1226      familiar with the details of language matching as described above,
1227      and should provide appropriate guidance. As an example, users
1228      might assume that on selecting "en-gb", they will be served any
1229      kind of English document if British English is not available. A
1230      user agent might suggest in such a case to add "en" to get the
1231      best matching behavior.
1232  </t></list>
1233</t>
1234</section>
1235
1236<section title="Content-Encoding" anchor="header.content-encoding">
1237  <iref primary="true" item="Content-Encoding header" x:for-anchor=""/>
1238  <iref primary="true" item="Headers" subitem="Content-Encoding" x:for-anchor=""/>
1239  <x:anchor-alias value="Content-Encoding"/>
1240<t>
1241   The Content-Encoding entity-header field is used as a modifier to the
1242   media-type. When present, its value indicates what additional content
1243   codings have been applied to the entity-body, and thus what decoding
1244   mechanisms must be applied in order to obtain the media-type
1245   referenced by the Content-Type header field. Content-Encoding is
1246   primarily used to allow a document to be compressed without losing
1247   the identity of its underlying media type.
1248</t>
1249<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Content-Encoding"/>
1250  <x:ref>Content-Encoding</x:ref>  = "Content-Encoding" ":" 1#<x:ref>content-coding</x:ref>
1251</artwork></figure>
1252<t>
1253   Content codings are defined in <xref target="content.codings"/>. An example of its use is
1254</t>
1255<figure><artwork type="example">
1256    Content-Encoding: gzip
1257</artwork></figure>
1258<t>
1259   The content-coding is a characteristic of the entity identified by
1260   the Request-URI. Typically, the entity-body is stored with this
1261   encoding and is only decoded before rendering or analogous usage.
1262   However, a non-transparent proxy &MAY; modify the content-coding if the
1263   new coding is known to be acceptable to the recipient, unless the
1264   "no-transform" cache-control directive is present in the message.
1265</t>
1266<t>
1267   If the content-coding of an entity is not "identity", then the
1268   response &MUST; include a Content-Encoding entity-header (<xref target="header.content-encoding"/>)
1269   that lists the non-identity content-coding(s) used.
1270</t>
1271<t>
1272   If the content-coding of an entity in a request message is not
1273   acceptable to the origin server, the server &SHOULD; respond with a
1274   status code of 415 (Unsupported Media Type).
1275</t>
1276<t>
1277   If multiple encodings have been applied to an entity, the content
1278   codings &MUST; be listed in the order in which they were applied.
1279   Additional information about the encoding parameters &MAY; be provided
1280   by other entity-header fields not defined by this specification.
1281</t>
1282</section>
1283
1284<section title="Content-Language" anchor="header.content-language">
1285  <iref primary="true" item="Content-Language header" x:for-anchor=""/>
1286  <iref primary="true" item="Headers" subitem="Content-Language" x:for-anchor=""/>
1287  <x:anchor-alias value="Content-Language"/>
1288<t>
1289   The Content-Language entity-header field describes the natural
1290   language(s) of the intended audience for the enclosed entity. Note
1291   that this might not be equivalent to all the languages used within
1292   the entity-body.
1293</t>
1294<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Content-Language"/>
1295  <x:ref>Content-Language</x:ref>  = "Content-Language" ":" 1#<x:ref>language-tag</x:ref>
1296</artwork></figure>
1297<t>
1298   Language tags are defined in <xref target="language.tags"/>. The primary purpose of
1299   Content-Language is to allow a user to identify and differentiate
1300   entities according to the user's own preferred language. Thus, if the
1301   body content is intended only for a Danish-literate audience, the
1302   appropriate field is
1303</t>
1304<figure><artwork type="example">
1305    Content-Language: da
1306</artwork></figure>
1307<t>
1308   If no Content-Language is specified, the default is that the content
1309   is intended for all language audiences. This might mean that the
1310   sender does not consider it to be specific to any natural language,
1311   or that the sender does not know for which language it is intended.
1312</t>
1313<t>
1314   Multiple languages &MAY; be listed for content that is intended for
1315   multiple audiences. For example, a rendition of the "Treaty of
1316   Waitangi," presented simultaneously in the original Maori and English
1317   versions, would call for
1318</t>
1319<figure><artwork type="example">
1320    Content-Language: mi, en
1321</artwork></figure>
1322<t>
1323   However, just because multiple languages are present within an entity
1324   does not mean that it is intended for multiple linguistic audiences.
1325   An example would be a beginner's language primer, such as "A First
1326   Lesson in Latin," which is clearly intended to be used by an
1327   English-literate audience. In this case, the Content-Language would
1328   properly only include "en".
1329</t>
1330<t>
1331   Content-Language &MAY; be applied to any media type -- it is not
1332   limited to textual documents.
1333</t>
1334</section>
1335
1336<section title="Content-Location" anchor="header.content-location">
1337  <iref primary="true" item="Content-Location header" x:for-anchor=""/>
1338  <iref primary="true" item="Headers" subitem="Content-Location" x:for-anchor=""/>
1339  <x:anchor-alias value="Content-Location"/>
1340<t>
1341   The Content-Location entity-header field &MAY; be used to supply the
1342   resource location for the entity enclosed in the message when that
1343   entity is accessible from a location separate from the requested
1344   resource's URI. A server &SHOULD; provide a Content-Location for the
1345   variant corresponding to the response entity; especially in the case
1346   where a resource has multiple entities associated with it, and those
1347   entities actually have separate locations by which they might be
1348   individually accessed, the server &SHOULD; provide a Content-Location
1349   for the particular variant which is returned.
1350</t>
1351<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Content-Location"/>
1352  <x:ref>Content-Location</x:ref> = "Content-Location" ":"
1353                    ( <x:ref>absoluteURI</x:ref> | <x:ref>relativeURI</x:ref> )
1354</artwork></figure>
1355<t>
1356   The value of Content-Location also defines the base URI for the
1357   entity.
1358</t>
1359<t>
1360   The Content-Location value is not a replacement for the original
1361   requested URI; it is only a statement of the location of the resource
1362   corresponding to this particular entity at the time of the request.
1363   Future requests &MAY; specify the Content-Location URI as the request-URI
1364   if the desire is to identify the source of that particular
1365   entity.
1366</t>
1367<t>
1368   A cache cannot assume that an entity with a Content-Location
1369   different from the URI used to retrieve it can be used to respond to
1370   later requests on that Content-Location URI. However, the Content-Location
1371   can be used to differentiate between multiple entities
1372   retrieved from a single requested resource, as described in &caching-neg-resp;.
1373</t>
1374<t>
1375   If the Content-Location is a relative URI, the relative URI is
1376   interpreted relative to the Request-URI.
1377</t>
1378<t>
1379   The meaning of the Content-Location header in PUT or POST requests is
1380   undefined; servers are free to ignore it in those cases.
1381</t>
1382</section>
1383
1384<section title="Content-MD5" anchor="header.content-md5">
1385  <iref primary="true" item="Content-MD5 header" x:for-anchor=""/>
1386  <iref primary="true" item="Headers" subitem="Content-MD5" x:for-anchor=""/>
1387  <x:anchor-alias value="Content-MD5"/>
1388  <x:anchor-alias value="md5-digest"/>
1389<t>
1390   The Content-MD5 entity-header field, as defined in <xref target="RFC1864"/>, is
1391   an MD5 digest of the entity-body for the purpose of providing an
1392   end-to-end message integrity check (MIC) of the entity-body. (Note: a
1393   MIC is good for detecting accidental modification of the entity-body
1394   in transit, but is not proof against malicious attacks.)
1395</t>
1396<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Content-MD5"/><iref primary="true" item="Grammar" subitem="md5-digest"/>
1397  <x:ref>Content-MD5</x:ref>   = "Content-MD5" ":" <x:ref>md5-digest</x:ref>
1398  <x:ref>md5-digest</x:ref>    = &lt;base64 of 128 bit MD5 digest as per <xref target="RFC1864"/>&gt;
1399</artwork></figure>
1400<t>
1401   The Content-MD5 header field &MAY; be generated by an origin server or
1402   client to function as an integrity check of the entity-body. Only
1403   origin servers or clients &MAY; generate the Content-MD5 header field;
1404   proxies and gateways &MUST-NOT; generate it, as this would defeat its
1405   value as an end-to-end integrity check. Any recipient of the entity-body,
1406   including gateways and proxies, &MAY; check that the digest value
1407   in this header field matches that of the entity-body as received.
1408</t>
1409<t>
1410   The MD5 digest is computed based on the content of the entity-body,
1411   including any content-coding that has been applied, but not including
1412   any transfer-encoding applied to the message-body. If the message is
1413   received with a transfer-encoding, that encoding &MUST; be removed
1414   prior to checking the Content-MD5 value against the received entity.
1415</t>
1416<t>
1417   This has the result that the digest is computed on the octets of the
1418   entity-body exactly as, and in the order that, they would be sent if
1419   no transfer-encoding were being applied.
1420</t>
1421<t>
1422   HTTP extends RFC 1864 to permit the digest to be computed for MIME
1423   composite media-types (e.g., multipart/* and message/rfc822), but
1424   this does not change how the digest is computed as defined in the
1425   preceding paragraph.
1426</t>
1427<t>
1428   There are several consequences of this. The entity-body for composite
1429   types &MAY; contain many body-parts, each with its own MIME and HTTP
1430   headers (including Content-MD5, Content-Transfer-Encoding, and
1431   Content-Encoding headers). If a body-part has a Content-Transfer-Encoding
1432   or Content-Encoding header, it is assumed that the content
1433   of the body-part has had the encoding applied, and the body-part is
1434   included in the Content-MD5 digest as is -- i.e., after the
1435   application. The Transfer-Encoding header field is not allowed within
1436   body-parts.
1437</t>
1438<t>
1439   Conversion of all line breaks to CRLF &MUST-NOT; be done before
1440   computing or checking the digest: the line break convention used in
1441   the text actually transmitted &MUST; be left unaltered when computing
1442   the digest.
1443  <list><t>
1444      <x:h>Note:</x:h> while the definition of Content-MD5 is exactly the same for
1445      HTTP as in RFC 1864 for MIME entity-bodies, there are several ways
1446      in which the application of Content-MD5 to HTTP entity-bodies
1447      differs from its application to MIME entity-bodies. One is that
1448      HTTP, unlike MIME, does not use Content-Transfer-Encoding, and
1449      does use Transfer-Encoding and Content-Encoding. Another is that
1450      HTTP more frequently uses binary content types than MIME, so it is
1451      worth noting that, in such cases, the byte order used to compute
1452      the digest is the transmission byte order defined for the type.
1453      Lastly, HTTP allows transmission of text types with any of several
1454      line break conventions and not just the canonical form using CRLF.
1455  </t></list>
1456</t>
1457</section>
1458
1459<section title="Content-Type" anchor="header.content-type">
1460  <iref primary="true" item="Content-Type header" x:for-anchor=""/>
1461  <iref primary="true" item="Headers" subitem="Content-Type" x:for-anchor=""/>
1462  <x:anchor-alias value="Content-Type"/>
1463<t>
1464   The Content-Type entity-header field indicates the media type of the
1465   entity-body sent to the recipient or, in the case of the HEAD method,
1466   the media type that would have been sent had the request been a GET.
1467</t>
1468<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Content-Type"/>
1469  <x:ref>Content-Type</x:ref>   = "Content-Type" ":" <x:ref>media-type</x:ref>
1470</artwork></figure>
1471<t>
1472   Media types are defined in <xref target="media.types"/>. An example of the field is
1473</t>
1474<figure><artwork type="example">
1475    Content-Type: text/html; charset=ISO-8859-4
1476</artwork></figure>
1477<t>
1478   Further discussion of methods for identifying the media type of an
1479   entity is provided in <xref target="type"/>.
1480</t>
1481</section>
1482
1483</section>
1484
1485<section title="IANA Considerations" anchor="IANA.considerations">
1486<section title="Message Header Registration" anchor="message.header.registration">
1487<!--AUTOGENERATED FROM extract-header-defs.xslt, do not edit manually-->
1488<!--(START)-->
1489<t>
1490    The Message Header Registry located at <eref target="http://www.iana.org/assignments/message-headers/message-header-index.html"/> should be updated
1491    with the permanent registrations below (see <xref target="RFC3864"/>):
1492  </t>
1493<texttable>
1494   <ttcol>Header Field Name</ttcol>
1495   <ttcol>Protocol</ttcol>
1496   <ttcol>Status</ttcol>
1497   <ttcol>Reference</ttcol>
1498
1499   <c>Accept</c>
1500   <c>http</c>
1501   <c>standard</c>
1502   <c>
1503      <xref target="header.accept"/>
1504   </c>
1505
1506   <c>Accept-Charset</c>
1507   <c>http</c>
1508   <c>standard</c>
1509   <c>
1510      <xref target="header.accept-charset"/>
1511   </c>
1512
1513   <c>Accept-Encoding</c>
1514   <c>http</c>
1515   <c>standard</c>
1516   <c>
1517      <xref target="header.accept-encoding"/>
1518   </c>
1519
1520   <c>Accept-Language</c>
1521   <c>http</c>
1522   <c>standard</c>
1523   <c>
1524      <xref target="header.accept-language"/>
1525   </c>
1526
1527   <c>Content-Disposition</c>
1528   <c>http</c>
1529   <c>&#160;</c>
1530   <c>
1531      <xref target="content-disposition"/>
1532   </c>
1533
1534   <c>Content-Encoding</c>
1535   <c>http</c>
1536   <c>standard</c>
1537   <c>
1538      <xref target="header.content-encoding"/>
1539   </c>
1540
1541   <c>Content-Language</c>
1542   <c>http</c>
1543   <c>standard</c>
1544   <c>
1545      <xref target="header.content-language"/>
1546   </c>
1547
1548   <c>Content-Location</c>
1549   <c>http</c>
1550   <c>standard</c>
1551   <c>
1552      <xref target="header.content-location"/>
1553   </c>
1554
1555   <c>Content-MD5</c>
1556   <c>http</c>
1557   <c>standard</c>
1558   <c>
1559      <xref target="header.content-md5"/>
1560   </c>
1561
1562   <c>Content-Type</c>
1563   <c>http</c>
1564   <c>standard</c>
1565   <c>
1566      <xref target="header.content-type"/>
1567   </c>
1568</texttable>
1569<t>
1570    The change controller is: "IETF (iesg@ietf.org) - Internet Engineering Task Force".
1571  </t>
1572<!--(END)-->
1573</section>
1574</section>
1575
1576<section title="Security Considerations" anchor="security.considerations">
1577<t>
1578   This section is meant to inform application developers, information
1579   providers, and users of the security limitations in HTTP/1.1 as
1580   described by this document. The discussion does not include
1581   definitive solutions to the problems revealed, though it does make
1582   some suggestions for reducing security risks.
1583</t>
1584
1585<section title="Privacy Issues Connected to Accept Headers" anchor="privacy.issues.connected.to.accept.headers">
1586<t>
1587   Accept request-headers can reveal information about the user to all
1588   servers which are accessed. The Accept-Language header in particular
1589   can reveal information the user would consider to be of a private
1590   nature, because the understanding of particular languages is often
1591   strongly correlated to the membership of a particular ethnic group.
1592   User agents which offer the option to configure the contents of an
1593   Accept-Language header to be sent in every request are strongly
1594   encouraged to let the configuration process include a message which
1595   makes the user aware of the loss of privacy involved.
1596</t>
1597<t>
1598   An approach that limits the loss of privacy would be for a user agent
1599   to omit the sending of Accept-Language headers by default, and to ask
1600   the user whether or not to start sending Accept-Language headers to a
1601   server if it detects, by looking for any Vary response-header fields
1602   generated by the server, that such sending could improve the quality
1603   of service.
1604</t>
1605<t>
1606   Elaborate user-customized accept header fields sent in every request,
1607   in particular if these include quality values, can be used by servers
1608   as relatively reliable and long-lived user identifiers. Such user
1609   identifiers would allow content providers to do click-trail tracking,
1610   and would allow collaborating content providers to match cross-server
1611   click-trails or form submissions of individual users. Note that for
1612   many users not behind a proxy, the network address of the host
1613   running the user agent will also serve as a long-lived user
1614   identifier. In environments where proxies are used to enhance
1615   privacy, user agents ought to be conservative in offering accept
1616   header configuration options to end users. As an extreme privacy
1617   measure, proxies could filter the accept headers in relayed requests.
1618   General purpose user agents which provide a high degree of header
1619   configurability &SHOULD; warn users about the loss of privacy which can
1620   be involved.
1621</t>
1622</section>
1623
1624<section title="Content-Disposition Issues" anchor="content-disposition.issues">
1625<t>
1626   <xref target="RFC1806"/>, from which the often implemented Content-Disposition
1627   (see <xref target="content-disposition"/>) header in HTTP is derived, has a number of very
1628   serious security considerations. Content-Disposition is not part of
1629   the HTTP standard, but since it is widely implemented, we are
1630   documenting its use and risks for implementors. See <xref target="RFC2183"/>
1631   (which updates <xref target="RFC1806"/>) for details.
1632</t>
1633</section>
1634
1635</section>
1636
1637<section title="Acknowledgments" anchor="ack">
1638</section>
1639</middle>
1640<back>
1641
1642<references title="Normative References">
1643
1644<reference anchor="ISO-8859-1">
1645  <front>
1646    <title>
1647     Information technology -- 8-bit single-byte coded graphic character sets -- Part 1: Latin alphabet No. 1
1648    </title>
1649    <author>
1650      <organization>International Organization for Standardization</organization>
1651    </author>
1652    <date year="1998"/>
1653  </front>
1654  <seriesInfo name="ISO/IEC" value="8859-1:1998"/>
1655</reference>
1656
1657<reference anchor="Part1">
1658  <front>
1659    <title abbrev="HTTP/1.1">HTTP/1.1, part 1: URIs, Connections, and Message Parsing</title>
1660    <author initials="R." surname="Fielding" fullname="Roy T. Fielding" role="editor">
1661      <organization abbrev="Day Software">Day Software</organization>
1662      <address><email>fielding@gbiv.com</email></address>
1663    </author>
1664    <author initials="J." surname="Gettys" fullname="Jim Gettys">
1665      <organization>One Laptop per Child</organization>
1666      <address><email>jg@laptop.org</email></address>
1667    </author>
1668    <author initials="J." surname="Mogul" fullname="Jeffrey C. Mogul">
1669      <organization abbrev="HP">Hewlett-Packard Company</organization>
1670      <address><email>JeffMogul@acm.org</email></address>
1671    </author>
1672    <author initials="H." surname="Frystyk" fullname="Henrik Frystyk Nielsen">
1673      <organization abbrev="Microsoft">Microsoft Corporation</organization>
1674      <address><email>henrikn@microsoft.com</email></address>
1675    </author>
1676    <author initials="L." surname="Masinter" fullname="Larry Masinter">
1677      <organization abbrev="Adobe Systems">Adobe Systems, Incorporated</organization>
1678      <address><email>LMM@acm.org</email></address>
1679    </author>
1680    <author initials="P." surname="Leach" fullname="Paul J. Leach">
1681      <organization abbrev="Microsoft">Microsoft Corporation</organization>
1682      <address><email>paulle@microsoft.com</email></address>
1683    </author>
1684    <author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
1685      <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
1686      <address><email>timbl@w3.org</email></address>
1687    </author>
1688    <author initials="Y." surname="Lafon" fullname="Yves Lafon" role="editor">
1689      <organization abbrev="W3C">World Wide Web Consortium</organization>
1690      <address><email>ylafon@w3.org</email></address>
1691    </author>
1692    <author initials="J. F." surname="Reschke" fullname="Julian F. Reschke" role="editor">
1693      <organization abbrev="greenbytes">greenbytes GmbH</organization>
1694      <address><email>julian.reschke@greenbytes.de</email></address>
1695    </author>
1696    <date month="&ID-MONTH;" year="&ID-YEAR;"/>
1697  </front>
1698  <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-p1-messaging-&ID-VERSION;"/>
1699  <x:source href="p1-messaging.xml" basename="p1-messaging"/>
1700</reference>
1701
1702<reference anchor="Part2">
1703  <front>
1704    <title abbrev="HTTP/1.1">HTTP/1.1, part 2: Message Semantics</title>
1705    <author initials="R." surname="Fielding" fullname="Roy T. Fielding" role="editor">
1706      <organization abbrev="Day Software">Day Software</organization>
1707      <address><email>fielding@gbiv.com</email></address>
1708    </author>
1709    <author initials="J." surname="Gettys" fullname="Jim Gettys">
1710      <organization>One Laptop per Child</organization>
1711      <address><email>jg@laptop.org</email></address>
1712    </author>
1713    <author initials="J." surname="Mogul" fullname="Jeffrey C. Mogul">
1714      <organization abbrev="HP">Hewlett-Packard Company</organization>
1715      <address><email>JeffMogul@acm.org</email></address>
1716    </author>
1717    <author initials="H." surname="Frystyk" fullname="Henrik Frystyk Nielsen">
1718      <organization abbrev="Microsoft">Microsoft Corporation</organization>
1719      <address><email>henrikn@microsoft.com</email></address>
1720    </author>
1721    <author initials="L." surname="Masinter" fullname="Larry Masinter">
1722      <organization abbrev="Adobe Systems">Adobe Systems, Incorporated</organization>
1723      <address><email>LMM@acm.org</email></address>
1724    </author>
1725    <author initials="P." surname="Leach" fullname="Paul J. Leach">
1726      <organization abbrev="Microsoft">Microsoft Corporation</organization>
1727      <address><email>paulle@microsoft.com</email></address>
1728    </author>
1729    <author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
1730      <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
1731      <address><email>timbl@w3.org</email></address>
1732    </author>
1733    <author initials="Y." surname="Lafon" fullname="Yves Lafon" role="editor">
1734      <organization abbrev="W3C">World Wide Web Consortium</organization>
1735      <address><email>ylafon@w3.org</email></address>
1736    </author>
1737    <author initials="J. F." surname="Reschke" fullname="Julian F. Reschke" role="editor">
1738      <organization abbrev="greenbytes">greenbytes GmbH</organization>
1739      <address><email>julian.reschke@greenbytes.de</email></address>
1740    </author>
1741    <date month="&ID-MONTH;" year="&ID-YEAR;"/>
1742  </front>
1743  <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-p2-semantics-&ID-VERSION;"/>
1744  <x:source href="p2-semantics.xml" basename="p2-semantics"/>
1745</reference>
1746
1747<reference anchor="Part4">
1748  <front>
1749    <title abbrev="HTTP/1.1">HTTP/1.1, part 4: Conditional Requests</title>
1750    <author initials="R." surname="Fielding" fullname="Roy T. Fielding" role="editor">
1751      <organization abbrev="Day Software">Day Software</organization>
1752      <address><email>fielding@gbiv.com</email></address>
1753    </author>
1754    <author initials="J." surname="Gettys" fullname="Jim Gettys">
1755      <organization>One Laptop per Child</organization>
1756      <address><email>jg@laptop.org</email></address>
1757    </author>
1758    <author initials="J." surname="Mogul" fullname="Jeffrey C. Mogul">
1759      <organization abbrev="HP">Hewlett-Packard Company</organization>
1760      <address><email>JeffMogul@acm.org</email></address>
1761    </author>
1762    <author initials="H." surname="Frystyk" fullname="Henrik Frystyk Nielsen">
1763      <organization abbrev="Microsoft">Microsoft Corporation</organization>
1764      <address><email>henrikn@microsoft.com</email></address>
1765    </author>
1766    <author initials="L." surname="Masinter" fullname="Larry Masinter">
1767      <organization abbrev="Adobe Systems">Adobe Systems, Incorporated</organization>
1768      <address><email>LMM@acm.org</email></address>
1769    </author>
1770    <author initials="P." surname="Leach" fullname="Paul J. Leach">
1771      <organization abbrev="Microsoft">Microsoft Corporation</organization>
1772      <address><email>paulle@microsoft.com</email></address>
1773    </author>
1774    <author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
1775      <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
1776      <address><email>timbl@w3.org</email></address>
1777    </author>
1778    <author initials="Y." surname="Lafon" fullname="Yves Lafon" role="editor">
1779      <organization abbrev="W3C">World Wide Web Consortium</organization>
1780      <address><email>ylafon@w3.org</email></address>
1781    </author>
1782    <author initials="J. F." surname="Reschke" fullname="Julian F. Reschke" role="editor">
1783      <organization abbrev="greenbytes">greenbytes GmbH</organization>
1784      <address><email>julian.reschke@greenbytes.de</email></address>
1785    </author>
1786    <date month="&ID-MONTH;" year="&ID-YEAR;"/>
1787  </front>
1788  <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-p4-conditional-&ID-VERSION;"/>
1789  <x:source href="p4-conditional.xml" basename="p4-conditional"/>
1790</reference>
1791
1792<reference anchor="Part5">
1793  <front>
1794    <title abbrev="HTTP/1.1">HTTP/1.1, part 5: Range Requests and Partial Responses</title>
1795    <author initials="R." surname="Fielding" fullname="Roy T. Fielding" role="editor">
1796      <organization abbrev="Day Software">Day Software</organization>
1797      <address><email>fielding@gbiv.com</email></address>
1798    </author>
1799    <author initials="J." surname="Gettys" fullname="Jim Gettys">
1800      <organization>One Laptop per Child</organization>
1801      <address><email>jg@laptop.org</email></address>
1802    </author>
1803    <author initials="J." surname="Mogul" fullname="Jeffrey C. Mogul">
1804      <organization abbrev="HP">Hewlett-Packard Company</organization>
1805      <address><email>JeffMogul@acm.org</email></address>
1806    </author>
1807    <author initials="H." surname="Frystyk" fullname="Henrik Frystyk Nielsen">
1808      <organization abbrev="Microsoft">Microsoft Corporation</organization>
1809      <address><email>henrikn@microsoft.com</email></address>
1810    </author>
1811    <author initials="L." surname="Masinter" fullname="Larry Masinter">
1812      <organization abbrev="Adobe Systems">Adobe Systems, Incorporated</organization>
1813      <address><email>LMM@acm.org</email></address>
1814    </author>
1815    <author initials="P." surname="Leach" fullname="Paul J. Leach">
1816      <organization abbrev="Microsoft">Microsoft Corporation</organization>
1817      <address><email>paulle@microsoft.com</email></address>
1818    </author>
1819    <author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
1820      <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
1821      <address><email>timbl@w3.org</email></address>
1822    </author>
1823    <author initials="Y." surname="Lafon" fullname="Yves Lafon" role="editor">
1824      <organization abbrev="W3C">World Wide Web Consortium</organization>
1825      <address><email>ylafon@w3.org</email></address>
1826    </author>
1827    <author initials="J. F." surname="Reschke" fullname="Julian F. Reschke" role="editor">
1828      <organization abbrev="greenbytes">greenbytes GmbH</organization>
1829      <address><email>julian.reschke@greenbytes.de</email></address>
1830    </author>
1831    <date month="&ID-MONTH;" year="&ID-YEAR;"/>
1832  </front>
1833  <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-p5-range-&ID-VERSION;"/>
1834  <x:source href="p5-range.xml" basename="p5-range"/>
1835</reference>
1836
1837<reference anchor="Part6">
1838  <front>
1839    <title abbrev="HTTP/1.1">HTTP/1.1, part 6: Caching</title>
1840    <author initials="R." surname="Fielding" fullname="Roy T. Fielding" role="editor">
1841      <organization abbrev="Day Software">Day Software</organization>
1842      <address><email>fielding@gbiv.com</email></address>
1843    </author>
1844    <author initials="J." surname="Gettys" fullname="Jim Gettys">
1845      <organization>One Laptop per Child</organization>
1846      <address><email>jg@laptop.org</email></address>
1847    </author>
1848    <author initials="J." surname="Mogul" fullname="Jeffrey C. Mogul">
1849      <organization abbrev="HP">Hewlett-Packard Company</organization>
1850      <address><email>JeffMogul@acm.org</email></address>
1851    </author>
1852    <author initials="H." surname="Frystyk" fullname="Henrik Frystyk Nielsen">
1853      <organization abbrev="Microsoft">Microsoft Corporation</organization>
1854      <address><email>henrikn@microsoft.com</email></address>
1855    </author>
1856    <author initials="L." surname="Masinter" fullname="Larry Masinter">
1857      <organization abbrev="Adobe Systems">Adobe Systems, Incorporated</organization>
1858      <address><email>LMM@acm.org</email></address>
1859    </author>
1860    <author initials="P." surname="Leach" fullname="Paul J. Leach">
1861      <organization abbrev="Microsoft">Microsoft Corporation</organization>
1862      <address><email>paulle@microsoft.com</email></address>
1863    </author>
1864    <author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
1865      <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
1866      <address><email>timbl@w3.org</email></address>
1867    </author>
1868    <author initials="Y." surname="Lafon" fullname="Yves Lafon" role="editor">
1869      <organization abbrev="W3C">World Wide Web Consortium</organization>
1870      <address><email>ylafon@w3.org</email></address>
1871    </author>
1872    <author initials="J. F." surname="Reschke" fullname="Julian F. Reschke" role="editor">
1873      <organization abbrev="greenbytes">greenbytes GmbH</organization>
1874      <address><email>julian.reschke@greenbytes.de</email></address>
1875    </author>
1876    <date month="&ID-MONTH;" year="&ID-YEAR;"/>
1877  </front>
1878  <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-p6-cache-&ID-VERSION;"/>
1879  <x:source href="p6-cache.xml" basename="p6-cache"/>
1880</reference>
1881
1882<reference anchor="RFC1766">
1883  <front>
1884    <title abbrev="Language Tag">Tags for the Identification of Languages</title>
1885    <author initials="H." surname="Alvestrand" fullname="Harald Tveit Alvestrand">
1886      <organization>UNINETT</organization>
1887      <address><email>Harald.T.Alvestrand@uninett.no</email></address>
1888    </author>
1889    <date month="March" year="1995"/>
1890  </front>
1891  <seriesInfo name="RFC" value="1766"/>
1892</reference>
1893
1894<reference anchor="RFC1864">
1895  <front>
1896    <title abbrev="Content-MD5 Header Field">The Content-MD5 Header Field</title>
1897    <author initials="J." surname="Myers" fullname="John G. Myers">
1898      <organization>Carnegie Mellon University</organization>
1899      <address><email>jgm+@cmu.edu</email></address>
1900    </author>
1901    <author initials="M." surname="Rose" fullname="Marshall T. Rose">
1902      <organization>Dover Beach Consulting, Inc.</organization>
1903      <address><email>mrose@dbc.mtview.ca.us</email></address>
1904    </author>
1905    <date month="October" year="1995"/>
1906  </front>
1907  <seriesInfo name="RFC" value="1864"/>
1908</reference>
1909
1910<reference anchor="RFC1950">
1911  <front>
1912    <title>ZLIB Compressed Data Format Specification version 3.3</title>
1913    <author initials="L.P." surname="Deutsch" fullname="L. Peter Deutsch">
1914      <organization>Aladdin Enterprises</organization>
1915      <address><email>ghost@aladdin.com</email></address>
1916    </author>
1917    <author initials="J-L." surname="Gailly" fullname="Jean-Loup Gailly">
1918      <organization/>
1919    </author>
1920    <date month="May" year="1996"/>
1921  </front>
1922  <seriesInfo name="RFC" value="1950"/>
1923  <annotation>
1924    RFC1950 is an Informational RFC, thus it may be less stable than
1925    this specification. On the other hand, this downward reference was
1926    present since <xref target="RFC2068"/> (published in 1997), therefore it is unlikely
1927    to cause problems in practice.
1928  </annotation>
1929</reference>
1930
1931<reference anchor="RFC1951">
1932  <front>
1933    <title>DEFLATE Compressed Data Format Specification version 1.3</title>
1934    <author initials="P." surname="Deutsch" fullname="L. Peter Deutsch">
1935      <organization>Aladdin Enterprises</organization>
1936      <address><email>ghost@aladdin.com</email></address>
1937    </author>
1938    <date month="May" year="1996"/>
1939  </front>
1940  <seriesInfo name="RFC" value="1951"/>
1941  <annotation>
1942    RFC1951 is an Informational RFC, thus it may be less stable than
1943    this specification. On the other hand, this downward reference was
1944    present since <xref target="RFC2068"/> (published in 1997), therefore it is unlikely
1945    to cause problems in practice.
1946  </annotation>
1947</reference>
1948
1949<reference anchor="RFC1952">
1950  <front>
1951    <title>GZIP file format specification version 4.3</title>
1952    <author initials="P." surname="Deutsch" fullname="L. Peter Deutsch">
1953      <organization>Aladdin Enterprises</organization>
1954      <address><email>ghost@aladdin.com</email></address>
1955    </author>
1956    <author initials="J-L." surname="Gailly" fullname="Jean-Loup Gailly">
1957      <organization/>
1958      <address><email>gzip@prep.ai.mit.edu</email></address>
1959    </author>
1960    <author initials="M." surname="Adler" fullname="Mark Adler">
1961      <organization/>
1962      <address><email>madler@alumni.caltech.edu</email></address>
1963    </author>
1964    <author initials="L.P." surname="Deutsch" fullname="L. Peter Deutsch">
1965      <organization/>
1966      <address><email>ghost@aladdin.com</email></address>
1967    </author>
1968    <author initials="G." surname="Randers-Pehrson" fullname="Glenn Randers-Pehrson">
1969      <organization/>
1970      <address><email>randeg@alumni.rpi.edu</email></address>
1971    </author>
1972    <date month="May" year="1996"/>
1973  </front>
1974  <seriesInfo name="RFC" value="1952"/>
1975  <annotation>
1976    RFC1952 is an Informational RFC, thus it may be less stable than
1977    this specification. On the other hand, this downward reference was
1978    present since <xref target="RFC2068"/> (published in 1997), therefore it is unlikely
1979    to cause problems in practice.
1980  </annotation>
1981</reference>
1982
1983<reference anchor="RFC2045">
1984  <front>
1985    <title abbrev="Internet Message Bodies">Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies</title>
1986    <author initials="N." surname="Freed" fullname="Ned Freed">
1987      <organization>Innosoft International, Inc.</organization>
1988      <address><email>ned@innosoft.com</email></address>
1989    </author>
1990    <author initials="N.S." surname="Borenstein" fullname="Nathaniel S. Borenstein">
1991      <organization>First Virtual Holdings</organization>
1992      <address><email>nsb@nsb.fv.com</email></address>
1993    </author>
1994    <date month="November" year="1996"/>
1995  </front>
1996  <seriesInfo name="RFC" value="2045"/>
1997</reference>
1998
1999<reference anchor="RFC2046">
2000  <front>
2001    <title abbrev="Media Types">Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types</title>
2002    <author initials="N." surname="Freed" fullname="Ned Freed">
2003      <organization>Innosoft International, Inc.</organization>
2004      <address><email>ned@innosoft.com</email></address>
2005    </author>
2006    <author initials="N." surname="Borenstein" fullname="Nathaniel S. Borenstein">
2007      <organization>First Virtual Holdings</organization>
2008      <address><email>nsb@nsb.fv.com</email></address>
2009    </author>
2010    <date month="November" year="1996"/>
2011  </front>
2012  <seriesInfo name="RFC" value="2046"/>
2013</reference>
2014
2015<reference anchor="RFC2119">
2016  <front>
2017    <title>Key words for use in RFCs to Indicate Requirement Levels</title>
2018    <author initials="S." surname="Bradner" fullname="Scott Bradner">
2019      <organization>Harvard University</organization>
2020      <address><email>sob@harvard.edu</email></address>
2021    </author>
2022    <date month="March" year="1997"/>
2023  </front>
2024  <seriesInfo name="BCP" value="14"/>
2025  <seriesInfo name="RFC" value="2119"/>
2026</reference>
2027
2028</references>
2029
2030<references title="Informative References">
2031
2032<reference anchor="RFC1806">
2033  <front>
2034    <title abbrev="Content-Disposition">Communicating Presentation Information in Internet Messages: The Content-Disposition Header</title>
2035    <author initials="R." surname="Troost" fullname="Rens Troost">
2036      <organization>New Century Systems</organization>
2037      <address><email>rens@century.com</email></address>
2038    </author>
2039    <author initials="S." surname="Dorner" fullname="Steve Dorner">
2040      <organization>QUALCOMM Incorporated</organization>
2041      <address><email>sdorner@qualcomm.com</email></address>
2042    </author>
2043    <date month="June" year="1995"/>
2044  </front>
2045  <seriesInfo name="RFC" value="1806"/>
2046</reference>
2047
2048<reference anchor="RFC1945">
2049  <front>
2050    <title abbrev="HTTP/1.0">Hypertext Transfer Protocol -- HTTP/1.0</title>
2051    <author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
2052      <organization>MIT, Laboratory for Computer Science</organization>
2053      <address><email>timbl@w3.org</email></address>
2054    </author>
2055    <author initials="R.T." surname="Fielding" fullname="Roy T. Fielding">
2056      <organization>University of California, Irvine, Department of Information and Computer Science</organization>
2057      <address><email>fielding@ics.uci.edu</email></address>
2058    </author>
2059    <author initials="H.F." surname="Nielsen" fullname="Henrik Frystyk Nielsen">
2060      <organization>W3 Consortium, MIT Laboratory for Computer Science</organization>
2061      <address><email>frystyk@w3.org</email></address>
2062    </author>
2063    <date month="May" year="1996"/>
2064  </front>
2065  <seriesInfo name="RFC" value="1945"/>
2066</reference>
2067
2068<reference anchor="RFC2049">
2069  <front>
2070    <title abbrev="MIME Conformance">Multipurpose Internet Mail Extensions (MIME) Part Five: Conformance Criteria and Examples</title>
2071    <author initials="N." surname="Freed" fullname="Ned Freed">
2072      <organization>Innosoft International, Inc.</organization>
2073      <address><email>ned@innosoft.com</email></address>
2074    </author>
2075    <author initials="N.S." surname="Borenstein" fullname="Nathaniel S. Borenstein">
2076      <organization>First Virtual Holdings</organization>
2077      <address><email>nsb@nsb.fv.com</email></address>
2078    </author>
2079    <date month="November" year="1996"/>
2080  </front>
2081  <seriesInfo name="RFC" value="2049"/>
2082</reference>
2083
2084<reference anchor="RFC2068">
2085  <front>
2086    <title abbrev="HTTP/1.1">Hypertext Transfer Protocol -- HTTP/1.1</title>
2087    <author initials="R." surname="Fielding" fullname="Roy T. Fielding">
2088      <organization>University of California, Irvine, Department of Information and Computer Science</organization>
2089      <address><email>fielding@ics.uci.edu</email></address>
2090    </author>
2091    <author initials="J." surname="Gettys" fullname="Jim Gettys">
2092      <organization>MIT Laboratory for Computer Science</organization>
2093      <address><email>jg@w3.org</email></address>
2094    </author>
2095    <author initials="J." surname="Mogul" fullname="Jeffrey C. Mogul">
2096      <organization>Digital Equipment Corporation, Western Research Laboratory</organization>
2097      <address><email>mogul@wrl.dec.com</email></address>
2098    </author>
2099    <author initials="H." surname="Nielsen" fullname="Henrik Frystyk Nielsen">
2100      <organization>MIT Laboratory for Computer Science</organization>
2101      <address><email>frystyk@w3.org</email></address>
2102    </author>
2103    <author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
2104      <organization>MIT Laboratory for Computer Science</organization>
2105      <address><email>timbl@w3.org</email></address>
2106    </author>
2107    <date month="January" year="1997"/>
2108  </front>
2109  <seriesInfo name="RFC" value="2068"/>
2110</reference>
2111
2112<reference anchor="RFC2076">
2113  <front>
2114    <title abbrev="Internet Message Headers">Common Internet Message Headers</title>
2115    <author initials="J." surname="Palme" fullname="Jacob Palme">
2116      <organization>Stockholm University/KTH</organization>
2117      <address><email>jpalme@dsv.su.se</email></address>
2118    </author>
2119    <date month="February" year="1997"/>
2120  </front>
2121  <seriesInfo name="RFC" value="2076"/>
2122</reference>
2123
2124<reference anchor="RFC2183">
2125  <front>
2126    <title abbrev="Content-Disposition">Communicating Presentation Information in Internet Messages: The Content-Disposition Header Field</title>
2127    <author initials="R." surname="Troost" fullname="Rens Troost">
2128      <organization>New Century Systems</organization>
2129      <address><email>rens@century.com</email></address>
2130    </author>
2131    <author initials="S." surname="Dorner" fullname="Steve Dorner">
2132      <organization>QUALCOMM Incorporated</organization>
2133      <address><email>sdorner@qualcomm.com</email></address>
2134    </author>
2135    <author initials="K." surname="Moore" fullname="Keith Moore">
2136      <organization>Department of Computer Science</organization>
2137      <address><email>moore@cs.utk.edu</email></address>
2138    </author>
2139    <date month="August" year="1997"/>
2140  </front>
2141  <seriesInfo name="RFC" value="2183"/>
2142</reference>
2143
2144<reference anchor="RFC2277">
2145  <front>
2146    <title abbrev="Charset Policy">IETF Policy on Character Sets and Languages</title>
2147    <author initials="H.T." surname="Alvestrand" fullname="Harald Tveit Alvestrand">
2148      <organization>UNINETT</organization>
2149      <address><email>Harald.T.Alvestrand@uninett.no</email></address>
2150    </author>
2151    <date month="January" year="1998"/>
2152  </front>
2153  <seriesInfo name="BCP" value="18"/>
2154  <seriesInfo name="RFC" value="2277"/>
2155</reference>
2156
2157<reference anchor="RFC2388">
2158  <front>
2159    <title abbrev="multipart/form-data">Returning Values from Forms:  multipart/form-data</title>
2160    <author initials="L." surname="Masinter" fullname="Larry Masinter">
2161      <organization>Xerox Palo Alto Research Center</organization>
2162      <address><email>masinter@parc.xerox.com</email></address>
2163    </author>
2164    <date year="1998" month="August"/>
2165  </front>
2166  <seriesInfo name="RFC" value="2388"/>
2167</reference>
2168
2169<reference anchor="RFC2557">
2170  <front>
2171    <title abbrev="MIME Encapsulation of Aggregate Documents">MIME Encapsulation of Aggregate Documents, such as HTML (MHTML)</title>
2172    <author initials="F." surname="Palme" fullname="Jacob Palme">
2173      <organization>Stockholm University and KTH</organization>
2174      <address><email>jpalme@dsv.su.se</email></address>
2175    </author>
2176    <author initials="A." surname="Hopmann" fullname="Alex Hopmann">
2177      <organization>Microsoft Corporation</organization>
2178      <address><email>alexhop@microsoft.com</email></address>
2179    </author>
2180    <author initials="N." surname="Shelness" fullname="Nick Shelness">
2181      <organization>Lotus Development Corporation</organization>
2182      <address><email>Shelness@lotus.com</email></address>
2183    </author>
2184    <author initials="E." surname="Stefferud" fullname="Einar Stefferud">
2185      <organization/>
2186      <address><email>stef@nma.com</email></address>
2187    </author>
2188    <date year="1999" month="March"/>
2189  </front>
2190  <seriesInfo name="RFC" value="2557"/>
2191</reference>
2192
2193<reference anchor="RFC2616">
2194  <front>
2195    <title>Hypertext Transfer Protocol -- HTTP/1.1</title>
2196    <author initials="R." surname="Fielding" fullname="R. Fielding">
2197      <organization>University of California, Irvine</organization>
2198      <address><email>fielding@ics.uci.edu</email></address>
2199    </author>
2200    <author initials="J." surname="Gettys" fullname="J. Gettys">
2201      <organization>W3C</organization>
2202      <address><email>jg@w3.org</email></address>
2203    </author>
2204    <author initials="J." surname="Mogul" fullname="J. Mogul">
2205      <organization>Compaq Computer Corporation</organization>
2206      <address><email>mogul@wrl.dec.com</email></address>
2207    </author>
2208    <author initials="H." surname="Frystyk" fullname="H. Frystyk">
2209      <organization>MIT Laboratory for Computer Science</organization>
2210      <address><email>frystyk@w3.org</email></address>
2211    </author>
2212    <author initials="L." surname="Masinter" fullname="L. Masinter">
2213      <organization>Xerox Corporation</organization>
2214      <address><email>masinter@parc.xerox.com</email></address>
2215    </author>
2216    <author initials="P." surname="Leach" fullname="P. Leach">
2217      <organization>Microsoft Corporation</organization>
2218      <address><email>paulle@microsoft.com</email></address>
2219    </author>
2220    <author initials="T." surname="Berners-Lee" fullname="T. Berners-Lee">
2221      <organization>W3C</organization>
2222      <address><email>timbl@w3.org</email></address>
2223    </author>
2224    <date month="June" year="1999"/>
2225  </front>
2226  <seriesInfo name="RFC" value="2616"/>
2227</reference>
2228
2229<reference anchor="RFC2822">
2230  <front>
2231    <title>Internet Message Format</title>
2232    <author initials="P." surname="Resnick" fullname="P. Resnick">
2233      <organization>QUALCOMM Incorporated</organization>
2234    </author>
2235    <date year="2001" month="April"/>
2236  </front>
2237  <seriesInfo name="RFC" value="2822"/>
2238</reference>
2239
2240<reference anchor="RFC3629">
2241  <front>
2242    <title>UTF-8, a transformation format of ISO 10646</title>
2243    <author initials="F." surname="Yergeau" fullname="F. Yergeau">
2244      <organization>Alis Technologies</organization>
2245      <address><email>fyergeau@alis.com</email></address>
2246    </author>
2247    <date month="November" year="2003"/>
2248  </front>
2249  <seriesInfo name="RFC" value="3629"/>
2250  <seriesInfo name="STD" value="63"/>
2251</reference>
2252
2253<reference anchor='RFC3864'>
2254  <front>
2255    <title>Registration Procedures for Message Header Fields</title>
2256    <author initials='G.' surname='Klyne' fullname='G. Klyne'>
2257      <organization>Nine by Nine</organization>
2258      <address><email>GK-IETF@ninebynine.org</email></address>
2259    </author>
2260    <author initials='M.' surname='Nottingham' fullname='M. Nottingham'>
2261      <organization>BEA Systems</organization>
2262      <address><email>mnot@pobox.com</email></address>
2263    </author>
2264    <author initials='J.' surname='Mogul' fullname='J. Mogul'>
2265      <organization>HP Labs</organization>
2266      <address><email>JeffMogul@acm.org</email></address>
2267    </author>
2268    <date year='2004' month='September' />
2269  </front>
2270  <seriesInfo name='BCP' value='90' />
2271  <seriesInfo name='RFC' value='3864' />
2272</reference>
2273
2274<reference anchor="RFC4288">
2275  <front>
2276    <title>Media Type Specifications and Registration Procedures</title>
2277    <author initials="N." surname="Freed" fullname="N. Freed">
2278      <organization>Sun Microsystems</organization>
2279      <address>
2280        <email>ned.freed@mrochek.com</email>
2281      </address>
2282    </author>
2283    <author initials="J." surname="Klensin" fullname="J. Klensin">
2284      <organization/>
2285      <address>
2286        <email>klensin+ietf@jck.com</email>
2287      </address>
2288    </author>
2289    <date year="2005" month="December"/>
2290  </front>
2291  <seriesInfo name="BCP" value="13"/>
2292  <seriesInfo name="RFC" value="4288"/>
2293</reference>
2294
2295</references>
2296
2297<section title="Differences Between HTTP Entities and RFC 2045 Entities" anchor="differences.between.http.entities.and.rfc.2045.entities">
2298<t>
2299   HTTP/1.1 uses many of the constructs defined for Internet Mail (<xref target="RFC2822"/>) and the Multipurpose Internet Mail Extensions (MIME <xref target="RFC2045"/>) to
2300   allow entities to be transmitted in an open variety of
2301   representations and with extensible mechanisms. However, RFC 2045
2302   discusses mail, and HTTP has a few features that are different from
2303   those described in RFC 2045. These differences were carefully chosen
2304   to optimize performance over binary connections, to allow greater
2305   freedom in the use of new media types, to make date comparisons
2306   easier, and to acknowledge the practice of some early HTTP servers
2307   and clients.
2308</t>
2309<t>
2310   This appendix describes specific areas where HTTP differs from RFC
2311   2045. Proxies and gateways to strict MIME environments &SHOULD; be
2312   aware of these differences and provide the appropriate conversions
2313   where necessary. Proxies and gateways from MIME environments to HTTP
2314   also need to be aware of the differences because some conversions
2315   might be required.
2316</t>
2317
2318<section title="MIME-Version" anchor="mime-version">
2319  <x:anchor-alias value="MIME-Version"/>
2320<t>
2321   HTTP is not a MIME-compliant protocol. However, HTTP/1.1 messages &MAY;
2322   include a single MIME-Version general-header field to indicate what
2323   version of the MIME protocol was used to construct the message. Use
2324   of the MIME-Version header field indicates that the message is in
2325   full compliance with the MIME protocol (as defined in <xref target="RFC2045"/>).
2326   Proxies/gateways are responsible for ensuring full compliance (where
2327   possible) when exporting HTTP messages to strict MIME environments.
2328</t>
2329<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="MIME-Version"/>
2330  <x:ref>MIME-Version</x:ref>   = "MIME-Version" ":" 1*<x:ref>DIGIT</x:ref> "." 1*<x:ref>DIGIT</x:ref>
2331</artwork></figure>
2332<t>
2333   MIME version "1.0" is the default for use in HTTP/1.1. However,
2334   HTTP/1.1 message parsing and semantics are defined by this document
2335   and not the MIME specification.
2336</t>
2337</section>
2338
2339<section title="Conversion to Canonical Form" anchor="conversion.to.canonical.form">
2340<t>
2341   <xref target="RFC2045"/> requires that an Internet mail entity be converted to
2342   canonical form prior to being transferred, as described in <xref target="RFC2049" x:fmt="of" x:sec="4"/>.
2343   <xref target="canonicalization.and.text.defaults"/> of this document describes the forms
2344   allowed for subtypes of the "text" media type when transmitted over
2345   HTTP. <xref target="RFC2046"/> requires that content with a type of "text" represent
2346   line breaks as CRLF and forbids the use of CR or LF outside of line
2347   break sequences. HTTP allows CRLF, bare CR, and bare LF to indicate a
2348   line break within text content when a message is transmitted over
2349   HTTP.
2350</t>
2351<t>
2352   Where it is possible, a proxy or gateway from HTTP to a strict MIME
2353   environment &SHOULD; translate all line breaks within the text media
2354   types described in <xref target="canonicalization.and.text.defaults"/> of this document to the RFC 2049
2355   canonical form of CRLF. Note, however, that this might be complicated
2356   by the presence of a Content-Encoding and by the fact that HTTP
2357   allows the use of some character sets which do not use octets 13 and
2358   10 to represent CR and LF, as is the case for some multi-byte
2359   character sets.
2360</t>
2361<t>
2362   Implementors should note that conversion will break any cryptographic
2363   checksums applied to the original content unless the original content
2364   is already in canonical form. Therefore, the canonical form is
2365   recommended for any content that uses such checksums in HTTP.
2366</t>
2367</section>
2368
2369<section title="Introduction of Content-Encoding" anchor="introduction.of.content-encoding">
2370<t>
2371   RFC 2045 does not include any concept equivalent to HTTP/1.1's
2372   Content-Encoding header field. Since this acts as a modifier on the
2373   media type, proxies and gateways from HTTP to MIME-compliant
2374   protocols &MUST; either change the value of the Content-Type header
2375   field or decode the entity-body before forwarding the message. (Some
2376   experimental applications of Content-Type for Internet mail have used
2377   a media-type parameter of ";conversions=&lt;content-coding&gt;" to perform
2378   a function equivalent to Content-Encoding. However, this parameter is
2379   not part of RFC 2045).
2380</t>
2381</section>
2382
2383<section title="No Content-Transfer-Encoding" anchor="no.content-transfer-encoding">
2384<t>
2385   HTTP does not use the Content-Transfer-Encoding field of RFC
2386   2045. Proxies and gateways from MIME-compliant protocols to HTTP &MUST;
2387   remove any Content-Transfer-Encoding
2388   prior to delivering the response message to an HTTP client.
2389</t>
2390<t>
2391   Proxies and gateways from HTTP to MIME-compliant protocols are
2392   responsible for ensuring that the message is in the correct format
2393   and encoding for safe transport on that protocol, where "safe
2394   transport" is defined by the limitations of the protocol being used.
2395   Such a proxy or gateway &SHOULD; label the data with an appropriate
2396   Content-Transfer-Encoding if doing so will improve the likelihood of
2397   safe transport over the destination protocol.
2398</t>
2399</section>
2400
2401<section title="Introduction of Transfer-Encoding" anchor="introduction.of.transfer-encoding">
2402<t>
2403   HTTP/1.1 introduces the Transfer-Encoding header field (&header-transfer-encoding;).
2404   Proxies/gateways &MUST; remove any transfer-coding prior to
2405   forwarding a message via a MIME-compliant protocol.
2406</t>
2407</section>
2408
2409<section title="MHTML and Line Length Limitations" anchor="mhtml.line.length">
2410<t>
2411   HTTP implementations which share code with MHTML <xref target="RFC2557"/> implementations
2412   need to be aware of MIME line length limitations. Since HTTP does not
2413   have this limitation, HTTP does not fold long lines. MHTML messages
2414   being transported by HTTP follow all conventions of MHTML, including
2415   line length limitations and folding, canonicalization, etc., since
2416   HTTP transports all message-bodies as payload (see <xref target="multipart.types"/>) and
2417   does not interpret the content or any MIME header lines that might be
2418   contained therein.
2419</t>
2420</section>
2421</section>
2422
2423<section title="Additional Features" anchor="additional.features">
2424<t>
2425   <xref target="RFC1945"/> and <xref target="RFC2068"/> document protocol elements used by some
2426   existing HTTP implementations, but not consistently and correctly
2427   across most HTTP/1.1 applications. Implementors are advised to be
2428   aware of these features, but cannot rely upon their presence in, or
2429   interoperability with, other HTTP/1.1 applications. Some of these
2430   describe proposed experimental features, and some describe features
2431   that experimental deployment found lacking that are now addressed in
2432   the base HTTP/1.1 specification.
2433</t>
2434<t>
2435   A number of other headers, such as Content-Disposition and Title,
2436   from SMTP and MIME are also often implemented (see <xref target="RFC2076"/>).
2437</t>
2438
2439<section title="Content-Disposition" anchor="content-disposition">
2440<iref item="Headers" subitem="Content-Disposition" primary="true" x:for-anchor=""/>
2441<iref item="Content-Disposition header" primary="true" x:for-anchor=""/>
2442  <x:anchor-alias value="content-disposition"/>
2443  <x:anchor-alias value="disposition-type"/>
2444  <x:anchor-alias value="disposition-parm"/>
2445  <x:anchor-alias value="disp-extension-parm"/>
2446  <x:anchor-alias value="disp-extension-token"/>
2447  <x:anchor-alias value="filename-parm"/>
2448<t>
2449   The Content-Disposition response-header field has been proposed as a
2450   means for the origin server to suggest a default filename if the user
2451   requests that the content is saved to a file. This usage is derived
2452   from the definition of Content-Disposition in <xref target="RFC1806"/>.
2453</t>
2454<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="content-disposition"/><iref primary="true" item="Grammar" subitem="disposition-type"/><iref primary="true" item="Grammar" subitem="disposition-parm"/><iref primary="true" item="Grammar" subitem="filename-parm"/><iref primary="true" item="Grammar" subitem="disp-extension-token"/><iref primary="true" item="Grammar" subitem="disp-extension-parm"/>
2455  <x:ref>content-disposition</x:ref> = "Content-Disposition" ":"
2456                        <x:ref>disposition-type</x:ref> *( ";" <x:ref>disposition-parm</x:ref> )
2457  <x:ref>disposition-type</x:ref> = "attachment" | <x:ref>disp-extension-token</x:ref>
2458  <x:ref>disposition-parm</x:ref> = <x:ref>filename-parm</x:ref> | <x:ref>disp-extension-parm</x:ref>
2459  <x:ref>filename-parm</x:ref> = "filename" "=" <x:ref>quoted-string</x:ref>
2460  <x:ref>disp-extension-token</x:ref> = <x:ref>token</x:ref>
2461  <x:ref>disp-extension-parm</x:ref> = <x:ref>token</x:ref> "=" ( <x:ref>token</x:ref> | <x:ref>quoted-string</x:ref> )
2462</artwork></figure>
2463<t>
2464   An example is
2465</t>
2466<figure><artwork type="example">
2467     Content-Disposition: attachment; filename="fname.ext"
2468</artwork></figure>
2469<t>
2470   The receiving user agent &SHOULD-NOT;  respect any directory path
2471   information present in the filename-parm parameter, which is the only
2472   parameter believed to apply to HTTP implementations at this time. The
2473   filename &SHOULD; be treated as a terminal component only.
2474</t>
2475<t>
2476   If this header is used in a response with the application/octet-stream
2477   content-type, the implied suggestion is that the user agent
2478   should not display the response, but directly enter a `save response
2479   as...' dialog.
2480</t>
2481<t>
2482   See <xref target="content-disposition.issues"/> for Content-Disposition security issues.
2483</t>
2484</section>
2485</section>
2486
2487<section title="Compatibility with Previous Versions" anchor="compatibility">
2488<section title="Changes from RFC 2068" anchor="changes.from.rfc.2068">
2489<t>
2490   Transfer-coding and message lengths all interact in ways that
2491   required fixing exactly when chunked encoding is used (to allow for
2492   transfer encoding that may not be self delimiting); it was important
2493   to straighten out exactly how message lengths are computed.
2494   (<xref target="entity.length"/>, see also <xref target="Part1"/>,
2495   <xref target="Part5"/> and <xref target="Part6"/>).
2496</t>
2497<t>
2498   Charset wildcarding is introduced to avoid explosion of character set
2499   names in accept headers. (<xref target="header.accept-charset"/>)
2500</t>
2501<t>
2502   Content-Base was deleted from the specification: it was not
2503   implemented widely, and there is no simple, safe way to introduce it
2504   without a robust extension mechanism. In addition, it is used in a
2505   similar, but not identical fashion in MHTML <xref target="RFC2557"/>.
2506</t>
2507<t>
2508   A content-coding of "identity" was introduced, to solve problems
2509   discovered in caching. (<xref target="content.codings"/>)
2510</t>
2511<t>
2512   Quality Values of zero should indicate that "I don't want something"
2513   to allow clients to refuse a representation. (<xref target="quality.values"/>)
2514</t>
2515<t>
2516   The Alternates<iref item="Alternates header" primary="true"/><iref item="Headers" subitem="Alternate" primary="true"/>, Content-Version<iref item="Content-Version header" primary="true"/><iref item="Headers" subitem="Content-Version" primary="true"/>, Derived-From<iref item="Derived-From header" primary="true"/><iref item="Headers" subitem="Derived-From" primary="true"/>, Link<iref item="Link header" primary="true"/><iref item="Headers" subitem="Link" primary="true"/>, URI<iref item="URI header" primary="true"/><iref item="Headers" subitem="URI" primary="true"/>, Public<iref item="Public header" primary="true"/><iref item="Headers" subitem="Public" primary="true"/> and
2517   Content-Base<iref item="Content-Base header" primary="true"/><iref item="Headers" subitem="Content-Base" primary="true"/> header fields were defined in previous versions of this
2518   specification, but not commonly implemented. See <xref target="RFC2068"/>.
2519</t>
2520</section>
2521
2522<section title="Changes from RFC 2616" anchor="changes.from.rfc.2616">
2523<t>
2524  Clarify contexts that charset is used in.
2525  (<xref target="character.sets"/>)
2526</t>
2527<t>
2528  Remove reference to non-existant identity transfer-coding value tokens.
2529  (<xref target="no.content-transfer-encoding"/>)
2530</t>
2531</section>
2532
2533</section>
2534
2535<section title="Change Log (to be removed by RFC Editor before publication)" anchor="change.log">
2536
2537<section title="Since RFC2616">
2538<t>
2539  Extracted relevant partitions from <xref target="RFC2616"/>.
2540</t>
2541</section>
2542
2543<section title="Since draft-ietf-httpbis-p3-payload-00">
2544<t>
2545  Closed issues:
2546  <list style="symbols">
2547    <t>
2548      <eref target="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/8"/>:
2549      "Media Type Registrations"
2550      (<eref target="http://purl.org/NET/http-errata#media-reg"/>)
2551    </t>
2552    <t>
2553      <eref target="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/14"/>:
2554      "Clarification regarding quoting of charset values"
2555      (<eref target="http://purl.org/NET/http-errata#charactersets"/>)
2556    </t>
2557    <t>
2558      <eref target="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/16"/>:
2559      "Remove 'identity' token references"
2560      (<eref target="http://purl.org/NET/http-errata#identity"/>)
2561    </t>
2562    <t>
2563      <eref target="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/25"/>:
2564      "Accept-Encoding BNF"
2565    </t>
2566    <t>
2567      <eref target="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/35"/>:
2568      "Normative and Informative references"
2569    </t>
2570    <t>
2571      <eref target="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/46"/>:
2572      "RFC1700 references"
2573    </t>
2574    <t>
2575      <eref target="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/55"/>:
2576      "Updating to RFC4288"
2577    </t>
2578    <t>
2579      <eref target="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/65"/>:
2580      "Informative references"
2581    </t>
2582    <t>
2583      <eref target="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/66"/>:
2584      "ISO-8859-1 Reference"
2585    </t>
2586    <t>
2587      <eref target="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/68"/>:
2588      "Encoding References Normative"
2589    </t>
2590    <t>
2591      <eref target="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/86"/>:
2592      "Normative up-to-date references"
2593    </t>
2594  </list>
2595</t>
2596</section>
2597
2598<section title="Since draft-ietf-httpbis-p3-payload-01">
2599<t>
2600  Ongoing work on ABNF conversion (<eref target="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/36"/>):
2601  <list style="symbols">
2602    <t>
2603      Add explicit references to BNF syntax and rules imported from other parts of the specification.
2604    </t>
2605  </list>
2606</t>
2607</section>
2608
2609<section title="Since draft-ietf-httpbis-p3-payload-02" anchor="changes.since.02">
2610<t>
2611  Closed issues:
2612  <list style="symbols">
2613    <t>
2614      <eref target="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/67"/>:
2615      "Quoting Charsets"
2616    </t>
2617    <t>
2618      <eref target="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/105"/>:
2619      "Classification for Allow header"
2620    </t>
2621    <t>
2622      <eref target="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/115"/>:
2623      "missing default for qvalue in description of Accept-Encoding"
2624    </t>
2625  </list>
2626</t>
2627<t>
2628  Ongoing work on IANA Message Header Registration (<eref target="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/40"/>):
2629  <list style="symbols">
2630    <t>
2631      Reference RFC 3984, and update header registrations for headers defined
2632      in this document.
2633    </t>
2634  </list>
2635</t>
2636</section>
2637
2638</section>
2639
2640</back>
2641</rfc>
Note: See TracBrowser for help on using the repository browser.