source: draft-ietf-httpbis/latest/p1-messaging.xml @ 1368

Last change on this file since 1368 was 1368, checked in by julian.reschke@…, 8 years ago

bump up document dates; update to latest version of rfc2629.xslt.

  • Property svn:eol-style set to native
File size: 252.1 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 "latest">
15  <!ENTITY ID-MONTH "August">
16  <!ENTITY ID-YEAR "2011">
17  <!ENTITY mdash "&#8212;">
18  <!ENTITY caching-overview       "<xref target='Part6' x:rel='#caching.overview' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
19  <!ENTITY cache-incomplete       "<xref target='Part6' x:rel='#errors.or.incomplete.response.cache.behavior' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
20  <!ENTITY payload                "<xref target='Part3' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
21  <!ENTITY media-types            "<xref target='Part3' x:rel='#media.types' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
22  <!ENTITY content-codings        "<xref target='Part3' x:rel='#content.codings' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
23  <!ENTITY CONNECT                "<xref target='Part2' x:rel='#CONNECT' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
24  <!ENTITY content.negotiation    "<xref target='Part3' x:rel='#content.negotiation' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
25  <!ENTITY diff-mime              "<xref target='Part3' x:rel='#differences.between.http.and.mime' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
26  <!ENTITY representation         "<xref target='Part3' x:rel='#representation' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
27  <!ENTITY header-cache-control   "<xref target='Part6' x:rel='#header.cache-control' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
28  <!ENTITY header-expect          "<xref target='Part2' x:rel='#header.expect' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
29  <!ENTITY header-mime-version    "<xref target='Part3' x:rel='#mime-version' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
30  <!ENTITY header-pragma          "<xref target='Part6' x:rel='#header.pragma' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
31  <!ENTITY header-warning         "<xref target='Part6' x:rel='#header.warning' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
32  <!ENTITY idempotent-methods     "<xref target='Part2' x:rel='#idempotent.methods' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
33  <!ENTITY status-codes           "<xref target='Part2' x:rel='#status.codes' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
34  <!ENTITY status-100             "<xref target='Part2' x:rel='#status.100' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
35  <!ENTITY status-1xx             "<xref target='Part2' x:rel='#status.1xx' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
36  <!ENTITY status-203             "<xref target='Part2' x:rel='#status.203' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
37  <!ENTITY status-3xx             "<xref target='Part2' x:rel='#status.3xx' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
38  <!ENTITY status-4xx             "<xref target='Part2' x:rel='#status.4xx' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
39  <!ENTITY status-414             "<xref target='Part2' x:rel='#status.414' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
40]>
41<?rfc toc="yes" ?>
42<?rfc symrefs="yes" ?>
43<?rfc sortrefs="yes" ?>
44<?rfc compact="yes"?>
45<?rfc subcompact="no" ?>
46<?rfc linkmailto="no" ?>
47<?rfc editing="no" ?>
48<?rfc comments="yes"?>
49<?rfc inline="yes"?>
50<?rfc rfcedstyle="yes"?>
51<?rfc-ext allow-markup-in-artwork="yes" ?>
52<?rfc-ext include-references-in-index="yes" ?>
53<rfc obsoletes="2145,2616" updates="2817" category="std" x:maturity-level="draft"
54     ipr="pre5378Trust200902" docName="draft-ietf-httpbis-p1-messaging-&ID-VERSION;"
55     xmlns:x='http://purl.org/net/xml2rfc/ext'>
56<front>
57
58  <title abbrev="HTTP/1.1, Part 1">HTTP/1.1, part 1: URIs, Connections, and Message Parsing</title>
59
60  <author initials="R." surname="Fielding" fullname="Roy T. Fielding" role="editor">
61    <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
62    <address>
63      <postal>
64        <street>345 Park Ave</street>
65        <city>San Jose</city>
66        <region>CA</region>
67        <code>95110</code>
68        <country>USA</country>
69      </postal>
70      <email>fielding@gbiv.com</email>
71      <uri>http://roy.gbiv.com/</uri>
72    </address>
73  </author>
74
75  <author initials="J." surname="Gettys" fullname="Jim Gettys">
76    <organization abbrev="Alcatel-Lucent">Alcatel-Lucent Bell Labs</organization>
77    <address>
78      <postal>
79        <street>21 Oak Knoll Road</street>
80        <city>Carlisle</city>
81        <region>MA</region>
82        <code>01741</code>
83        <country>USA</country>
84      </postal>
85      <email>jg@freedesktop.org</email>
86      <uri>http://gettys.wordpress.com/</uri>
87    </address>
88  </author>
89 
90  <author initials="J." surname="Mogul" fullname="Jeffrey C. Mogul">
91    <organization abbrev="HP">Hewlett-Packard Company</organization>
92    <address>
93      <postal>
94        <street>HP Labs, Large Scale Systems Group</street>
95        <street>1501 Page Mill Road, MS 1177</street>
96        <city>Palo Alto</city>
97        <region>CA</region>
98        <code>94304</code>
99        <country>USA</country>
100      </postal>
101      <email>JeffMogul@acm.org</email>
102    </address>
103  </author>
104
105  <author initials="H." surname="Frystyk" fullname="Henrik Frystyk Nielsen">
106    <organization abbrev="Microsoft">Microsoft Corporation</organization>
107    <address>
108      <postal>
109        <street>1 Microsoft Way</street>
110        <city>Redmond</city>
111        <region>WA</region>
112        <code>98052</code>
113        <country>USA</country>
114      </postal>
115      <email>henrikn@microsoft.com</email>
116    </address>
117  </author>
118
119  <author initials="L." surname="Masinter" fullname="Larry Masinter">
120    <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
121    <address>
122      <postal>
123        <street>345 Park Ave</street>
124        <city>San Jose</city>
125        <region>CA</region>
126        <code>95110</code>
127        <country>USA</country>
128      </postal>
129      <email>LMM@acm.org</email>
130      <uri>http://larry.masinter.net/</uri>
131    </address>
132  </author>
133 
134  <author initials="P." surname="Leach" fullname="Paul J. Leach">
135    <organization abbrev="Microsoft">Microsoft Corporation</organization>
136    <address>
137      <postal>
138        <street>1 Microsoft Way</street>
139        <city>Redmond</city>
140        <region>WA</region>
141        <code>98052</code>
142      </postal>
143      <email>paulle@microsoft.com</email>
144    </address>
145  </author>
146   
147  <author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
148    <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
149    <address>
150      <postal>
151        <street>MIT Computer Science and Artificial Intelligence Laboratory</street>
152        <street>The Stata Center, Building 32</street>
153        <street>32 Vassar Street</street>
154        <city>Cambridge</city>
155        <region>MA</region>
156        <code>02139</code>
157        <country>USA</country>
158      </postal>
159      <email>timbl@w3.org</email>
160      <uri>http://www.w3.org/People/Berners-Lee/</uri>
161    </address>
162  </author>
163
164  <author initials="Y." surname="Lafon" fullname="Yves Lafon" role="editor">
165    <organization abbrev="W3C">World Wide Web Consortium</organization>
166    <address>
167      <postal>
168        <street>W3C / ERCIM</street>
169        <street>2004, rte des Lucioles</street>
170        <city>Sophia-Antipolis</city>
171        <region>AM</region>
172        <code>06902</code>
173        <country>France</country>
174      </postal>
175      <email>ylafon@w3.org</email>
176      <uri>http://www.raubacapeu.net/people/yves/</uri>
177    </address>
178  </author>
179
180  <author initials="J. F." surname="Reschke" fullname="Julian F. Reschke" role="editor">
181    <organization abbrev="greenbytes">greenbytes GmbH</organization>
182    <address>
183      <postal>
184        <street>Hafenweg 16</street>
185        <city>Muenster</city><region>NW</region><code>48155</code>
186        <country>Germany</country>
187      </postal>
188      <phone>+49 251 2807760</phone>
189      <facsimile>+49 251 2807761</facsimile>
190      <email>julian.reschke@greenbytes.de</email>
191      <uri>http://greenbytes.de/tech/webdav/</uri>
192    </address>
193  </author>
194
195  <date month="&ID-MONTH;" year="&ID-YEAR;"/>
196  <workgroup>HTTPbis Working Group</workgroup>
197
198<abstract>
199<t>
200   The Hypertext Transfer Protocol (HTTP) is an application-level
201   protocol for distributed, collaborative, hypertext information
202   systems. HTTP has been in use by the World Wide Web global information
203   initiative since 1990. This document is Part 1 of the seven-part specification
204   that defines the protocol referred to as "HTTP/1.1" and, taken together,
205   obsoletes RFC 2616.  Part 1 provides an overview of HTTP and
206   its associated terminology, defines the "http" and "https" Uniform
207   Resource Identifier (URI) schemes, defines the generic message syntax
208   and parsing requirements for HTTP message frames, and describes
209   general security concerns for implementations.
210</t>
211</abstract>
212
213<note title="Editorial Note (To be removed by RFC Editor)">
214  <t>
215    Discussion of this draft should take place on the HTTPBIS working group
216    mailing list (ietf-http-wg@w3.org), which is archived at
217    <eref target="http://lists.w3.org/Archives/Public/ietf-http-wg/"/>.
218  </t>
219  <t>
220    The current issues list is at
221    <eref target="http://tools.ietf.org/wg/httpbis/trac/report/3"/> and related
222    documents (including fancy diffs) can be found at
223    <eref target="http://tools.ietf.org/wg/httpbis/"/>.
224  </t>
225  <t>
226    The changes in this draft are summarized in <xref target="changes.since.15"/>.
227  </t>
228</note>
229</front>
230<middle>
231<section title="Introduction" anchor="introduction">
232<t>
233   The Hypertext Transfer Protocol (HTTP) is an application-level
234   request/response protocol that uses extensible semantics and MIME-like
235   message payloads for flexible interaction with network-based hypertext
236   information systems. HTTP relies upon the Uniform Resource Identifier (URI)
237   standard <xref target="RFC3986"/> to indicate the target resource and
238   relationships between resources.
239   Messages are passed in a format similar to that used by Internet mail
240   <xref target="RFC5322"/> and the Multipurpose Internet Mail Extensions
241   (MIME) <xref target="RFC2045"/> (see &diff-mime; for the differences
242   between HTTP and MIME messages).
243</t>
244<t>
245   HTTP is a generic interface protocol for information systems. It is
246   designed to hide the details of how a service is implemented by presenting
247   a uniform interface to clients that is independent of the types of
248   resources provided. Likewise, servers do not need to be aware of each
249   client's purpose: an HTTP request can be considered in isolation rather
250   than being associated with a specific type of client or a predetermined
251   sequence of application steps. The result is a protocol that can be used
252   effectively in many different contexts and for which implementations can
253   evolve independently over time.
254</t>
255<t>
256   HTTP is also designed for use as an intermediation protocol for translating
257   communication to and from non-HTTP information systems.
258   HTTP proxies and gateways can provide access to alternative information
259   services by translating their diverse protocols into a hypertext
260   format that can be viewed and manipulated by clients in the same way
261   as HTTP services.
262</t>
263<t>
264   One consequence of HTTP flexibility is that the protocol cannot be
265   defined in terms of what occurs behind the interface. Instead, we
266   are limited to defining the syntax of communication, the intent
267   of received communication, and the expected behavior of recipients.
268   If the communication is considered in isolation, then successful
269   actions ought to be reflected in corresponding changes to the
270   observable interface provided by servers. However, since multiple
271   clients might act in parallel and perhaps at cross-purposes, we
272   cannot require that such changes be observable beyond the scope
273   of a single response.
274</t>
275<t>
276   This document is Part 1 of the seven-part specification of HTTP,
277   defining the protocol referred to as "HTTP/1.1", obsoleting
278   <xref target="RFC2616"/> and <xref target="RFC2145"/>.
279   Part 1 describes the architectural elements that are used or
280   referred to in HTTP, defines the "http" and "https" URI schemes,
281   describes overall network operation and connection management,
282   and defines HTTP message framing and forwarding requirements.
283   Our goal is to define all of the mechanisms necessary for HTTP message
284   handling that are independent of message semantics, thereby defining the
285   complete set of requirements for message parsers and
286   message-forwarding intermediaries.
287</t>
288
289<section title="Requirements" anchor="intro.requirements">
290<t>
291   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
292   "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
293   document are to be interpreted as described in <xref target="RFC2119"/>.
294</t>
295<t>
296   An implementation is not compliant if it fails to satisfy one or more
297   of the "MUST" or "REQUIRED" level requirements for the protocols it
298   implements. An implementation that satisfies all the "MUST" or "REQUIRED"
299   level and all the "SHOULD" level requirements for its protocols is said
300   to be "unconditionally compliant"; one that satisfies all the "MUST"
301   level requirements but not all the "SHOULD" level requirements for its
302   protocols is said to be "conditionally compliant".
303</t>
304</section>
305
306<section title="Syntax Notation" anchor="notation">
307<iref primary="true" item="Grammar" subitem="ALPHA"/>
308<iref primary="true" item="Grammar" subitem="CR"/>
309<iref primary="true" item="Grammar" subitem="CRLF"/>
310<iref primary="true" item="Grammar" subitem="CTL"/>
311<iref primary="true" item="Grammar" subitem="DIGIT"/>
312<iref primary="true" item="Grammar" subitem="DQUOTE"/>
313<iref primary="true" item="Grammar" subitem="HEXDIG"/>
314<iref primary="true" item="Grammar" subitem="LF"/>
315<iref primary="true" item="Grammar" subitem="OCTET"/>
316<iref primary="true" item="Grammar" subitem="SP"/>
317<iref primary="true" item="Grammar" subitem="VCHAR"/>
318<iref primary="true" item="Grammar" subitem="WSP"/>
319<t>
320   This specification uses the Augmented Backus-Naur Form (ABNF) notation
321   of <xref target="RFC5234"/>.
322</t>
323<t anchor="core.rules">
324  <x:anchor-alias value="ALPHA"/>
325  <x:anchor-alias value="CTL"/>
326  <x:anchor-alias value="CR"/>
327  <x:anchor-alias value="CRLF"/>
328  <x:anchor-alias value="DIGIT"/>
329  <x:anchor-alias value="DQUOTE"/>
330  <x:anchor-alias value="HEXDIG"/>
331  <x:anchor-alias value="LF"/>
332  <x:anchor-alias value="OCTET"/>
333  <x:anchor-alias value="SP"/>
334  <x:anchor-alias value="VCHAR"/>
335  <x:anchor-alias value="WSP"/>
336   The following core rules are included by
337   reference, as defined in <xref target="RFC5234" x:fmt="," x:sec="B.1"/>:
338   ALPHA (letters), CR (carriage return), CRLF (CR LF), CTL (controls),
339   DIGIT (decimal 0-9), DQUOTE (double quote),
340   HEXDIG (hexadecimal 0-9/A-F/a-f), LF (line feed),
341   OCTET (any 8-bit sequence of data), SP (space),
342   VCHAR (any visible <xref target="USASCII"/> character),
343   and WSP (whitespace).
344</t>
345<t>
346   As a syntactic convention, ABNF rule names prefixed with "obs-" denote
347   "obsolete" grammar rules that appear for historical reasons.
348</t>
349
350<section title="ABNF Extension: #rule" anchor="notation.abnf">
351<t>
352  The #rule extension to the ABNF rules of <xref target="RFC5234"/> is used to
353  improve readability.
354</t>
355<t>
356  A construct "#" is defined, similar to "*", for defining comma-delimited
357  lists of elements. The full form is "&lt;n&gt;#&lt;m&gt;element" indicating
358  at least &lt;n&gt; and at most &lt;m&gt; elements, each separated by a single
359  comma (",") and optional whitespace (OWS,
360  <xref target="basic.rules"/>).   
361</t>
362<figure><preamble>
363  Thus,
364</preamble><artwork type="example">
365  1#element =&gt; element *( OWS "," OWS element )
366</artwork></figure>
367<figure><preamble>
368  and:
369</preamble><artwork type="example">
370  #element =&gt; [ 1#element ]
371</artwork></figure>
372<figure><preamble>
373  and for n &gt;= 1 and m &gt; 1:
374</preamble><artwork type="example">
375  &lt;n&gt;#&lt;m&gt;element =&gt; element &lt;n-1&gt;*&lt;m-1&gt;( OWS "," OWS element )
376</artwork></figure>
377<t>
378  For compatibility with legacy list rules, recipients &SHOULD; accept empty
379  list elements. In other words, consumers would follow the list productions:
380</t>
381<figure><artwork type="example">
382  #element =&gt; [ ( "," / element ) *( OWS "," [ OWS element ] ) ]
383 
384  1#element =&gt; *( "," OWS ) element *( OWS "," [ OWS element ] )
385</artwork></figure>
386<t>
387  Note that empty elements do not contribute to the count of elements present,
388  though.
389</t>
390<t>
391  For example, given these ABNF productions:
392</t>
393<figure><artwork type="example">
394  example-list      = 1#example-list-elmt
395  example-list-elmt = token ; see <xref target="basic.rules"/> 
396</artwork></figure>
397<t>
398  Then these are valid values for example-list (not including the double
399  quotes, which are present for delimitation only):
400</t>
401<figure><artwork type="example">
402  "foo,bar"
403  " foo ,bar,"
404  "  foo , ,bar,charlie   "
405  "foo ,bar,   charlie "
406</artwork></figure>
407<t>
408  But these values would be invalid, as at least one non-empty element is
409  required:
410</t>
411<figure><artwork type="example">
412  ""
413  ","
414  ",   ,"
415</artwork></figure>
416<t>
417  <xref target="collected.abnf"/> shows the collected ABNF, with the list rules
418  expanded as explained above.
419</t>
420</section>
421
422<section title="Basic Rules" anchor="basic.rules">
423<t anchor="rule.CRLF">
424  <x:anchor-alias value="CRLF"/>
425   HTTP/1.1 defines the sequence CR LF as the end-of-line marker for all
426   protocol elements other than the message-body
427   (see <xref target="tolerant.applications"/> for tolerant applications).
428</t>
429<t anchor="rule.LWS">
430   This specification uses three rules to denote the use of linear
431   whitespace: OWS (optional whitespace), RWS (required whitespace), and
432   BWS ("bad" whitespace).
433</t>
434<t>
435   The OWS rule is used where zero or more linear whitespace octets might
436   appear. OWS &SHOULD; either not be produced or be produced as a single
437   SP. Multiple OWS octets that occur within field-content &SHOULD;
438   be replaced with a single SP before interpreting the field value or
439   forwarding the message downstream.
440</t>
441<t>
442   RWS is used when at least one linear whitespace octet is required to
443   separate field tokens. RWS &SHOULD; be produced as a single SP.
444   Multiple RWS octets that occur within field-content &SHOULD; be
445   replaced with a single SP before interpreting the field value or
446   forwarding the message downstream.
447</t>
448<t>
449   BWS is used where the grammar allows optional whitespace for historical
450   reasons but senders &SHOULD-NOT; produce it in messages. HTTP/1.1
451   recipients &MUST; accept such bad optional whitespace and remove it before
452   interpreting the field value or forwarding the message downstream.
453</t>
454<t anchor="rule.whitespace">
455  <x:anchor-alias value="BWS"/>
456  <x:anchor-alias value="OWS"/>
457  <x:anchor-alias value="RWS"/>
458  <x:anchor-alias value="obs-fold"/>
459</t>
460<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="OWS"/><iref primary="true" item="Grammar" subitem="RWS"/><iref primary="true" item="Grammar" subitem="BWS"/>
461  <x:ref>OWS</x:ref>            = *( [ obs-fold ] <x:ref>WSP</x:ref> )
462                 ; "optional" whitespace
463  <x:ref>RWS</x:ref>            = 1*( [ obs-fold ] <x:ref>WSP</x:ref> )
464                 ; "required" whitespace
465  <x:ref>BWS</x:ref>            = <x:ref>OWS</x:ref>
466                 ; "bad" whitespace
467  <x:ref>obs-fold</x:ref>       = <x:ref>CRLF</x:ref>
468                 ; see <xref target="header.fields"/>
469</artwork></figure>
470<t anchor="rule.token.separators">
471  <x:anchor-alias value="tchar"/>
472  <x:anchor-alias value="token"/>
473  <x:anchor-alias value="special"/>
474  <x:anchor-alias value="word"/>
475   Many HTTP/1.1 header field values consist of words (token or quoted-string)
476   separated by whitespace or special characters. These special characters
477   &MUST; be in a quoted string to be used within a parameter value (as defined
478   in <xref target="transfer.codings"/>).
479</t>
480<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="word"/><iref primary="true" item="Grammar" subitem="token"/><iref primary="true" item="Grammar" subitem="tchar"/><iref primary="true" item="Grammar" subitem="special"/>
481  <x:ref>word</x:ref>           = <x:ref>token</x:ref> / <x:ref>quoted-string</x:ref>
482
483  <x:ref>token</x:ref>          = 1*<x:ref>tchar</x:ref>
484<!--
485  IMPORTANT: when editing "tchar" make sure that "special" is updated accordingly!!!
486 -->
487  <x:ref>tchar</x:ref>          = "!" / "#" / "$" / "%" / "&amp;" / "'" / "*"
488                 / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"
489                 / <x:ref>DIGIT</x:ref> / <x:ref>ALPHA</x:ref>
490                 ; any <x:ref>VCHAR</x:ref>, except <x:ref>special</x:ref>
491
492  <x:ref>special</x:ref>        = "(" / ")" / "&lt;" / ">" / "@" / ","
493                 / ";" / ":" / "\" / DQUOTE / "/" / "["
494                 / "]" / "?" / "=" / "{" / "}"
495</artwork></figure>
496<t anchor="rule.quoted-string">
497  <x:anchor-alias value="quoted-string"/>
498  <x:anchor-alias value="qdtext"/>
499  <x:anchor-alias value="obs-text"/>
500   A string of text is parsed as a single word if it is quoted using
501   double-quote marks.
502</t>
503<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="quoted-string"/><iref primary="true" item="Grammar" subitem="qdtext"/><iref primary="true" item="Grammar" subitem="obs-text"/>
504  <x:ref>quoted-string</x:ref>  = <x:ref>DQUOTE</x:ref> *( <x:ref>qdtext</x:ref> / <x:ref>quoted-pair</x:ref> ) <x:ref>DQUOTE</x:ref>
505  <x:ref>qdtext</x:ref>         = <x:ref>OWS</x:ref> / %x21 / %x23-5B / %x5D-7E / <x:ref>obs-text</x:ref>
506                 ; <x:ref>OWS</x:ref> / &lt;<x:ref>VCHAR</x:ref> except <x:ref>DQUOTE</x:ref> and "\"&gt; / <x:ref>obs-text</x:ref> 
507  <x:ref>obs-text</x:ref>       = %x80-FF
508</artwork></figure>
509<t anchor="rule.quoted-pair">
510  <x:anchor-alias value="quoted-pair"/>
511   The backslash octet ("\") can be used as a single-octet
512   quoting mechanism within quoted-string constructs:
513</t>
514<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="quoted-pair"/>
515  <x:ref>quoted-pair</x:ref>    = "\" ( <x:ref>WSP</x:ref> / <x:ref>VCHAR</x:ref> / <x:ref>obs-text</x:ref> )
516</artwork></figure>
517<t>
518   Recipients that process the value of the quoted-string &MUST; handle a
519   quoted-pair as if it were replaced by the octet following the backslash.
520</t>
521<t>
522   Senders &SHOULD-NOT; escape octets that do not require escaping
523   (i.e., other than DQUOTE and the backslash octet).
524</t>
525</section>
526
527</section>
528</section>
529
530<section title="HTTP-related architecture" anchor="architecture">
531<t>
532   HTTP was created for the World Wide Web architecture
533   and has evolved over time to support the scalability needs of a worldwide
534   hypertext system. Much of that architecture is reflected in the terminology
535   and syntax productions used to define HTTP.
536</t>
537
538<section title="Client/Server Messaging" anchor="operation">
539<iref primary="true" item="client"/>
540<iref primary="true" item="server"/>
541<iref primary="true" item="connection"/>
542<t>
543   HTTP is a stateless request/response protocol that operates by exchanging
544   messages across a reliable transport or session-layer
545   "<x:dfn>connection</x:dfn>". An HTTP "<x:dfn>client</x:dfn>" is a
546   program that establishes a connection to a server for the purpose of
547   sending one or more HTTP requests.  An HTTP "<x:dfn>server</x:dfn>" is a
548   program that accepts connections in order to service HTTP requests by
549   sending HTTP responses.
550</t>
551<iref primary="true" item="user agent"/>
552<iref primary="true" item="origin server"/>
553<iref primary="true" item="browser"/>
554<iref primary="true" item="spider"/>
555<iref primary="true" item="sender"/>
556<iref primary="true" item="recipient"/>
557<t>
558   Note that the terms client and server refer only to the roles that
559   these programs perform for a particular connection.  The same program
560   might act as a client on some connections and a server on others.  We use
561   the term "<x:dfn>user agent</x:dfn>" to refer to the program that initiates a request,
562   such as a WWW browser, editor, or spider (web-traversing robot), and
563   the term "<x:dfn>origin server</x:dfn>" to refer to the program that can originate
564   authoritative responses to a request.  For general requirements, we use
565   the term "<x:dfn>sender</x:dfn>" to refer to whichever component sent a given message
566   and the term "<x:dfn>recipient</x:dfn>" to refer to any component that receives the
567   message.
568</t>
569<t>
570   Most HTTP communication consists of a retrieval request (GET) for
571   a representation of some resource identified by a URI.  In the
572   simplest case, this might be accomplished via a single bidirectional
573   connection (===) between the user agent (UA) and the origin server (O).
574</t>
575<figure><artwork type="drawing">
576         request   &gt;
577    UA ======================================= O
578                                &lt;   response
579</artwork></figure>
580<iref primary="true" item="message"/>
581<iref primary="true" item="request"/>
582<iref primary="true" item="response"/>
583<t>
584   A client sends an HTTP request to the server in the form of a <x:dfn>request</x:dfn>
585   <x:dfn>message</x:dfn> (<xref target="request"/>), beginning with a method, URI, and
586   protocol version, followed by MIME-like header fields containing
587   request modifiers, client information, and payload metadata, an empty
588   line to indicate the end of the header section, and finally the payload
589   body (if any).
590</t>
591<t>
592   A server responds to the client's request by sending an HTTP <x:dfn>response</x:dfn>
593   <x:dfn>message</x:dfn> (<xref target="response"/>), beginning with a status line that
594   includes the protocol version, a success or error code, and textual
595   reason phrase, followed by MIME-like header fields containing server
596   information, resource metadata, and payload metadata, an empty line to
597   indicate the end of the header section, and finally the payload body (if any).
598</t>
599<t>
600   The following example illustrates a typical message exchange for a
601   GET request on the URI "http://www.example.com/hello.txt":
602</t>
603<figure><preamble>
604client request:
605</preamble><artwork type="message/http; msgtype=&#34;request&#34;" x:indent-with="  ">
606GET /hello.txt HTTP/1.1
607User-Agent: curl/7.16.3 libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
608Host: www.example.com
609Accept: */*
610
611</artwork></figure>
612<figure><preamble>
613server response:
614</preamble><artwork type="message/http; msgtype=&#34;response&#34;" x:indent-with="  ">
615HTTP/1.1 200 OK
616Date: Mon, 27 Jul 2009 12:28:53 GMT
617Server: Apache
618Last-Modified: Wed, 22 Jul 2009 19:15:56 GMT
619ETag: "34aa387-d-1568eb00"
620Accept-Ranges: bytes
621Content-Length: <x:length-of target="exbody"/>
622Vary: Accept-Encoding
623Content-Type: text/plain
624
625<x:span anchor="exbody">Hello World!
626</x:span></artwork></figure>
627</section>
628
629<section title="Message Orientation and Buffering" anchor="message-orientation-and-buffering">
630<t>
631   Fundamentally, HTTP is a message-based protocol. Although message bodies can
632   be chunked (<xref target="chunked.encoding"/>) and implementations often
633   make parts of a message available progressively, this is not required, and
634   some widely-used implementations only make a message available when it is
635   complete. Furthermore, while most proxies will progressively stream messages,
636   some amount of buffering will take place, and some proxies might buffer
637   messages to perform transformations, check content or provide other services.
638</t>
639<t>
640   Therefore, extensions to and uses of HTTP cannot rely on the availability of
641   a partial message, or assume that messages will not be buffered. There are
642   strategies that can be used to test for buffering in a given connection, but
643   it should be understood that behaviors can differ across connections, and
644   between requests and responses.
645</t>
646<t>
647   Recipients &MUST; consider every message in a connection in isolation;
648   because HTTP is a stateless protocol, it cannot be assumed that two requests
649   on the same connection are from the same client or share any other common
650   attributes. In particular, intermediaries might mix requests from different
651   clients into a single server connection. Note that some existing HTTP
652   extensions (e.g., <xref target="RFC4559"/>) violate this requirement, thereby
653   potentially causing interoperability and security problems.
654</t>
655</section>
656
657<section title="Connections and Transport Independence" anchor="transport-independence">
658<t>
659   HTTP messaging is independent of the underlying transport or
660   session-layer connection protocol(s).  HTTP only presumes a reliable
661   transport with in-order delivery of requests and the corresponding
662   in-order delivery of responses.  The mapping of HTTP request and
663   response structures onto the data units of the underlying transport
664   protocol is outside the scope of this specification.
665</t>
666<t>
667   The specific connection protocols to be used for an interaction
668   are determined by client configuration and the target resource's URI.
669   For example, the "http" URI scheme
670   (<xref target="http.uri"/>) indicates a default connection of TCP
671   over IP, with a default TCP port of 80, but the client might be
672   configured to use a proxy via some other connection port or protocol
673   instead of using the defaults.
674</t>
675<t>
676   A connection might be used for multiple HTTP request/response exchanges,
677   as defined in <xref target="persistent.connections"/>.
678</t>
679</section>
680
681<section title="Intermediaries" anchor="intermediaries">
682<iref primary="true" item="intermediary"/>
683<t>
684   HTTP enables the use of intermediaries to satisfy requests through
685   a chain of connections.  There are three common forms of HTTP
686   <x:dfn>intermediary</x:dfn>: proxy, gateway, and tunnel.  In some cases,
687   a single intermediary might act as an origin server, proxy, gateway,
688   or tunnel, switching behavior based on the nature of each request.
689</t>
690<figure><artwork type="drawing">
691         &gt;             &gt;             &gt;             &gt;
692    <x:highlight>UA</x:highlight> =========== <x:highlight>A</x:highlight> =========== <x:highlight>B</x:highlight> =========== <x:highlight>C</x:highlight> =========== <x:highlight>O</x:highlight>
693               &lt;             &lt;             &lt;             &lt;
694</artwork></figure>
695<t>
696   The figure above shows three intermediaries (A, B, and C) between the
697   user agent and origin server. A request or response message that
698   travels the whole chain will pass through four separate connections.
699   Some HTTP communication options
700   might apply only to the connection with the nearest, non-tunnel
701   neighbor, only to the end-points of the chain, or to all connections
702   along the chain. Although the diagram is linear, each participant might
703   be engaged in multiple, simultaneous communications. For example, B
704   might be receiving requests from many clients other than A, and/or
705   forwarding requests to servers other than C, at the same time that it
706   is handling A's request.
707</t>
708<t>
709<iref primary="true" item="upstream"/><iref primary="true" item="downstream"/>
710<iref primary="true" item="inbound"/><iref primary="true" item="outbound"/>
711   We use the terms "<x:dfn>upstream</x:dfn>" and "<x:dfn>downstream</x:dfn>"
712   to describe various requirements in relation to the directional flow of a
713   message: all messages flow from upstream to downstream.
714   Likewise, we use the terms inbound and outbound to refer to
715   directions in relation to the request path:
716   "<x:dfn>inbound</x:dfn>" means toward the origin server and
717   "<x:dfn>outbound</x:dfn>" means toward the user agent.
718</t>
719<t><iref primary="true" item="proxy"/>
720   A "<x:dfn>proxy</x:dfn>" is a message forwarding agent that is selected by the
721   client, usually via local configuration rules, to receive requests
722   for some type(s) of absolute URI and attempt to satisfy those
723   requests via translation through the HTTP interface.  Some translations
724   are minimal, such as for proxy requests for "http" URIs, whereas
725   other requests might require translation to and from entirely different
726   application-layer protocols. Proxies are often used to group an
727   organization's HTTP requests through a common intermediary for the
728   sake of security, annotation services, or shared caching.
729</t>
730<t>
731<iref primary="true" item="transforming proxy"/>
732<iref primary="true" item="non-transforming proxy"/>
733   An HTTP-to-HTTP proxy is called a "<x:dfn>transforming proxy</x:dfn>" if it is designed
734   or configured to modify request or response messages in a semantically
735   meaningful way (i.e., modifications, beyond those required by normal
736   HTTP processing, that change the message in a way that would be
737   significant to the original sender or potentially significant to
738   downstream recipients).  For example, a transforming proxy might be
739   acting as a shared annotation server (modifying responses to include
740   references to a local annotation database), a malware filter, a
741   format transcoder, or an intranet-to-Internet privacy filter.  Such
742   transformations are presumed to be desired by the client (or client
743   organization) that selected the proxy and are beyond the scope of
744   this specification.  However, when a proxy is not intended to transform
745   a given message, we use the term "<x:dfn>non-transforming proxy</x:dfn>" to target
746   requirements that preserve HTTP message semantics. See &status-203; and
747   &header-warning; for status and warning codes related to transformations.
748</t>
749<t><iref primary="true" item="gateway"/><iref primary="true" item="reverse proxy"/>
750<iref primary="true" item="accelerator"/>
751   A "<x:dfn>gateway</x:dfn>" (a.k.a., "<x:dfn>reverse proxy</x:dfn>")
752   is a receiving agent that acts
753   as a layer above some other server(s) and translates the received
754   requests to the underlying server's protocol.  Gateways are often
755   used to encapsulate legacy or untrusted information services, to
756   improve server performance through "<x:dfn>accelerator</x:dfn>" caching, and to
757   enable partitioning or load-balancing of HTTP services across
758   multiple machines.
759</t>
760<t>
761   A gateway behaves as an origin server on its outbound connection and
762   as a user agent on its inbound connection.
763   All HTTP requirements applicable to an origin server
764   also apply to the outbound communication of a gateway.
765   A gateway communicates with inbound servers using any protocol that
766   it desires, including private extensions to HTTP that are outside
767   the scope of this specification.  However, an HTTP-to-HTTP gateway
768   that wishes to interoperate with third-party HTTP servers &MUST;
769   comply with HTTP user agent requirements on the gateway's inbound
770   connection and &MUST; implement the Connection
771   (<xref target="header.connection"/>) and Via (<xref target="header.via"/>)
772   header fields for both connections.
773</t>
774<t><iref primary="true" item="tunnel"/>
775   A "<x:dfn>tunnel</x:dfn>" acts as a blind relay between two connections
776   without changing the messages. Once active, a tunnel is not
777   considered a party to the HTTP communication, though the tunnel might
778   have been initiated by an HTTP request. A tunnel ceases to exist when
779   both ends of the relayed connection are closed. Tunnels are used to
780   extend a virtual connection through an intermediary, such as when
781   transport-layer security is used to establish private communication
782   through a shared firewall proxy.
783</t>
784<t><iref primary="true" item="interception proxy"/><iref primary="true" item="transparent proxy"/>
785<iref primary="true" item="captive portal"/>
786   In addition, there may exist network intermediaries that are not
787   considered part of the HTTP communication but nevertheless act as
788   filters or redirecting agents (usually violating HTTP semantics,
789   causing security problems, and otherwise making a mess of things).
790   Such a network intermediary, often referred to as an "<x:dfn>interception proxy</x:dfn>"
791   <xref target="RFC3040"/>, "<x:dfn>transparent proxy</x:dfn>" <xref target="RFC1919"/>,
792   or "<x:dfn>captive portal</x:dfn>",
793   differs from an HTTP proxy because it has not been selected by the client.
794   Instead, the network intermediary redirects outgoing TCP port 80 packets
795   (and occasionally other common port traffic) to an internal HTTP server.
796   Interception proxies are commonly found on public network access points,
797   as a means of enforcing account subscription prior to allowing use of
798   non-local Internet services, and within corporate firewalls to enforce
799   network usage policies.
800   They are indistinguishable from a man-in-the-middle attack.
801</t>
802</section>
803
804<section title="Caches" anchor="caches">
805<iref primary="true" item="cache"/>
806<t>
807   A "<x:dfn>cache</x:dfn>" is a local store of previous response messages and the
808   subsystem that controls its message storage, retrieval, and deletion.
809   A cache stores cacheable responses in order to reduce the response
810   time and network bandwidth consumption on future, equivalent
811   requests. Any client or server &MAY; employ a cache, though a cache
812   cannot be used by a server while it is acting as a tunnel.
813</t>
814<t>
815   The effect of a cache is that the request/response chain is shortened
816   if one of the participants along the chain has a cached response
817   applicable to that request. The following illustrates the resulting
818   chain if B has a cached copy of an earlier response from O (via C)
819   for a request which has not been cached by UA or A.
820</t>
821<figure><artwork type="drawing">
822            &gt;             &gt;
823       UA =========== A =========== B - - - - - - C - - - - - - O
824                  &lt;             &lt;
825</artwork></figure>
826<t><iref primary="true" item="cacheable"/>
827   A response is "<x:dfn>cacheable</x:dfn>" if a cache is allowed to store a copy of
828   the response message for use in answering subsequent requests.
829   Even when a response is cacheable, there might be additional
830   constraints placed by the client or by the origin server on when
831   that cached response can be used for a particular request. HTTP
832   requirements for cache behavior and cacheable responses are
833   defined in &caching-overview;
834</t>
835<t>
836   There are a wide variety of architectures and configurations
837   of caches and proxies deployed across the World Wide Web and
838   inside large organizations. These systems include national hierarchies
839   of proxy caches to save transoceanic bandwidth, systems that
840   broadcast or multicast cache entries, organizations that distribute
841   subsets of cached data via optical media, and so on.
842</t>
843</section>
844
845<section title="Protocol Versioning" anchor="http.version">
846  <x:anchor-alias value="HTTP-Version"/>
847  <x:anchor-alias value="HTTP-Prot-Name"/>
848<t>
849   HTTP uses a "&lt;major&gt;.&lt;minor&gt;" numbering scheme to indicate
850   versions of the protocol. This specification defines version "1.1".
851   The protocol version as a whole indicates the sender's compliance
852   with the set of requirements laid out in that version's corresponding
853   specification of HTTP.
854</t>
855<t>
856   The version of an HTTP message is indicated by an HTTP-Version field
857   in the first line of the message. HTTP-Version is case-sensitive.
858</t>
859<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="HTTP-Version"/><iref primary="true" item="Grammar" subitem="HTTP-Prot-Name"/>
860  <x:ref>HTTP-Version</x:ref>   = <x:ref>HTTP-Prot-Name</x:ref> "/" <x:ref>DIGIT</x:ref> "." <x:ref>DIGIT</x:ref>
861  <x:ref>HTTP-Prot-Name</x:ref> = <x:abnf-char-sequence>"HTTP"</x:abnf-char-sequence> ; "HTTP", case-sensitive
862</artwork></figure>
863<t>
864   The HTTP version number consists of two decimal digits separated by a "."
865   (period or decimal point).  The first digit ("major version") indicates the
866   HTTP messaging syntax, whereas the second digit ("minor version") indicates
867   the highest minor version to which the sender is at least conditionally
868   compliant and able to understand for future communication.  The minor
869   version advertises the sender's communication capabilities even when the
870   sender is only using a backwards-compatible subset of the protocol,
871   thereby letting the recipient know that more advanced features can
872   be used in response (by servers) or in future requests (by clients).
873</t>
874<t>
875   When an HTTP/1.1 message is sent to an HTTP/1.0 recipient
876   <xref target="RFC1945"/> or a recipient whose version is unknown,
877   the HTTP/1.1 message is constructed such that it can be interpreted
878   as a valid HTTP/1.0 message if all of the newer features are ignored.
879   This specification places recipient-version requirements on some
880   new features so that a compliant sender will only use compatible
881   features until it has determined, through configuration or the
882   receipt of a message, that the recipient supports HTTP/1.1.
883</t>
884<t>
885   The interpretation of an HTTP header field does not change
886   between minor versions of the same major version, though the default
887   behavior of a recipient in the absence of such a field can change.
888   Unless specified otherwise, header fields defined in HTTP/1.1 are
889   defined for all versions of HTTP/1.x.  In particular, the Host and
890   Connection header fields ought to be implemented by all HTTP/1.x
891   implementations whether or not they advertise compliance with HTTP/1.1.
892</t>
893<t>
894   New header fields can be defined such that, when they are
895   understood by a recipient, they might override or enhance the
896   interpretation of previously defined header fields.  When an
897   implementation receives an unrecognized header field, the recipient
898   &MUST; ignore that header field for local processing regardless of
899   the message's HTTP version.  An unrecognized header field received
900   by a proxy &MUST; be forwarded downstream unless the header field's
901   field-name is listed in the message's Connection header-field
902   (see <xref target="header.connection"/>).
903   These requirements allow HTTP's functionality to be enhanced without
904   requiring prior update of all compliant intermediaries.
905</t>
906<t>
907   Intermediaries that process HTTP messages (i.e., all intermediaries
908   other than those acting as a tunnel) &MUST; send their own HTTP-Version
909   in forwarded messages.  In other words, they &MUST-NOT; blindly
910   forward the first line of an HTTP message without ensuring that the
911   protocol version matches what the intermediary understands, and
912   is at least conditionally compliant to, for both the receiving and
913   sending of messages.  Forwarding an HTTP message without rewriting
914   the HTTP-Version might result in communication errors when downstream
915   recipients use the message sender's version to determine what features
916   are safe to use for later communication with that sender.
917</t>
918<t>
919   An HTTP client &SHOULD; send a request version equal to the highest
920   version for which the client is at least conditionally compliant and
921   whose major version is no higher than the highest version supported
922   by the server, if this is known.  An HTTP client &MUST-NOT; send a
923   version for which it is not at least conditionally compliant.
924</t>
925<t>
926   An HTTP client &MAY; send a lower request version if it is known that
927   the server incorrectly implements the HTTP specification, but only
928   after the client has attempted at least one normal request and determined
929   from the response status or header fields (e.g., Server) that the
930   server improperly handles higher request versions.
931</t>
932<t>
933   An HTTP server &SHOULD; send a response version equal to the highest
934   version for which the server is at least conditionally compliant and
935   whose major version is less than or equal to the one received in the
936   request.  An HTTP server &MUST-NOT; send a version for which it is not
937   at least conditionally compliant.  A server &MAY; send a 505 (HTTP
938   Version Not Supported) response if it cannot send a response using the
939   major version used in the client's request.
940</t>
941<t>
942   An HTTP server &MAY; send an HTTP/1.0 response to an HTTP/1.0 request
943   if it is known or suspected that the client incorrectly implements the
944   HTTP specification and is incapable of correctly processing later
945   version responses, such as when a client fails to parse the version
946   number correctly or when an intermediary is known to blindly forward
947   the HTTP-Version even when it doesn't comply with the given minor
948   version of the protocol. Such protocol downgrades &SHOULD-NOT; be
949   performed unless triggered by specific client attributes, such as when
950   one or more of the request header fields (e.g., User-Agent) uniquely
951   match the values sent by a client known to be in error.
952</t>
953<t>
954   The intention of HTTP's versioning design is that the major number
955   will only be incremented if an incompatible message syntax is
956   introduced, and that the minor number will only be incremented when
957   changes made to the protocol have the effect of adding to the message
958   semantics or implying additional capabilities of the sender.  However,
959   the minor version was not incremented for the changes introduced between
960   <xref target="RFC2068"/> and <xref target="RFC2616"/>, and this revision
961   is specifically avoiding any such changes to the protocol.
962</t>
963</section>
964
965<section title="Uniform Resource Identifiers" anchor="uri">
966<iref primary="true" item="resource"/>
967<t>
968   Uniform Resource Identifiers (URIs) <xref target="RFC3986"/> are used
969   throughout HTTP as the means for identifying resources. URI references
970   are used to target requests, indicate redirects, and define relationships.
971   HTTP does not limit what a resource might be; it merely defines an interface
972   that can be used to interact with a resource via HTTP. More information on
973   the scope of URIs and resources can be found in <xref target="RFC3986"/>.
974</t>
975  <x:anchor-alias value="URI-reference"/>
976  <x:anchor-alias value="absolute-URI"/>
977  <x:anchor-alias value="relative-part"/>
978  <x:anchor-alias value="authority"/>
979  <x:anchor-alias value="path-abempty"/>
980  <x:anchor-alias value="path-absolute"/>
981  <x:anchor-alias value="port"/>
982  <x:anchor-alias value="query"/>
983  <x:anchor-alias value="uri-host"/>
984  <x:anchor-alias value="partial-URI"/>
985<t>
986   This specification adopts the definitions of "URI-reference",
987   "absolute-URI", "relative-part", "port", "host",
988   "path-abempty", "path-absolute", "query", and "authority" from the
989   URI generic syntax <xref target="RFC3986"/>.
990   In addition, we define a partial-URI rule for protocol elements
991   that allow a relative URI but not a fragment.
992</t>
993<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="URI-reference"/><iref primary="true" item="Grammar" subitem="absolute-URI"/><iref primary="true" item="Grammar" subitem="authority"/><iref primary="true" item="Grammar" subitem="path-absolute"/><iref primary="true" item="Grammar" subitem="port"/><iref primary="true" item="Grammar" subitem="query"/><iref primary="true" item="Grammar" subitem="uri-host"/>
994  <x:ref>URI-reference</x:ref> = &lt;URI-reference, defined in <xref target="RFC3986" x:fmt="," x:sec="4.1"/>&gt;
995  <x:ref>absolute-URI</x:ref>  = &lt;absolute-URI, defined in <xref target="RFC3986" x:fmt="," x:sec="4.3"/>&gt;
996  <x:ref>relative-part</x:ref> = &lt;relative-part, defined in <xref target="RFC3986" x:fmt="," x:sec="4.2"/>&gt;
997  <x:ref>authority</x:ref>     = &lt;authority, defined in <xref target="RFC3986" x:fmt="," x:sec="3.2"/>&gt;
998  <x:ref>path-abempty</x:ref>  = &lt;path-abempty, defined in <xref target="RFC3986" x:fmt="," x:sec="3.3"/>&gt;
999  <x:ref>path-absolute</x:ref> = &lt;path-absolute, defined in <xref target="RFC3986" x:fmt="," x:sec="3.3"/>&gt;
1000  <x:ref>port</x:ref>          = &lt;port, defined in <xref target="RFC3986" x:fmt="," x:sec="3.2.3"/>&gt;
1001  <x:ref>query</x:ref>         = &lt;query, defined in <xref target="RFC3986" x:fmt="," x:sec="3.4"/>&gt;
1002  <x:ref>uri-host</x:ref>      = &lt;host, defined in <xref target="RFC3986" x:fmt="," x:sec="3.2.2"/>&gt;
1003 
1004  <x:ref>partial-URI</x:ref>   = relative-part [ "?" query ]
1005</artwork></figure>
1006<t>
1007   Each protocol element in HTTP that allows a URI reference will indicate
1008   in its ABNF production whether the element allows any form of reference
1009   (URI-reference), only a URI in absolute form (absolute-URI), only the
1010   path and optional query components, or some combination of the above.
1011   Unless otherwise indicated, URI references are parsed relative to the
1012   effective request URI, which defines the default base URI for references
1013   in both the request and its corresponding response.
1014</t>
1015
1016<section title="http URI scheme" anchor="http.uri">
1017  <x:anchor-alias value="http-URI"/>
1018  <iref item="http URI scheme" primary="true"/>
1019  <iref item="URI scheme" subitem="http" primary="true"/>
1020<t>
1021   The "http" URI scheme is hereby defined for the purpose of minting
1022   identifiers according to their association with the hierarchical
1023   namespace governed by a potential HTTP origin server listening for
1024   TCP connections on a given port.
1025</t>
1026<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="http-URI"/>
1027  <x:ref>http-URI</x:ref> = "http:" "//" <x:ref>authority</x:ref> <x:ref>path-abempty</x:ref> [ "?" <x:ref>query</x:ref> ]
1028</artwork></figure>
1029<t>
1030   The HTTP origin server is identified by the generic syntax's
1031   <x:ref>authority</x:ref> component, which includes a host identifier
1032   and optional TCP port (<xref target="RFC3986" x:fmt="," x:sec="3.2.2"/>).
1033   The remainder of the URI, consisting of both the hierarchical path
1034   component and optional query component, serves as an identifier for
1035   a potential resource within that origin server's name space.
1036</t>
1037<t>
1038   If the host identifier is provided as an IP literal or IPv4 address,
1039   then the origin server is any listener on the indicated TCP port at
1040   that IP address. If host is a registered name, then that name is
1041   considered an indirect identifier and the recipient might use a name
1042   resolution service, such as DNS, to find the address of a listener
1043   for that host.
1044   The host &MUST-NOT; be empty; if an "http" URI is received with an
1045   empty host, then it &MUST; be rejected as invalid.
1046   If the port subcomponent is empty or not given, then TCP port 80 is
1047   assumed (the default reserved port for WWW services).
1048</t>
1049<t>
1050   Regardless of the form of host identifier, access to that host is not
1051   implied by the mere presence of its name or address. The host might or might
1052   not exist and, even when it does exist, might or might not be running an
1053   HTTP server or listening to the indicated port. The "http" URI scheme
1054   makes use of the delegated nature of Internet names and addresses to
1055   establish a naming authority (whatever entity has the ability to place
1056   an HTTP server at that Internet name or address) and allows that
1057   authority to determine which names are valid and how they might be used.
1058</t>
1059<t>
1060   When an "http" URI is used within a context that calls for access to the
1061   indicated resource, a client &MAY; attempt access by resolving
1062   the host to an IP address, establishing a TCP connection to that address
1063   on the indicated port, and sending an HTTP request message to the server
1064   containing the URI's identifying data as described in <xref target="request"/>.
1065   If the server responds to that request with a non-interim HTTP response
1066   message, as described in <xref target="response"/>, then that response
1067   is considered an authoritative answer to the client's request.
1068</t>
1069<t>
1070   Although HTTP is independent of the transport protocol, the "http"
1071   scheme is specific to TCP-based services because the name delegation
1072   process depends on TCP for establishing authority.
1073   An HTTP service based on some other underlying connection protocol
1074   would presumably be identified using a different URI scheme, just as
1075   the "https" scheme (below) is used for servers that require an SSL/TLS
1076   transport layer on a connection. Other protocols might also be used to
1077   provide access to "http" identified resources &mdash; it is only the
1078   authoritative interface used for mapping the namespace that is
1079   specific to TCP.
1080</t>
1081<t>
1082   The URI generic syntax for authority also includes a deprecated
1083   userinfo subcomponent (<xref target="RFC3986" x:fmt="," x:sec="3.2.1"/>)
1084   for including user authentication information in the URI.  Some
1085   implementations make use of the userinfo component for internal
1086   configuration of authentication information, such as within command
1087   invocation options, configuration files, or bookmark lists, even
1088   though such usage might expose a user identifier or password.
1089   Senders &MUST-NOT; include a userinfo subcomponent (and its "@"
1090   delimiter) when transmitting an "http" URI in a message.  Recipients
1091   of HTTP messages that contain a URI reference &SHOULD; parse for the
1092   existence of userinfo and treat its presence as an error, likely
1093   indicating that the deprecated subcomponent is being used to obscure
1094   the authority for the sake of phishing attacks.
1095</t>
1096</section>
1097
1098<section title="https URI scheme" anchor="https.uri">
1099   <x:anchor-alias value="https-URI"/>
1100   <iref item="https URI scheme"/>
1101   <iref item="URI scheme" subitem="https"/>
1102<t>
1103   The "https" URI scheme is hereby defined for the purpose of minting
1104   identifiers according to their association with the hierarchical
1105   namespace governed by a potential HTTP origin server listening for
1106   SSL/TLS-secured connections on a given TCP port.
1107</t>
1108<t>
1109   All of the requirements listed above for the "http" scheme are also
1110   requirements for the "https" scheme, except that a default TCP port
1111   of 443 is assumed if the port subcomponent is empty or not given,
1112   and the TCP connection &MUST; be secured for privacy through the
1113   use of strong encryption prior to sending the first HTTP request.
1114</t>
1115<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="https-URI"/>
1116  <x:ref>https-URI</x:ref> = "https:" "//" <x:ref>authority</x:ref> <x:ref>path-abempty</x:ref> [ "?" <x:ref>query</x:ref> ]
1117</artwork></figure>
1118<t>
1119   Unlike the "http" scheme, responses to "https" identified requests
1120   are never "public" and thus &MUST-NOT; be reused for shared caching.
1121   They can, however, be reused in a private cache if the message is
1122   cacheable by default in HTTP or specifically indicated as such by
1123   the Cache-Control header field (&header-cache-control;).
1124</t>
1125<t>
1126   Resources made available via the "https" scheme have no shared
1127   identity with the "http" scheme even if their resource identifiers
1128   indicate the same authority (the same host listening to the same
1129   TCP port).  They are distinct name spaces and are considered to be
1130   distinct origin servers.  However, an extension to HTTP that is
1131   defined to apply to entire host domains, such as the Cookie protocol
1132   <xref target="RFC6265"/>, can allow information
1133   set by one service to impact communication with other services
1134   within a matching group of host domains.
1135</t>
1136<t>
1137   The process for authoritative access to an "https" identified
1138   resource is defined in <xref target="RFC2818"/>.
1139</t>
1140</section>
1141
1142<section title="http and https URI Normalization and Comparison" anchor="uri.comparison">
1143<t>
1144   Since the "http" and "https" schemes conform to the URI generic syntax,
1145   such URIs are normalized and compared according to the algorithm defined
1146   in <xref target="RFC3986" x:fmt="," x:sec="6"/>, using the defaults
1147   described above for each scheme.
1148</t>
1149<t>
1150   If the port is equal to the default port for a scheme, the normal
1151   form is to elide the port subcomponent. Likewise, an empty path
1152   component is equivalent to an absolute path of "/", so the normal
1153   form is to provide a path of "/" instead. The scheme and host
1154   are case-insensitive and normally provided in lowercase; all
1155   other components are compared in a case-sensitive manner.
1156   Characters other than those in the "reserved" set are equivalent
1157   to their percent-encoded octets (see <xref target="RFC3986"
1158   x:fmt="," x:sec="2.1"/>): the normal form is to not encode them.
1159</t>
1160<t>
1161   For example, the following three URIs are equivalent:
1162</t>
1163<figure><artwork type="example">
1164   http://example.com:80/~smith/home.html
1165   http://EXAMPLE.com/%7Esmith/home.html
1166   http://EXAMPLE.com:/%7esmith/home.html
1167</artwork></figure>
1168</section>
1169</section>
1170</section>
1171
1172<section title="Message Format" anchor="http.message">
1173<x:anchor-alias value="generic-message"/>
1174<x:anchor-alias value="message.types"/>
1175<x:anchor-alias value="HTTP-message"/>
1176<x:anchor-alias value="start-line"/>
1177<iref item="header section"/>
1178<iref item="headers"/>
1179<iref item="header field"/>
1180<t>
1181   All HTTP/1.1 messages consist of a start-line followed by a sequence of
1182   octets in a format similar to the Internet Message Format
1183   <xref target="RFC5322"/>: zero or more header fields (collectively
1184   referred to as the "headers" or the "header section"), an empty line
1185   indicating the end of the header section, and an optional message-body.
1186</t>
1187<t>
1188   An HTTP message can either be a request from client to server or a
1189   response from server to client.  Syntactically, the two types of message
1190   differ only in the start-line, which is either a Request-Line (for requests)
1191   or a Status-Line (for responses), and in the algorithm for determining
1192   the length of the message-body (<xref target="message.body"/>).
1193   In theory, a client could receive requests and a server could receive
1194   responses, distinguishing them by their different start-line formats,
1195   but in practice servers are implemented to only expect a request
1196   (a response is interpreted as an unknown or invalid request method)
1197   and clients are implemented to only expect a response.
1198</t>
1199<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="HTTP-message"/>
1200  <x:ref>HTTP-message</x:ref>    = <x:ref>start-line</x:ref>
1201                    *( <x:ref>header-field</x:ref> <x:ref>CRLF</x:ref> )
1202                    <x:ref>CRLF</x:ref>
1203                    [ <x:ref>message-body</x:ref> ]
1204  <x:ref>start-line</x:ref>      = <x:ref>Request-Line</x:ref> / <x:ref>Status-Line</x:ref>
1205</artwork></figure>
1206<t>
1207   Implementations &MUST-NOT; send whitespace between the start-line and
1208   the first header field. The presence of such whitespace in a request
1209   might be an attempt to trick a server into ignoring that field or
1210   processing the line after it as a new request, either of which might
1211   result in a security vulnerability if other implementations within
1212   the request chain interpret the same message differently.
1213   Likewise, the presence of such whitespace in a response might be
1214   ignored by some clients or cause others to cease parsing.
1215</t>
1216
1217<section title="Message Parsing Robustness" anchor="message.robustness">
1218<t>
1219   In the interest of robustness, servers &SHOULD; ignore at least one
1220   empty line received where a Request-Line is expected. In other words, if
1221   the server is reading the protocol stream at the beginning of a
1222   message and receives a CRLF first, it &SHOULD; ignore the CRLF.
1223</t>
1224<t>
1225   Some old HTTP/1.0 client implementations send an extra CRLF
1226   after a POST request as a lame workaround for some early server
1227   applications that failed to read message-body content that was
1228   not terminated by a line-ending. An HTTP/1.1 client &MUST-NOT;
1229   preface or follow a request with an extra CRLF.  If terminating
1230   the request message-body with a line-ending is desired, then the
1231   client &MUST; include the terminating CRLF octets as part of the
1232   message-body length.
1233</t>
1234<t>
1235   When a server listening only for HTTP request messages, or processing
1236   what appears from the start-line to be an HTTP request message,
1237   receives a sequence of octets that does not match the HTTP-message
1238   grammar aside from the robustness exceptions listed above, the
1239   server &MUST; respond with an HTTP/1.1 400 (Bad Request) response. 
1240</t>
1241<t>
1242   The normal procedure for parsing an HTTP message is to read the
1243   start-line into a structure, read each header field into a hash
1244   table by field name until the empty line, and then use the parsed
1245   data to determine if a message-body is expected.  If a message-body
1246   has been indicated, then it is read as a stream until an amount
1247   of octets equal to the message-body length is read or the connection
1248   is closed.  Care must be taken to parse an HTTP message as a sequence
1249   of octets in an encoding that is a superset of US-ASCII.  Attempting
1250   to parse HTTP as a stream of Unicode characters in a character encoding
1251   like UTF-16 might introduce security flaws due to the differing ways
1252   that such parsers interpret invalid characters.
1253</t>
1254<t>
1255   HTTP allows the set of defined header fields to be extended without
1256   changing the protocol version (see <xref target="header.field.registration"/>).
1257   Unrecognized header fields &MUST; be forwarded by a proxy unless the
1258   proxy is specifically configured to block or otherwise transform such
1259   fields.  Unrecognized header fields &SHOULD; be ignored by other recipients.
1260</t>
1261</section>
1262
1263<section title="Header Fields" anchor="header.fields">
1264  <x:anchor-alias value="header-field"/>
1265  <x:anchor-alias value="field-content"/>
1266  <x:anchor-alias value="field-name"/>
1267  <x:anchor-alias value="field-value"/>
1268  <x:anchor-alias value="OWS"/>
1269<t>
1270   Each HTTP header field consists of a case-insensitive field name
1271   followed by a colon (":"), optional whitespace, and the field value.
1272</t>
1273<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="header-field"/><iref primary="true" item="Grammar" subitem="field-name"/><iref primary="true" item="Grammar" subitem="field-value"/><iref primary="true" item="Grammar" subitem="field-content"/>
1274  <x:ref>header-field</x:ref>   = <x:ref>field-name</x:ref> ":" <x:ref>OWS</x:ref> [ <x:ref>field-value</x:ref> ] <x:ref>OWS</x:ref>
1275  <x:ref>field-name</x:ref>     = <x:ref>token</x:ref>
1276  <x:ref>field-value</x:ref>    = *( <x:ref>field-content</x:ref> / <x:ref>OWS</x:ref> )
1277  <x:ref>field-content</x:ref>  = *( <x:ref>WSP</x:ref> / <x:ref>VCHAR</x:ref> / <x:ref>obs-text</x:ref> )
1278</artwork></figure>
1279<t>
1280   No whitespace is allowed between the header field name and colon. For
1281   security reasons, any request message received containing such whitespace
1282   &MUST; be rejected with a response code of 400 (Bad Request). A proxy
1283   &MUST; remove any such whitespace from a response message before
1284   forwarding the message downstream.
1285</t>
1286<t>
1287   A field value &MAY; be preceded by optional whitespace (OWS); a single SP is
1288   preferred. The field value does not include any leading or trailing white
1289   space: OWS occurring before the first non-whitespace octet of the
1290   field value or after the last non-whitespace octet of the field value
1291   is ignored and &SHOULD; be removed before further processing (as this does
1292   not change the meaning of the header field).
1293</t>
1294<t>
1295   The order in which header fields with differing field names are
1296   received is not significant. However, it is "good practice" to send
1297   header fields that contain control data first, such as Host on
1298   requests and Date on responses, so that implementations can decide
1299   when not to handle a message as early as possible.  A server &MUST;
1300   wait until the entire header section is received before interpreting
1301   a request message, since later header fields might include conditionals,
1302   authentication credentials, or deliberately misleading duplicate
1303   header fields that would impact request processing.
1304</t>
1305<t>
1306   Multiple header fields with the same field name &MUST-NOT; be
1307   sent in a message unless the entire field value for that
1308   header field is defined as a comma-separated list [i.e., #(values)].
1309   Multiple header fields with the same field name can be combined into
1310   one "field-name: field-value" pair, without changing the semantics of the
1311   message, by appending each subsequent field value to the combined
1312   field value in order, separated by a comma. The order in which
1313   header fields with the same field name are received is therefore
1314   significant to the interpretation of the combined field value;
1315   a proxy &MUST-NOT; change the order of these field values when
1316   forwarding a message.
1317</t>
1318<x:note>
1319  <t>
1320   <x:h>Note:</x:h> The "Set-Cookie" header field as implemented in
1321   practice can occur multiple times, but does not use the list syntax, and
1322   thus cannot be combined into a single line (<xref target="RFC6265"/>). (See Appendix A.2.3 of <xref target="Kri2001"/>
1323   for details.) Also note that the Set-Cookie2 header field specified in
1324   <xref target="RFC2965"/> does not share this problem.
1325  </t>
1326</x:note>
1327<t>
1328   Historically, HTTP header field values could be extended over multiple
1329   lines by preceding each extra line with at least one space or horizontal
1330   tab octet (line folding). This specification deprecates such line
1331   folding except within the message/http media type
1332   (<xref target="internet.media.type.message.http"/>).
1333   HTTP/1.1 senders &MUST-NOT; produce messages that include line folding
1334   (i.e., that contain any field-content that matches the obs-fold rule) unless
1335   the message is intended for packaging within the message/http media type.
1336   HTTP/1.1 recipients &SHOULD; accept line folding and replace any embedded
1337   obs-fold whitespace with a single SP prior to interpreting the field value
1338   or forwarding the message downstream.
1339</t>
1340<t>
1341   Historically, HTTP has allowed field content with text in the ISO-8859-1
1342   <xref target="ISO-8859-1"/> character encoding and supported other
1343   character sets only through use of <xref target="RFC2047"/> encoding.
1344   In practice, most HTTP header field values use only a subset of the
1345   US-ASCII character encoding <xref target="USASCII"/>. Newly defined
1346   header fields &SHOULD; limit their field values to US-ASCII octets.
1347   Recipients &SHOULD; treat other (obs-text) octets in field content as
1348   opaque data.
1349</t>
1350<t anchor="rule.comment">
1351  <x:anchor-alias value="comment"/>
1352  <x:anchor-alias value="ctext"/>
1353   Comments can be included in some HTTP header fields by surrounding
1354   the comment text with parentheses. Comments are only allowed in
1355   fields containing "comment" as part of their field value definition.
1356</t>
1357<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="comment"/><iref primary="true" item="Grammar" subitem="ctext"/>
1358  <x:ref>comment</x:ref>        = "(" *( <x:ref>ctext</x:ref> / <x:ref>quoted-cpair</x:ref> / <x:ref>comment</x:ref> ) ")"
1359  <x:ref>ctext</x:ref>          = <x:ref>OWS</x:ref> / %x21-27 / %x2A-5B / %x5D-7E / <x:ref>obs-text</x:ref>
1360                 ; <x:ref>OWS</x:ref> / &lt;<x:ref>VCHAR</x:ref> except "(", ")", and "\"&gt; / <x:ref>obs-text</x:ref>
1361</artwork></figure>
1362<t anchor="rule.quoted-cpair">
1363  <x:anchor-alias value="quoted-cpair"/>
1364   The backslash octet ("\") can be used as a single-octet
1365   quoting mechanism within comment constructs:
1366</t>
1367<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="quoted-cpair"/>
1368  <x:ref>quoted-cpair</x:ref>    = "\" ( <x:ref>WSP</x:ref> / <x:ref>VCHAR</x:ref> / <x:ref>obs-text</x:ref> )
1369</artwork></figure>
1370<t>
1371   Senders &SHOULD-NOT; escape octets that do not require escaping
1372   (i.e., other than the backslash octet "\" and the parentheses "(" and
1373   ")").
1374</t>
1375<t>
1376   HTTP does not place a pre-defined limit on the length of header fields,
1377   either in isolation or as a set. A server &MUST; be prepared to receive
1378   request header fields of unbounded length and respond with a 4xx status
1379   code if the received header field(s) would be longer than the server wishes
1380   to handle.
1381</t>
1382<t>
1383   A client that receives response headers that are longer than it wishes to
1384   handle can only treat it as a server error.
1385</t>
1386<t>
1387   Various ad-hoc limitations on header length are found in practice. It is
1388   &RECOMMENDED; that all HTTP senders and recipients support messages whose
1389   combined header fields have 4000 or more octets.
1390</t>
1391</section>
1392
1393<section title="Message Body" anchor="message.body">
1394  <x:anchor-alias value="message-body"/>
1395<t>
1396   The message-body (if any) of an HTTP message is used to carry the
1397   payload body associated with the request or response.
1398</t>
1399<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="message-body"/>
1400  <x:ref>message-body</x:ref> = *OCTET
1401</artwork></figure>
1402<t>
1403   The message-body differs from the payload body only when a transfer-coding
1404   has been applied, as indicated by the Transfer-Encoding header field
1405   (<xref target="header.transfer-encoding"/>).  If more than one
1406   Transfer-Encoding header field is present in a message, the multiple
1407   field-values &MUST; be combined into one field-value, according to the
1408   algorithm defined in <xref target="header.fields"/>, before determining
1409   the message-body length.
1410</t>
1411<t>
1412   When one or more transfer-codings are applied to a payload in order to
1413   form the message-body, the Transfer-Encoding header field &MUST; contain
1414   the list of transfer-codings applied. Transfer-Encoding is a property of
1415   the message, not of the payload, and thus &MAY; be added or removed by
1416   any implementation along the request/response chain under the constraints
1417   found in <xref target="transfer.codings"/>.
1418</t>
1419<t>
1420   If a message is received that has multiple Content-Length header fields
1421   (<xref target="header.content-length"/>) with field-values consisting
1422   of the same decimal value, or a single Content-Length header field with
1423   a field value containing a list of identical decimal values (e.g.,
1424   "Content-Length: 42, 42"), indicating that duplicate Content-Length
1425   header fields have been generated or combined by an upstream message
1426   processor, then the recipient &MUST; either reject the message as invalid
1427   or replace the duplicated field-values with a single valid Content-Length
1428   field containing that decimal value prior to determining the message-body
1429   length.
1430</t>
1431<t>
1432   The rules for when a message-body is allowed in a message differ for
1433   requests and responses.
1434</t>
1435<t>
1436   The presence of a message-body in a request is signaled by the
1437   inclusion of a Content-Length or Transfer-Encoding header field in
1438   the request's header fields, even if the request method does not
1439   define any use for a message-body.  This allows the request
1440   message framing algorithm to be independent of method semantics.
1441</t>
1442<t>
1443   For response messages, whether or not a message-body is included with
1444   a message is dependent on both the request method and the response
1445   status code (<xref target="status.code.and.reason.phrase"/>).
1446   Responses to the HEAD request method never include a message-body
1447   because the associated response header fields (e.g., Transfer-Encoding,
1448   Content-Length, etc.) only indicate what their values would have been
1449   if the request method had been GET.  All 1xx (Informational), 204 (No Content),
1450   and 304 (Not Modified) responses &MUST-NOT; include a message-body.
1451   All other responses do include a message-body, although the body
1452   &MAY; be of zero length.
1453</t>
1454<t>
1455   The length of the message-body is determined by one of the following
1456   (in order of precedence):
1457</t>
1458<t>
1459  <list style="numbers">
1460    <x:lt><t>
1461     Any response to a HEAD request and any response with a status
1462     code of 100-199, 204, or 304 is always terminated by the first
1463     empty line after the header fields, regardless of the header
1464     fields present in the message, and thus cannot contain a message-body.
1465    </t></x:lt>
1466    <x:lt><t>
1467     If a Transfer-Encoding header field is present
1468     and the "chunked" transfer-coding (<xref target="transfer.codings"/>)
1469     is the final encoding, the message-body length is determined by reading
1470     and decoding the chunked data until the transfer-coding indicates the
1471     data is complete.
1472    </t>
1473    <t>
1474     If a Transfer-Encoding header field is present in a response and the
1475     "chunked" transfer-coding is not the final encoding, the message-body
1476     length is determined by reading the connection until it is closed by
1477     the server.
1478     If a Transfer-Encoding header field is present in a request and the
1479     "chunked" transfer-coding is not the final encoding, the message-body
1480     length cannot be determined reliably; the server &MUST; respond with
1481     the 400 (Bad Request) status code and then close the connection.
1482    </t>
1483    <t>
1484     If a message is received with both a Transfer-Encoding header field
1485     and a Content-Length header field, the Transfer-Encoding overrides
1486     the Content-Length.
1487     Such a message might indicate an attempt to perform request or response
1488     smuggling (bypass of security-related checks on message routing or content)
1489     and thus ought to be handled as an error.  The provided Content-Length &MUST;
1490     be removed, prior to forwarding the message downstream, or replaced with
1491     the real message-body length after the transfer-coding is decoded.
1492    </t></x:lt>
1493    <x:lt><t>
1494     If a message is received without Transfer-Encoding and with either
1495     multiple Content-Length header fields having differing field-values or
1496     a single Content-Length header field having an invalid value, then the
1497     message framing is invalid and &MUST; be treated as an error to
1498     prevent request or response smuggling.
1499     If this is a request message, the server &MUST; respond with
1500     a 400 (Bad Request) status code and then close the connection.
1501     If this is a response message received by a proxy, the proxy
1502     &MUST; discard the received response, send a 502 (Bad Gateway)
1503     status code as its downstream response, and then close the connection.
1504     If this is a response message received by a user-agent, it &MUST; be
1505     treated as an error by discarding the message and closing the connection.
1506    </t></x:lt>
1507    <x:lt><t>
1508     If a valid Content-Length header field
1509     is present without Transfer-Encoding, its decimal value defines the
1510     message-body length in octets.  If the actual number of octets sent in
1511     the message is less than the indicated Content-Length, the recipient
1512     &MUST; consider the message to be incomplete and treat the connection
1513     as no longer usable.
1514     If the actual number of octets sent in the message is more than the indicated
1515     Content-Length, the recipient &MUST; only process the message-body up to the
1516     field value's number of octets; the remainder of the message &MUST; either
1517     be discarded or treated as the next message in a pipeline.  For the sake of
1518     robustness, a user-agent &MAY; attempt to detect and correct such an error
1519     in message framing if it is parsing the response to the last request on
1520     a connection and the connection has been closed by the server.
1521    </t></x:lt>
1522    <x:lt><t>
1523     If this is a request message and none of the above are true, then the
1524     message-body length is zero (no message-body is present).
1525    </t></x:lt>
1526    <x:lt><t>
1527     Otherwise, this is a response message without a declared message-body
1528     length, so the message-body length is determined by the number of octets
1529     received prior to the server closing the connection.
1530    </t></x:lt>
1531  </list>
1532</t>
1533<t>
1534   Since there is no way to distinguish a successfully completed,
1535   close-delimited message from a partially-received message interrupted
1536   by network failure, implementations &SHOULD; use encoding or
1537   length-delimited messages whenever possible.  The close-delimiting
1538   feature exists primarily for backwards compatibility with HTTP/1.0.
1539</t>
1540<t>
1541   A server &MAY; reject a request that contains a message-body but
1542   not a Content-Length by responding with 411 (Length Required).
1543</t>
1544<t>
1545   Unless a transfer-coding other than "chunked" has been applied,
1546   a client that sends a request containing a message-body &SHOULD;
1547   use a valid Content-Length header field if the message-body length
1548   is known in advance, rather than the "chunked" encoding, since some
1549   existing services respond to "chunked" with a 411 (Length Required)
1550   status code even though they understand the chunked encoding.  This
1551   is typically because such services are implemented via a gateway that
1552   requires a content-length in advance of being called and the server
1553   is unable or unwilling to buffer the entire request before processing.
1554</t>
1555<t>
1556   A client that sends a request containing a message-body &MUST; include a
1557   valid Content-Length header field if it does not know the server will
1558   handle HTTP/1.1 (or later) requests; such knowledge can be in the form
1559   of specific user configuration or by remembering the version of a prior
1560   received response.
1561</t>
1562<t>
1563   Request messages that are prematurely terminated, possibly due to a
1564   cancelled connection or a server-imposed time-out exception, &MUST;
1565   result in closure of the connection; sending an HTTP/1.1 error response
1566   prior to closing the connection is &OPTIONAL;.
1567   Response messages that are prematurely terminated, usually by closure
1568   of the connection prior to receiving the expected number of octets or by
1569   failure to decode a transfer-encoded message-body, &MUST; be recorded
1570   as incomplete.  A user agent &MUST-NOT; render an incomplete response
1571   message-body as if it were complete (i.e., some indication must be given
1572   to the user that an error occurred).  Cache requirements for incomplete
1573   responses are defined in &cache-incomplete;.
1574</t>
1575<t>
1576   A server &MUST; read the entire request message-body or close
1577   the connection after sending its response, since otherwise the
1578   remaining data on a persistent connection would be misinterpreted
1579   as the next request.  Likewise,
1580   a client &MUST; read the entire response message-body if it intends
1581   to reuse the same connection for a subsequent request.  Pipelining
1582   multiple requests on a connection is described in <xref target="pipelining"/>.
1583</t>
1584</section>
1585
1586<section title="General Header Fields" anchor="general.header.fields">
1587  <x:anchor-alias value="general-header"/>
1588<t>
1589   There are a few header fields which have general applicability for
1590   both request and response messages, but which do not apply to the
1591   payload being transferred. These header fields apply only to the
1592   message being transmitted.
1593</t>
1594<texttable align="left">
1595  <ttcol>Header Field Name</ttcol>
1596  <ttcol>Defined in...</ttcol>
1597 
1598  <c>Connection</c> <c><xref target="header.connection"/></c>
1599  <c>Date</c> <c><xref target="header.date"/></c>
1600  <c>Trailer</c> <c><xref target="header.trailer"/></c>
1601  <c>Transfer-Encoding</c> <c><xref target="header.transfer-encoding"/></c>
1602  <c>Upgrade</c> <c><xref target="header.upgrade"/></c>
1603  <c>Via</c> <c><xref target="header.via"/></c>
1604</texttable>
1605</section>
1606</section>
1607
1608<section title="Request" anchor="request">
1609  <x:anchor-alias value="Request"/>
1610<t>
1611   A request message from a client to a server begins with a
1612   Request-Line, followed by zero or more header fields, an empty
1613   line signifying the end of the header block, and an optional
1614   message body.
1615</t>
1616<!--                 Host                      ; should be moved here eventually -->
1617<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Request"/>
1618  <x:ref>Request</x:ref>       = <x:ref>Request-Line</x:ref>              ; <xref target="request-line"/>
1619                  *( <x:ref>header-field</x:ref> <x:ref>CRLF</x:ref> )    ; <xref target="header.fields"/>
1620                  <x:ref>CRLF</x:ref>
1621                  [ <x:ref>message-body</x:ref> ]          ; <xref target="message.body"/>
1622</artwork></figure>
1623
1624<section title="Request-Line" anchor="request-line">
1625  <x:anchor-alias value="Request-Line"/>
1626<t>
1627   The Request-Line begins with a method token, followed by a single
1628   space (SP), the request-target, another single space (SP), the
1629   protocol version, and ending with CRLF.
1630</t>
1631<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Request-Line"/>
1632  <x:ref>Request-Line</x:ref>   = <x:ref>Method</x:ref> <x:ref>SP</x:ref> <x:ref>request-target</x:ref> <x:ref>SP</x:ref> <x:ref>HTTP-Version</x:ref> <x:ref>CRLF</x:ref>
1633</artwork></figure>
1634
1635<section title="Method" anchor="method">
1636  <x:anchor-alias value="Method"/>
1637<t>
1638   The Method token indicates the request method to be performed on the
1639   target resource. The request method is case-sensitive.
1640</t>
1641<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Method"/>
1642  <x:ref>Method</x:ref>         = <x:ref>token</x:ref>
1643</artwork></figure>
1644</section>
1645
1646<section title="request-target" anchor="request-target">
1647  <x:anchor-alias value="request-target"/>
1648<t>
1649   The request-target identifies the target resource upon which to apply
1650   the request.  In most cases, the user agent is provided a URI reference
1651   from which it determines an absolute URI for identifying the target
1652   resource.  When a request to the resource is initiated, all or part
1653   of that URI is used to construct the HTTP request-target.
1654</t>
1655<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="request-target"/>
1656  <x:ref>request-target</x:ref> = "*"
1657                 / <x:ref>absolute-URI</x:ref>
1658                 / ( <x:ref>path-absolute</x:ref> [ "?" <x:ref>query</x:ref> ] )
1659                 / <x:ref>authority</x:ref>
1660</artwork></figure>
1661<t>
1662   The four options for request-target are dependent on the nature of the
1663   request.
1664</t>   
1665<t><iref item="asterisk form (of request-target)"/>
1666   The asterisk "*" form of request-target, which &MUST-NOT; be used
1667   with any request method other than OPTIONS, means that the request
1668   applies to the server as a whole (the listening process) rather than
1669   to a specific named resource at that server.  For example,
1670</t>
1671<figure><artwork type="message/http; msgtype=&#34;request&#34;" x:indent-with="  ">
1672OPTIONS * HTTP/1.1
1673</artwork></figure>
1674<t><iref item="absolute-URI form (of request-target)"/>
1675   The "absolute-URI" form is &REQUIRED; when the request is being made to a
1676   proxy. The proxy is requested to either forward the request or service it
1677   from a valid cache, and then return the response. Note that the proxy &MAY;
1678   forward the request on to another proxy or directly to the server
1679   specified by the absolute-URI. In order to avoid request loops, a
1680   proxy that forwards requests to other proxies &MUST; be able to
1681   recognize and exclude all of its own server names, including
1682   any aliases, local variations, and the numeric IP address. An example
1683   Request-Line would be:
1684</t>
1685<figure><artwork type="message/http; msgtype=&#34;request&#34;" x:indent-with="  ">
1686GET http://www.example.org/pub/WWW/TheProject.html HTTP/1.1
1687</artwork></figure>
1688<t>
1689   To allow for transition to absolute-URIs in all requests in future
1690   versions of HTTP, all HTTP/1.1 servers &MUST; accept the absolute-URI
1691   form in requests, even though HTTP/1.1 clients will only generate
1692   them in requests to proxies.
1693</t>
1694<t>
1695   If a proxy receives a host name that is not a fully qualified domain
1696   name, it &MAY; add its domain to the host name it received. If a proxy
1697   receives a fully qualified domain name, the proxy &MUST-NOT; change
1698   the host name.
1699</t>
1700<t><iref item="authority form (of request-target)"/>
1701   The "authority form" is only used by the CONNECT request method (&CONNECT;).
1702</t>
1703<t><iref item="origin form (of request-target)"/>
1704   The most common form of request-target is that used when making
1705   a request to an origin server ("origin form").
1706   In this case, the absolute path and query components of the URI
1707   &MUST; be transmitted as the request-target, and the authority component
1708   &MUST; be transmitted in a Host header field. For example, a client wishing
1709   to retrieve a representation of the resource, as identified above,
1710   directly from the origin server would open (or reuse) a TCP connection
1711   to port 80 of the host "www.example.org" and send the lines:
1712</t>
1713<figure><artwork type="message/http; msgtype=&#34;request&#34;" x:indent-with="  ">
1714GET /pub/WWW/TheProject.html HTTP/1.1
1715Host: www.example.org
1716</artwork></figure>
1717<t>
1718   followed by the remainder of the Request. Note that the origin form
1719   of request-target always starts with an absolute path; if the target
1720   resource's URI path is empty, then an absolute path of "/" &MUST; be
1721   provided in the request-target.
1722</t>
1723<t>
1724   If a proxy receives an OPTIONS request with an absolute-URI form of
1725   request-target in which the URI has an empty path and no query component,
1726   then the last proxy on the request chain &MUST; use a request-target
1727   of "*" when it forwards the request to the indicated origin server.
1728</t>
1729<figure><preamble>   
1730   For example, the request
1731</preamble><artwork type="message/http; msgtype=&#34;request&#34;" x:indent-with="  ">
1732OPTIONS http://www.example.org:8001 HTTP/1.1
1733</artwork></figure>
1734<figure><preamble>   
1735  would be forwarded by the final proxy as
1736</preamble><artwork type="message/http; msgtype=&#34;request&#34;" x:indent-with="  ">
1737OPTIONS * HTTP/1.1
1738Host: www.example.org:8001
1739</artwork>
1740<postamble>
1741   after connecting to port 8001 of host "www.example.org".
1742</postamble>
1743</figure>
1744<t>
1745   The request-target is transmitted in the format specified in
1746   <xref target="http.uri"/>. If the request-target is percent-encoded
1747   (<xref target="RFC3986" x:fmt="," x:sec="2.1"/>), the origin server
1748   &MUST; decode the request-target in order to
1749   properly interpret the request. Servers &SHOULD; respond to invalid
1750   request-targets with an appropriate status code.
1751</t>
1752<t>
1753   A non-transforming proxy &MUST-NOT; rewrite the "path-absolute" part of the
1754   received request-target when forwarding it to the next inbound server,
1755   except as noted above to replace a null path-absolute with "/" or "*".
1756</t>
1757<x:note>
1758  <t>
1759    <x:h>Note:</x:h> The "no rewrite" rule prevents the proxy from changing the
1760    meaning of the request when the origin server is improperly using
1761    a non-reserved URI character for a reserved purpose.  Implementors
1762    need to be aware that some pre-HTTP/1.1 proxies have been known to
1763    rewrite the request-target.
1764  </t>
1765</x:note>
1766<t>
1767   HTTP does not place a pre-defined limit on the length of a request-target.
1768   A server &MUST; be prepared to receive URIs of unbounded length and
1769   respond with the 414 (URI Too Long) status code if the received
1770   request-target would be longer than the server wishes to handle
1771   (see &status-414;).
1772</t>
1773<t>
1774   Various ad-hoc limitations on request-target length are found in practice.
1775   It is &RECOMMENDED; that all HTTP senders and recipients support
1776   request-target lengths of 8000 or more octets.
1777</t>
1778<x:note>
1779  <t>
1780    <x:h>Note:</x:h> Fragments (<xref target="RFC3986" x:fmt="," x:sec="3.5"/>)
1781    are not part of the request-target and thus will not be transmitted
1782    in an HTTP request.
1783  </t>
1784</x:note>
1785</section>
1786</section>
1787
1788<section title="The Resource Identified by a Request" anchor="the.resource.identified.by.a.request">
1789<t>
1790   The exact resource identified by an Internet request is determined by
1791   examining both the request-target and the Host header field.
1792</t>
1793<t>
1794   An origin server that does not allow resources to differ by the
1795   requested host &MAY; ignore the Host header field value when
1796   determining the resource identified by an HTTP/1.1 request. (But see
1797   <xref target="changes.to.simplify.multi-homed.web.servers.and.conserve.ip.addresses"/>
1798   for other requirements on Host support in HTTP/1.1.)
1799</t>
1800<t>
1801   An origin server that does differentiate resources based on the host
1802   requested (sometimes referred to as virtual hosts or vanity host
1803   names) &MUST; use the following rules for determining the requested
1804   resource on an HTTP/1.1 request:
1805  <list style="numbers">
1806    <t>If request-target is an absolute-URI, the host is part of the
1807     request-target. Any Host header field value in the request &MUST; be
1808     ignored.</t>
1809    <t>If the request-target is not an absolute-URI, and the request includes
1810     a Host header field, the host is determined by the Host header
1811     field value.</t>
1812    <t>If the host as determined by rule 1 or 2 is not a valid host on
1813     the server, the response &MUST; be a 400 (Bad Request) error message.</t>
1814  </list>
1815</t>
1816<t>
1817   Recipients of an HTTP/1.0 request that lacks a Host header field &MAY;
1818   attempt to use heuristics (e.g., examination of the URI path for
1819   something unique to a particular host) in order to determine what
1820   exact resource is being requested.
1821</t>
1822</section>
1823
1824<section title="Effective Request URI" anchor="effective.request.uri">
1825  <iref primary="true" item="effective request URI"/>
1826  <iref primary="true" item="target resource"/>
1827<t>
1828   HTTP requests often do not carry the absolute URI (<xref target="RFC3986" x:fmt="," x:sec="4.3"/>)
1829   for the target resource; instead, the URI needs to be inferred from the
1830   request-target, Host header field, and connection context. The result of
1831   this process is called the "effective request URI".  The "target resource"
1832   is the resource identified by the effective request URI.
1833</t>
1834<t>
1835   If the request-target is an absolute-URI, then the effective request URI is
1836   the request-target.
1837</t>
1838<t>
1839   If the request-target uses the path-absolute form or the asterisk form,
1840   and the Host header field is present, then the effective request URI is
1841   constructed by concatenating
1842</t>
1843<t>
1844  <list style="symbols">
1845    <t>
1846      the scheme name: "http" if the request was received over an insecure
1847      TCP connection, or "https" when received over a SSL/TLS-secured TCP
1848      connection,
1849    </t>
1850    <t>
1851      the octet sequence "://",
1852    </t>
1853    <t>
1854      the authority component, as specified in the Host header field
1855      (<xref target="header.host"/>), and
1856    </t>
1857    <t>
1858      the request-target obtained from the Request-Line, unless the
1859      request-target is just the asterisk "*".
1860    </t>
1861  </list>
1862</t>
1863<t>
1864   If the request-target uses the path-absolute form or the asterisk form,
1865   and the Host header field is not present, then the effective request URI is
1866   undefined.
1867</t>
1868<t>
1869   Otherwise, when request-target uses the authority form, the effective
1870   request URI is undefined.
1871</t>
1872<figure>
1873<preamble>
1874   Example 1: the effective request URI for the message
1875</preamble> 
1876<artwork type="example" x:indent-with="  ">
1877GET /pub/WWW/TheProject.html HTTP/1.1
1878Host: www.example.org:8080
1879</artwork>
1880<postamble>
1881  (received over an insecure TCP connection) is "http", plus "://", plus the
1882  authority component "www.example.org:8080", plus the request-target
1883  "/pub/WWW/TheProject.html", thus
1884  "http://www.example.org:8080/pub/WWW/TheProject.html".
1885</postamble>
1886</figure>
1887<figure>
1888<preamble>
1889   Example 2: the effective request URI for the message
1890</preamble> 
1891<artwork type="example" x:indent-with="  ">
1892OPTIONS * HTTP/1.1
1893Host: www.example.org
1894</artwork>
1895<postamble>
1896  (received over an SSL/TLS secured TCP connection) is "https", plus "://", plus the
1897  authority component "www.example.org", thus "https://www.example.org".
1898</postamble>
1899</figure>
1900<t>
1901   Effective request URIs are compared using the rules described in
1902   <xref target="uri.comparison"/>, except that empty path components &MUST-NOT;
1903   be treated as equivalent to an absolute path of "/".
1904</t> 
1905</section>
1906
1907</section>
1908
1909
1910<section title="Response" anchor="response">
1911  <x:anchor-alias value="Response"/>
1912<t>
1913   After receiving and interpreting a request message, a server responds
1914   with an HTTP response message.
1915</t>
1916<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Response"/>
1917  <x:ref>Response</x:ref>      = <x:ref>Status-Line</x:ref>               ; <xref target="status-line"/>
1918                  *( <x:ref>header-field</x:ref> <x:ref>CRLF</x:ref> )    ; <xref target="header.fields"/>
1919                  <x:ref>CRLF</x:ref>
1920                  [ <x:ref>message-body</x:ref> ]          ; <xref target="message.body"/>
1921</artwork></figure>
1922
1923<section title="Status-Line" anchor="status-line">
1924  <x:anchor-alias value="Status-Line"/>
1925<t>
1926   The first line of a Response message is the Status-Line, consisting
1927   of the protocol version, a space (SP), the status code, another space,
1928   a possibly-empty textual phrase describing the status code, and
1929   ending with CRLF.
1930</t>
1931<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Status-Line"/>
1932  <x:ref>Status-Line</x:ref> = <x:ref>HTTP-Version</x:ref> <x:ref>SP</x:ref> <x:ref>Status-Code</x:ref> <x:ref>SP</x:ref> <x:ref>Reason-Phrase</x:ref> <x:ref>CRLF</x:ref>
1933</artwork></figure>
1934
1935<section title="Status Code and Reason Phrase" anchor="status.code.and.reason.phrase">
1936  <x:anchor-alias value="Reason-Phrase"/>
1937  <x:anchor-alias value="Status-Code"/>
1938<t>
1939   The Status-Code element is a 3-digit integer result code of the
1940   attempt to understand and satisfy the request. These codes are fully
1941   defined in &status-codes;.  The Reason Phrase exists for the sole
1942   purpose of providing a textual description associated with the numeric
1943   status code, out of deference to earlier Internet application protocols
1944   that were more frequently used with interactive text clients.
1945   A client &SHOULD; ignore the content of the Reason Phrase.
1946</t>
1947<t>
1948   The first digit of the Status-Code defines the class of response. The
1949   last two digits do not have any categorization role. There are 5
1950   values for the first digit:
1951  <list style="symbols">
1952    <t>
1953      1xx: Informational - Request received, continuing process
1954    </t>
1955    <t>
1956      2xx: Success - The action was successfully received,
1957        understood, and accepted
1958    </t>
1959    <t>
1960      3xx: Redirection - Further action must be taken in order to
1961        complete the request
1962    </t>
1963    <t>
1964      4xx: Client Error - The request contains bad syntax or cannot
1965        be fulfilled
1966    </t>
1967    <t>
1968      5xx: Server Error - The server failed to fulfill an apparently
1969        valid request
1970    </t>
1971  </list>
1972</t>
1973<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Status-Code"/><iref primary="true" item="Grammar" subitem="Reason-Phrase"/>
1974  <x:ref>Status-Code</x:ref>    = 3<x:ref>DIGIT</x:ref>
1975  <x:ref>Reason-Phrase</x:ref>  = *( <x:ref>WSP</x:ref> / <x:ref>VCHAR</x:ref> / <x:ref>obs-text</x:ref> )
1976</artwork></figure>
1977</section>
1978</section>
1979
1980</section>
1981
1982
1983<section title="Protocol Parameters" anchor="protocol.parameters">
1984
1985<section title="Date/Time Formats: Full Date" anchor="date.time.formats.full.date">
1986  <x:anchor-alias value="HTTP-date"/>
1987<t>
1988   HTTP applications have historically allowed three different formats
1989   for date/time stamps. However, the preferred format is a fixed-length subset
1990   of that defined by <xref target="RFC1123"/>:
1991</t>
1992<figure><artwork type="example" x:indent-with="  ">
1993Sun, 06 Nov 1994 08:49:37 GMT  ; RFC 1123
1994</artwork></figure>
1995<t>
1996   The other formats are described here only for compatibility with obsolete
1997   implementations.
1998</t>
1999<figure><artwork type="example" x:indent-with="  ">
2000Sunday, 06-Nov-94 08:49:37 GMT ; obsolete RFC 850 format
2001Sun Nov  6 08:49:37 1994       ; ANSI C's asctime() format
2002</artwork></figure>
2003<t>
2004   HTTP/1.1 clients and servers that parse a date value &MUST; accept
2005   all three formats (for compatibility with HTTP/1.0), though they &MUST;
2006   only generate the RFC 1123 format for representing HTTP-date values
2007   in header fields. See <xref target="tolerant.applications"/> for further information.
2008</t>
2009<t>
2010   All HTTP date/time stamps &MUST; be represented in Greenwich Mean Time
2011   (GMT), without exception. For the purposes of HTTP, GMT is exactly
2012   equal to UTC (Coordinated Universal Time). This is indicated in the
2013   first two formats by the inclusion of "GMT" as the three-letter
2014   abbreviation for time zone, and &MUST; be assumed when reading the
2015   asctime format. HTTP-date is case sensitive and &MUST-NOT; include
2016   additional whitespace beyond that specifically included as SP in the
2017   grammar.
2018</t>
2019<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="HTTP-date"/>
2020  <x:ref>HTTP-date</x:ref>    = <x:ref>rfc1123-date</x:ref> / <x:ref>obs-date</x:ref>
2021</artwork></figure>
2022<t anchor="preferred.date.format">
2023  <x:anchor-alias value="rfc1123-date"/>
2024  <x:anchor-alias value="time-of-day"/>
2025  <x:anchor-alias value="hour"/>
2026  <x:anchor-alias value="minute"/>
2027  <x:anchor-alias value="second"/>
2028  <x:anchor-alias value="day-name"/>
2029  <x:anchor-alias value="day"/>
2030  <x:anchor-alias value="month"/>
2031  <x:anchor-alias value="year"/>
2032  <x:anchor-alias value="GMT"/>
2033  Preferred format:
2034</t>
2035<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="rfc1123-date"/><iref primary="true" item="Grammar" subitem="date1"/><iref primary="true" item="Grammar" subitem="time-of-day"/><iref primary="true" item="Grammar" subitem="hour"/><iref primary="true" item="Grammar" subitem="minute"/><iref primary="true" item="Grammar" subitem="second"/><iref primary="true" item="Grammar" subitem="day-name"/><iref primary="true" item="Grammar" subitem="day-name-l"/><iref primary="true" item="Grammar" subitem="day"/><iref primary="true" item="Grammar" subitem="month"/><iref primary="true" item="Grammar" subitem="year"/><iref primary="true" item="Grammar" subitem="GMT"/>
2036  <x:ref>rfc1123-date</x:ref> = <x:ref>day-name</x:ref> "," <x:ref>SP</x:ref> date1 <x:ref>SP</x:ref> <x:ref>time-of-day</x:ref> <x:ref>SP</x:ref> <x:ref>GMT</x:ref>
2037  ; fixed length subset of the format defined in
2038  ; <xref target="RFC1123" x:fmt="of" x:sec="5.2.14"/>
2039 
2040  <x:ref>day-name</x:ref>     = <x:abnf-char-sequence>"Mon"</x:abnf-char-sequence> ; "Mon", case-sensitive
2041               / <x:abnf-char-sequence>"Tue"</x:abnf-char-sequence> ; "Tue", case-sensitive
2042               / <x:abnf-char-sequence>"Wed"</x:abnf-char-sequence> ; "Wed", case-sensitive
2043               / <x:abnf-char-sequence>"Thu"</x:abnf-char-sequence> ; "Thu", case-sensitive
2044               / <x:abnf-char-sequence>"Fri"</x:abnf-char-sequence> ; "Fri", case-sensitive
2045               / <x:abnf-char-sequence>"Sat"</x:abnf-char-sequence> ; "Sat", case-sensitive
2046               / <x:abnf-char-sequence>"Sun"</x:abnf-char-sequence> ; "Sun", case-sensitive
2047               
2048  <x:ref>date1</x:ref>        = <x:ref>day</x:ref> <x:ref>SP</x:ref> <x:ref>month</x:ref> <x:ref>SP</x:ref> <x:ref>year</x:ref>
2049               ; e.g., 02 Jun 1982
2050
2051  <x:ref>day</x:ref>          = 2<x:ref>DIGIT</x:ref>
2052  <x:ref>month</x:ref>        = <x:abnf-char-sequence>"Jan"</x:abnf-char-sequence> ; "Jan", case-sensitive
2053               / <x:abnf-char-sequence>"Feb"</x:abnf-char-sequence> ; "Feb", case-sensitive
2054               / <x:abnf-char-sequence>"Mar"</x:abnf-char-sequence> ; "Mar", case-sensitive
2055               / <x:abnf-char-sequence>"Apr"</x:abnf-char-sequence> ; "Apr", case-sensitive
2056               / <x:abnf-char-sequence>"May"</x:abnf-char-sequence> ; "May", case-sensitive
2057               / <x:abnf-char-sequence>"Jun"</x:abnf-char-sequence> ; "Jun", case-sensitive
2058               / <x:abnf-char-sequence>"Jul"</x:abnf-char-sequence> ; "Jul", case-sensitive
2059               / <x:abnf-char-sequence>"Aug"</x:abnf-char-sequence> ; "Aug", case-sensitive
2060               / <x:abnf-char-sequence>"Sep"</x:abnf-char-sequence> ; "Sep", case-sensitive
2061               / <x:abnf-char-sequence>"Oct"</x:abnf-char-sequence> ; "Oct", case-sensitive
2062               / <x:abnf-char-sequence>"Nov"</x:abnf-char-sequence> ; "Nov", case-sensitive
2063               / <x:abnf-char-sequence>"Dec"</x:abnf-char-sequence> ; "Dec", case-sensitive
2064  <x:ref>year</x:ref>         = 4<x:ref>DIGIT</x:ref>
2065
2066  <x:ref>GMT</x:ref>   = <x:abnf-char-sequence>"GMT"</x:abnf-char-sequence> ; "GMT", case-sensitive
2067
2068  <x:ref>time-of-day</x:ref>  = <x:ref>hour</x:ref> ":" <x:ref>minute</x:ref> ":" <x:ref>second</x:ref>
2069                 ; 00:00:00 - 23:59:59
2070                 
2071  <x:ref>hour</x:ref>         = 2<x:ref>DIGIT</x:ref>               
2072  <x:ref>minute</x:ref>       = 2<x:ref>DIGIT</x:ref>               
2073  <x:ref>second</x:ref>       = 2<x:ref>DIGIT</x:ref>               
2074</artwork></figure>
2075<t>
2076  The semantics of <x:ref>day-name</x:ref>, <x:ref>day</x:ref>,
2077  <x:ref>month</x:ref>, <x:ref>year</x:ref>, and <x:ref>time-of-day</x:ref> are the
2078  same as those defined for the RFC 5322 constructs
2079  with the corresponding name (<xref target="RFC5322" x:fmt="," x:sec="3.3"/>).
2080</t>
2081<t anchor="obsolete.date.formats">
2082  <x:anchor-alias value="obs-date"/>
2083  <x:anchor-alias value="rfc850-date"/>
2084  <x:anchor-alias value="asctime-date"/>
2085  <x:anchor-alias value="date1"/>
2086  <x:anchor-alias value="date2"/>
2087  <x:anchor-alias value="date3"/>
2088  <x:anchor-alias value="rfc1123-date"/>
2089  <x:anchor-alias value="day-name-l"/>
2090  Obsolete formats:
2091</t>
2092<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="obs-date"/>
2093  <x:ref>obs-date</x:ref>     = <x:ref>rfc850-date</x:ref> / <x:ref>asctime-date</x:ref> 
2094</artwork></figure>
2095<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="rfc850-date"/>
2096  <x:ref>rfc850-date</x:ref>  = <x:ref>day-name-l</x:ref> "," <x:ref>SP</x:ref> <x:ref>date2</x:ref> <x:ref>SP</x:ref> <x:ref>time-of-day</x:ref> <x:ref>SP</x:ref> <x:ref>GMT</x:ref>
2097  <x:ref>date2</x:ref>        = <x:ref>day</x:ref> "-" <x:ref>month</x:ref> "-" 2<x:ref>DIGIT</x:ref>
2098                 ; day-month-year (e.g., 02-Jun-82)
2099
2100  <x:ref>day-name-l</x:ref>   = <x:abnf-char-sequence>"Monday"</x:abnf-char-sequence> ; "Monday", case-sensitive
2101         / <x:abnf-char-sequence>"Tuesday"</x:abnf-char-sequence> ; "Tuesday", case-sensitive
2102         / <x:abnf-char-sequence>"Wednesday"</x:abnf-char-sequence> ; "Wednesday", case-sensitive
2103         / <x:abnf-char-sequence>"Thursday"</x:abnf-char-sequence> ; "Thursday", case-sensitive
2104         / <x:abnf-char-sequence>"Friday"</x:abnf-char-sequence> ; "Friday", case-sensitive
2105         / <x:abnf-char-sequence>"Saturday"</x:abnf-char-sequence> ; "Saturday", case-sensitive
2106         / <x:abnf-char-sequence>"Sunday"</x:abnf-char-sequence> ; "Sunday", case-sensitive
2107</artwork></figure>
2108<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="asctime-date"/>
2109  <x:ref>asctime-date</x:ref> = <x:ref>day-name</x:ref> <x:ref>SP</x:ref> <x:ref>date3</x:ref> <x:ref>SP</x:ref> <x:ref>time-of-day</x:ref> <x:ref>SP</x:ref> <x:ref>year</x:ref>
2110  <x:ref>date3</x:ref>        = <x:ref>month</x:ref> <x:ref>SP</x:ref> ( 2<x:ref>DIGIT</x:ref> / ( <x:ref>SP</x:ref> 1<x:ref>DIGIT</x:ref> ))
2111                 ; month day (e.g., Jun  2)
2112</artwork></figure>
2113<x:note>
2114  <t>
2115    <x:h>Note:</x:h> Recipients of date values are encouraged to be robust in
2116    accepting date values that might have been sent by non-HTTP
2117    applications, as is sometimes the case when retrieving or posting
2118    messages via proxies/gateways to SMTP or NNTP.
2119  </t>
2120</x:note>
2121<x:note>
2122  <t>
2123    <x:h>Note:</x:h> HTTP requirements for the date/time stamp format apply only
2124    to their usage within the protocol stream. Clients and servers are
2125    not required to use these formats for user presentation, request
2126    logging, etc.
2127  </t>
2128</x:note>
2129</section>
2130
2131<section title="Transfer Codings" anchor="transfer.codings">
2132  <x:anchor-alias value="transfer-coding"/>
2133  <x:anchor-alias value="transfer-extension"/>
2134<t>
2135   Transfer-coding values are used to indicate an encoding
2136   transformation that has been, can be, or might need to be applied to a
2137   payload body in order to ensure "safe transport" through the network.
2138   This differs from a content coding in that the transfer-coding is a
2139   property of the message rather than a property of the representation
2140   that is being transferred.
2141</t>
2142<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="transfer-coding"/><iref primary="true" item="Grammar" subitem="transfer-extension"/>
2143  <x:ref>transfer-coding</x:ref>         = "chunked" ; <xref target="chunked.encoding"/>
2144                          / "compress" ; <xref target="compress.coding"/>
2145                          / "deflate" ; <xref target="deflate.coding"/>
2146                          / "gzip" ; <xref target="gzip.coding"/>
2147                          / <x:ref>transfer-extension</x:ref>
2148  <x:ref>transfer-extension</x:ref>      = <x:ref>token</x:ref> *( <x:ref>OWS</x:ref> ";" <x:ref>OWS</x:ref> <x:ref>transfer-parameter</x:ref> )
2149</artwork></figure>
2150<t anchor="rule.parameter">
2151  <x:anchor-alias value="attribute"/>
2152  <x:anchor-alias value="transfer-parameter"/>
2153  <x:anchor-alias value="value"/>
2154   Parameters are in the form of attribute/value pairs.
2155</t>
2156<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="transfer-parameter"/><iref primary="true" item="Grammar" subitem="attribute"/><iref primary="true" item="Grammar" subitem="value"/><iref primary="true" item="Grammar" subitem="date2"/><iref primary="true" item="Grammar" subitem="date3"/>
2157  <x:ref>transfer-parameter</x:ref>      = <x:ref>attribute</x:ref> <x:ref>BWS</x:ref> "=" <x:ref>BWS</x:ref> <x:ref>value</x:ref>
2158  <x:ref>attribute</x:ref>               = <x:ref>token</x:ref>
2159  <x:ref>value</x:ref>                   = <x:ref>word</x:ref>
2160</artwork></figure>
2161<t>
2162   All transfer-coding values are case-insensitive. HTTP/1.1 uses
2163   transfer-coding values in the TE header field (<xref target="header.te"/>) and in
2164   the Transfer-Encoding header field (<xref target="header.transfer-encoding"/>).
2165</t>
2166<t>
2167   Transfer-codings are analogous to the Content-Transfer-Encoding values of
2168   MIME, which were designed to enable safe transport of binary data over a
2169   7-bit transport service (<xref target="RFC2045" x:fmt="," x:sec="6"/>).
2170   However, safe transport
2171   has a different focus for an 8bit-clean transfer protocol. In HTTP,
2172   the only unsafe characteristic of message-bodies is the difficulty in
2173   determining the exact message body length (<xref target="message.body"/>),
2174   or the desire to encrypt data over a shared transport.
2175</t>
2176<t>
2177   A server that receives a request message with a transfer-coding it does
2178   not understand &SHOULD; respond with 501 (Not Implemented) and then
2179   close the connection. A server &MUST-NOT; send transfer-codings to an HTTP/1.0
2180   client.
2181</t>
2182
2183<section title="Chunked Transfer Coding" anchor="chunked.encoding">
2184  <iref item="chunked (Coding Format)"/>
2185  <iref item="Coding Format" subitem="chunked"/>
2186  <x:anchor-alias value="chunk"/>
2187  <x:anchor-alias value="Chunked-Body"/>
2188  <x:anchor-alias value="chunk-data"/>
2189  <x:anchor-alias value="chunk-ext"/>
2190  <x:anchor-alias value="chunk-ext-name"/>
2191  <x:anchor-alias value="chunk-ext-val"/>
2192  <x:anchor-alias value="chunk-size"/>
2193  <x:anchor-alias value="last-chunk"/>
2194  <x:anchor-alias value="trailer-part"/>
2195  <x:anchor-alias value="quoted-str-nf"/>
2196  <x:anchor-alias value="qdtext-nf"/>
2197<t>
2198   The chunked encoding modifies the body of a message in order to
2199   transfer it as a series of chunks, each with its own size indicator,
2200   followed by an &OPTIONAL; trailer containing header fields. This
2201   allows dynamically produced content to be transferred along with the
2202   information necessary for the recipient to verify that it has
2203   received the full message.
2204</t>
2205<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Chunked-Body"/><iref primary="true" item="Grammar" subitem="chunk"/><iref primary="true" item="Grammar" subitem="chunk-size"/><iref primary="true" item="Grammar" subitem="last-chunk"/><iref primary="true" item="Grammar" subitem="chunk-ext"/><iref primary="true" item="Grammar" subitem="chunk-ext-name"/><iref primary="true" item="Grammar" subitem="chunk-ext-val"/><iref primary="true" item="Grammar" subitem="chunk-data"/><iref primary="true" item="Grammar" subitem="trailer-part"/><iref primary="true" item="Grammar" subitem="quoted-str-nf"/><iref primary="true" item="Grammar" subitem="qdtext-nf"/>
2206  <x:ref>Chunked-Body</x:ref>   = *<x:ref>chunk</x:ref>
2207                   <x:ref>last-chunk</x:ref>
2208                   <x:ref>trailer-part</x:ref>
2209                   <x:ref>CRLF</x:ref>
2210 
2211  <x:ref>chunk</x:ref>          = <x:ref>chunk-size</x:ref> *WSP [ <x:ref>chunk-ext</x:ref> ] <x:ref>CRLF</x:ref>
2212                   <x:ref>chunk-data</x:ref> <x:ref>CRLF</x:ref>
2213  <x:ref>chunk-size</x:ref>     = 1*<x:ref>HEXDIG</x:ref>
2214  <x:ref>last-chunk</x:ref>     = 1*("0") *WSP [ <x:ref>chunk-ext</x:ref> ] <x:ref>CRLF</x:ref>
2215 
2216  <x:ref>chunk-ext</x:ref>      = *( ";" *WSP <x:ref>chunk-ext-name</x:ref>
2217                      [ "=" <x:ref>chunk-ext-val</x:ref> ] *WSP )
2218  <x:ref>chunk-ext-name</x:ref> = <x:ref>token</x:ref>
2219  <x:ref>chunk-ext-val</x:ref>  = <x:ref>token</x:ref> / <x:ref>quoted-str-nf</x:ref>
2220  <x:ref>chunk-data</x:ref>     = 1*<x:ref>OCTET</x:ref> ; a sequence of chunk-size octets
2221  <x:ref>trailer-part</x:ref>   = *( <x:ref>header-field</x:ref> <x:ref>CRLF</x:ref> )
2222 
2223  <x:ref>quoted-str-nf</x:ref>  = <x:ref>DQUOTE</x:ref> *( <x:ref>qdtext-nf</x:ref> / <x:ref>quoted-pair</x:ref> ) <x:ref>DQUOTE</x:ref>
2224                 ; like <x:ref>quoted-string</x:ref>, but disallowing line folding
2225  <x:ref>qdtext-nf</x:ref>      = <x:ref>WSP</x:ref> / %x21 / %x23-5B / %x5D-7E / <x:ref>obs-text</x:ref>
2226                 ; <x:ref>WSP</x:ref> / &lt;<x:ref>VCHAR</x:ref> except <x:ref>DQUOTE</x:ref> and "\"&gt; / <x:ref>obs-text</x:ref> 
2227</artwork></figure>
2228<t>
2229   The chunk-size field is a string of hex digits indicating the size of
2230   the chunk-data in octets. The chunked encoding is ended by any chunk whose size is
2231   zero, followed by the trailer, which is terminated by an empty line.
2232</t>
2233<t>
2234   The trailer allows the sender to include additional HTTP header
2235   fields at the end of the message. The Trailer header field can be
2236   used to indicate which header fields are included in a trailer (see
2237   <xref target="header.trailer"/>).
2238</t>
2239<t>
2240   A server using chunked transfer-coding in a response &MUST-NOT; use the
2241   trailer for any header fields unless at least one of the following is
2242   true:
2243  <list style="numbers">
2244    <t>the request included a TE header field that indicates "trailers" is
2245     acceptable in the transfer-coding of the  response, as described in
2246     <xref target="header.te"/>; or,</t>
2247     
2248    <t>the trailer fields consist entirely of optional metadata, and the
2249    recipient could use the message (in a manner acceptable to the server where
2250    the field originated) without receiving it. In other words, the server that
2251    generated the header (often but not always the origin server) is willing to
2252    accept the possibility that the trailer fields might be silently discarded
2253    along the path to the client.</t>
2254  </list>
2255</t>
2256<t>
2257   This requirement prevents an interoperability failure when the
2258   message is being received by an HTTP/1.1 (or later) proxy and
2259   forwarded to an HTTP/1.0 recipient. It avoids a situation where
2260   compliance with the protocol would have necessitated a possibly
2261   infinite buffer on the proxy.
2262</t>
2263<t>
2264   A process for decoding the "chunked" transfer-coding
2265   can be represented in pseudo-code as:
2266</t>
2267<figure><artwork type="code">
2268  length := 0
2269  read chunk-size, chunk-ext (if any) and CRLF
2270  while (chunk-size &gt; 0) {
2271     read chunk-data and CRLF
2272     append chunk-data to decoded-body
2273     length := length + chunk-size
2274     read chunk-size and CRLF
2275  }
2276  read header-field
2277  while (header-field not empty) {
2278     append header-field to existing header fields
2279     read header-field
2280  }
2281  Content-Length := length
2282  Remove "chunked" from Transfer-Encoding
2283</artwork></figure>
2284<t>
2285   All HTTP/1.1 applications &MUST; be able to receive and decode the
2286   "chunked" transfer-coding and &MUST; ignore chunk-ext extensions
2287   they do not understand.
2288</t>
2289<t>
2290   Since "chunked" is the only transfer-coding required to be understood
2291   by HTTP/1.1 recipients, it plays a crucial role in delimiting messages
2292   on a persistent connection.  Whenever a transfer-coding is applied to
2293   a payload body in a request, the final transfer-coding applied &MUST;
2294   be "chunked".  If a transfer-coding is applied to a response payload
2295   body, then either the final transfer-coding applied &MUST; be "chunked"
2296   or the message &MUST; be terminated by closing the connection. When the
2297   "chunked" transfer-coding is used, it &MUST; be the last transfer-coding
2298   applied to form the message-body. The "chunked" transfer-coding &MUST-NOT;
2299   be applied more than once in a message-body.
2300</t>
2301</section>
2302
2303<section title="Compression Codings" anchor="compression.codings">
2304<t>
2305   The codings defined below can be used to compress the payload of a
2306   message.
2307</t>
2308<x:note><t>
2309   <x:h>Note:</x:h> Use of program names for the identification of encoding formats
2310   is not desirable and is discouraged for future encodings. Their
2311   use here is representative of historical practice, not good
2312   design.
2313</t></x:note>
2314<x:note><t>
2315   <x:h>Note:</x:h> For compatibility with previous implementations of HTTP,
2316   applications &SHOULD; consider "x-gzip" and "x-compress" to be
2317   equivalent to "gzip" and "compress" respectively.
2318</t></x:note>
2319
2320<section title="Compress Coding" anchor="compress.coding">
2321<iref item="compress (Coding Format)"/>
2322<iref item="Coding Format" subitem="compress"/>
2323<t>
2324   The "compress" format is produced by the common UNIX file compression
2325   program "compress". This format is an adaptive Lempel-Ziv-Welch
2326   coding (LZW).
2327</t>
2328</section>
2329
2330<section title="Deflate Coding" anchor="deflate.coding">
2331<iref item="deflate (Coding Format)"/>
2332<iref item="Coding Format" subitem="deflate"/>
2333<t>
2334   The "deflate" format is defined as the "deflate" compression mechanism
2335   (described in <xref target="RFC1951"/>) used inside the "zlib"
2336   data format (<xref target="RFC1950"/>).
2337</t>
2338<x:note>
2339  <t>
2340    <x:h>Note:</x:h> Some incorrect implementations send the "deflate"
2341    compressed data without the zlib wrapper.
2342   </t>
2343</x:note>
2344</section>
2345
2346<section title="Gzip Coding" anchor="gzip.coding">
2347<iref item="gzip (Coding Format)"/>
2348<iref item="Coding Format" subitem="gzip"/>
2349<t>
2350   The "gzip" format is produced by the file compression program
2351   "gzip" (GNU zip), as described in <xref target="RFC1952"/>. This format is a
2352   Lempel-Ziv coding (LZ77) with a 32 bit CRC.
2353</t>
2354</section>
2355
2356</section>
2357
2358<section title="Transfer Coding Registry" anchor="transfer.coding.registry">
2359<t>
2360   The HTTP Transfer Coding Registry defines the name space for the transfer
2361   coding names.
2362</t>
2363<t>
2364   Registrations &MUST; include the following fields:
2365   <list style="symbols">
2366     <t>Name</t>
2367     <t>Description</t>
2368     <t>Pointer to specification text</t>
2369   </list>
2370</t>
2371<t>
2372   Names of transfer codings &MUST-NOT; overlap with names of content codings
2373   (&content-codings;), unless the encoding transformation is identical (as it
2374   is the case for the compression codings defined in
2375   <xref target="compression.codings"/>).
2376</t>
2377<t>
2378   Values to be added to this name space require a specification
2379   (see "Specification Required" in <xref target="RFC5226" x:fmt="of" x:sec="4.1"/>), and &MUST;
2380   conform to the purpose of transfer coding defined in this section.
2381</t>
2382<t>
2383   The registry itself is maintained at
2384   <eref target="http://www.iana.org/assignments/http-parameters"/>.
2385</t>
2386</section>
2387</section>
2388
2389<section title="Product Tokens" anchor="product.tokens">
2390  <x:anchor-alias value="product"/>
2391  <x:anchor-alias value="product-version"/>
2392<t>
2393   Product tokens are used to allow communicating applications to
2394   identify themselves by software name and version. Most fields using
2395   product tokens also allow sub-products which form a significant part
2396   of the application to be listed, separated by whitespace. By
2397   convention, the products are listed in order of their significance
2398   for identifying the application.
2399</t>
2400<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="product"/><iref primary="true" item="Grammar" subitem="product-version"/>
2401  <x:ref>product</x:ref>         = <x:ref>token</x:ref> ["/" <x:ref>product-version</x:ref>]
2402  <x:ref>product-version</x:ref> = <x:ref>token</x:ref>
2403</artwork></figure>
2404<t>
2405   Examples:
2406</t>
2407<figure><artwork type="example">
2408  User-Agent: CERN-LineMode/2.15 libwww/2.17b3
2409  Server: Apache/0.8.4
2410</artwork></figure>
2411<t>
2412   Product tokens &SHOULD; be short and to the point. They &MUST-NOT; be
2413   used for advertising or other non-essential information. Although any
2414   token octet &MAY; appear in a product-version, this token &SHOULD;
2415   only be used for a version identifier (i.e., successive versions of
2416   the same product &SHOULD; only differ in the product-version portion of
2417   the product value).
2418</t>
2419</section>
2420
2421<section title="Quality Values" anchor="quality.values">
2422  <x:anchor-alias value="qvalue"/>
2423<t>
2424   Both transfer codings (TE request header field, <xref target="header.te"/>)
2425   and content negotiation (&content.negotiation;) use short "floating point"
2426   numbers to indicate the relative importance ("weight") of various
2427   negotiable parameters.  A weight is normalized to a real number in
2428   the range 0 through 1, where 0 is the minimum and 1 the maximum
2429   value. If a parameter has a quality value of 0, then content with
2430   this parameter is "not acceptable" for the client. HTTP/1.1
2431   applications &MUST-NOT; generate more than three digits after the
2432   decimal point. User configuration of these values &SHOULD; also be
2433   limited in this fashion.
2434</t>
2435<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="qvalue"/>
2436  <x:ref>qvalue</x:ref>         = ( "0" [ "." 0*3<x:ref>DIGIT</x:ref> ] )
2437                 / ( "1" [ "." 0*3("0") ] )
2438</artwork></figure>
2439<x:note>
2440  <t>
2441     <x:h>Note:</x:h> "Quality values" is a misnomer, since these values merely represent
2442     relative degradation in desired quality.
2443  </t>
2444</x:note>
2445</section>
2446
2447</section>
2448
2449<section title="Connections" anchor="connections">
2450
2451<section title="Persistent Connections" anchor="persistent.connections">
2452
2453<section title="Purpose" anchor="persistent.purpose">
2454<t>
2455   Prior to persistent connections, a separate TCP connection was
2456   established for each request, increasing the load on HTTP servers
2457   and causing congestion on the Internet. The use of inline images and
2458   other associated data often requires a client to make multiple
2459   requests of the same server in a short amount of time. Analysis of
2460   these performance problems and results from a prototype
2461   implementation are available <xref target="Pad1995"/> <xref target="Spe"/>. Implementation experience and
2462   measurements of actual HTTP/1.1 implementations show good
2463   results <xref target="Nie1997"/>. Alternatives have also been explored, for example,
2464   T/TCP <xref target="Tou1998"/>.
2465</t>
2466<t>
2467   Persistent HTTP connections have a number of advantages:
2468  <list style="symbols">
2469      <t>
2470        By opening and closing fewer TCP connections, CPU time is saved
2471        in routers and hosts (clients, servers, proxies, gateways,
2472        tunnels, or caches), and memory used for TCP protocol control
2473        blocks can be saved in hosts.
2474      </t>
2475      <t>
2476        HTTP requests and responses can be pipelined on a connection.
2477        Pipelining allows a client to make multiple requests without
2478        waiting for each response, allowing a single TCP connection to
2479        be used much more efficiently, with much lower elapsed time.
2480      </t>
2481      <t>
2482        Network congestion is reduced by reducing the number of packets
2483        caused by TCP opens, and by allowing TCP sufficient time to
2484        determine the congestion state of the network.
2485      </t>
2486      <t>
2487        Latency on subsequent requests is reduced since there is no time
2488        spent in TCP's connection opening handshake.
2489      </t>
2490      <t>
2491        HTTP can evolve more gracefully, since errors can be reported
2492        without the penalty of closing the TCP connection. Clients using
2493        future versions of HTTP might optimistically try a new feature,
2494        but if communicating with an older server, retry with old
2495        semantics after an error is reported.
2496      </t>
2497    </list>
2498</t>
2499<t>
2500   HTTP implementations &SHOULD; implement persistent connections.
2501</t>
2502</section>
2503
2504<section title="Overall Operation" anchor="persistent.overall">
2505<t>
2506   A significant difference between HTTP/1.1 and earlier versions of
2507   HTTP is that persistent connections are the default behavior of any
2508   HTTP connection. That is, unless otherwise indicated, the client
2509   &SHOULD; assume that the server will maintain a persistent connection,
2510   even after error responses from the server.
2511</t>
2512<t>
2513   Persistent connections provide a mechanism by which a client and a
2514   server can signal the close of a TCP connection. This signaling takes
2515   place using the Connection header field (<xref target="header.connection"/>). Once a close
2516   has been signaled, the client &MUST-NOT; send any more requests on that
2517   connection.
2518</t>
2519
2520<section title="Negotiation" anchor="persistent.negotiation">
2521<t>
2522   An HTTP/1.1 server &MAY; assume that a HTTP/1.1 client intends to
2523   maintain a persistent connection unless a Connection header field including
2524   the connection-token "close" was sent in the request. If the server
2525   chooses to close the connection immediately after sending the
2526   response, it &SHOULD; send a Connection header field including the
2527   connection-token "close".
2528</t>
2529<t>
2530   An HTTP/1.1 client &MAY; expect a connection to remain open, but would
2531   decide to keep it open based on whether the response from a server
2532   contains a Connection header field with the connection-token close. In case
2533   the client does not want to maintain a connection for more than that
2534   request, it &SHOULD; send a Connection header field including the
2535   connection-token close.
2536</t>
2537<t>
2538   If either the client or the server sends the close token in the
2539   Connection header field, that request becomes the last one for the
2540   connection.
2541</t>
2542<t>
2543   Clients and servers &SHOULD-NOT;  assume that a persistent connection is
2544   maintained for HTTP versions less than 1.1 unless it is explicitly
2545   signaled. See <xref target="compatibility.with.http.1.0.persistent.connections"/> for more information on backward
2546   compatibility with HTTP/1.0 clients.
2547</t>
2548<t>
2549   In order to remain persistent, all messages on the connection &MUST;
2550   have a self-defined message length (i.e., one not defined by closure
2551   of the connection), as described in <xref target="message.body"/>.
2552</t>
2553</section>
2554
2555<section title="Pipelining" anchor="pipelining">
2556<t>
2557   A client that supports persistent connections &MAY; "pipeline" its
2558   requests (i.e., send multiple requests without waiting for each
2559   response). A server &MUST; send its responses to those requests in the
2560   same order that the requests were received.
2561</t>
2562<t>
2563   Clients which assume persistent connections and pipeline immediately
2564   after connection establishment &SHOULD; be prepared to retry their
2565   connection if the first pipelined attempt fails. If a client does
2566   such a retry, it &MUST-NOT; pipeline before it knows the connection is
2567   persistent. Clients &MUST; also be prepared to resend their requests if
2568   the server closes the connection before sending all of the
2569   corresponding responses.
2570</t>
2571<t>
2572   Clients &SHOULD-NOT; pipeline requests using non-idempotent request methods or
2573   non-idempotent sequences of request methods (see &idempotent-methods;). Otherwise, a
2574   premature termination of the transport connection could lead to
2575   indeterminate results. A client wishing to send a non-idempotent
2576   request &SHOULD; wait to send that request until it has received the
2577   response status line for the previous request.
2578</t>
2579</section>
2580</section>
2581
2582<section title="Proxy Servers" anchor="persistent.proxy">
2583<t>
2584   It is especially important that proxies correctly implement the
2585   properties of the Connection header field as specified in <xref target="header.connection"/>.
2586</t>
2587<t>
2588   The proxy server &MUST; signal persistent connections separately with
2589   its clients and the origin servers (or other proxy servers) that it
2590   connects to. Each persistent connection applies to only one transport
2591   link.
2592</t>
2593<t>
2594   A proxy server &MUST-NOT; establish a HTTP/1.1 persistent connection
2595   with an HTTP/1.0 client (but see <xref x:sec="19.7.1" x:fmt="of" target="RFC2068"/>
2596   for information and discussion of the problems with the Keep-Alive header field
2597   implemented by many HTTP/1.0 clients).
2598</t>
2599
2600<section title="End-to-end and Hop-by-hop Header Fields" anchor="end-to-end.and.hop-by-hop.header-fields">
2601<!--<t>
2602  <cref anchor="TODO-end-to-end" source="jre">
2603    Restored from <eref target="http://tools.ietf.org/html/draft-ietf-httpbis-p6-cache-05#section-7.1"/>.
2604    See also <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/60"/>.
2605  </cref>
2606</t>-->
2607<t>
2608   For the purpose of defining the behavior of caches and non-caching
2609   proxies, we divide HTTP header fields into two categories:
2610  <list style="symbols">
2611      <t>End-to-end header fields, which are  transmitted to the ultimate
2612        recipient of a request or response. End-to-end header fields in
2613        responses MUST be stored as part of a cache entry and &MUST; be
2614        transmitted in any response formed from a cache entry.</t>
2615
2616      <t>Hop-by-hop header fields, which are meaningful only for a single
2617        transport-level connection, and are not stored by caches or
2618        forwarded by proxies.</t>
2619  </list>
2620</t>
2621<t>
2622   The following HTTP/1.1 header fields are hop-by-hop header fields:
2623  <list style="symbols">
2624      <t>Connection</t>
2625      <t>Keep-Alive</t>
2626      <t>Proxy-Authenticate</t>
2627      <t>Proxy-Authorization</t>
2628      <t>TE</t>
2629      <t>Trailer</t>
2630      <t>Transfer-Encoding</t>
2631      <t>Upgrade</t>
2632  </list>
2633</t>
2634<t>
2635   All other header fields defined by HTTP/1.1 are end-to-end header fields.
2636</t>
2637<t>
2638   Other hop-by-hop header fields &MUST; be listed in a Connection header field
2639   (<xref target="header.connection"/>).
2640</t>
2641</section>
2642
2643<section title="Non-modifiable Header Fields" anchor="non-modifiable.header-fields">
2644<!--<t>
2645  <cref anchor="TODO-non-mod-headers" source="jre">
2646    Restored from <eref target="http://tools.ietf.org/html/draft-ietf-httpbis-p6-cache-05#section-7.2"/>.
2647    See also <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/60"/>.
2648  </cref>
2649</t>-->
2650<t>
2651   Some features of HTTP/1.1, such as Digest Authentication, depend on the
2652   value of certain end-to-end header fields. A non-transforming proxy &SHOULD-NOT;
2653   modify an end-to-end header field unless the definition of that header field requires
2654   or specifically allows that.
2655</t>
2656<t>
2657   A non-transforming proxy &MUST-NOT; modify any of the following fields in a
2658   request or response, and it &MUST-NOT; add any of these fields if not
2659   already present:
2660  <list style="symbols">
2661    <t>Allow</t>
2662    <t>Content-Location</t>
2663    <t>Content-MD5</t>
2664    <t>ETag</t>
2665    <t>Last-Modified</t>
2666    <t>Server</t>
2667  </list>
2668</t>
2669<t>
2670   A non-transforming proxy &MUST-NOT; modify any of the following fields in a
2671   response:
2672  <list style="symbols">
2673    <t>Expires</t>
2674  </list>
2675</t>
2676<t>
2677   but it &MAY; add any of these fields if not already present. If an
2678   Expires header field is added, it &MUST; be given a field-value identical to
2679   that of the Date header field in that response.
2680</t>
2681<t>
2682   A proxy &MUST-NOT; modify or add any of the following fields in a
2683   message that contains the no-transform cache-control directive, or in
2684   any request:
2685  <list style="symbols">
2686    <t>Content-Encoding</t>
2687    <t>Content-Range</t>
2688    <t>Content-Type</t>
2689  </list>
2690</t>
2691<t>
2692   A transforming proxy &MAY; modify or add these fields to a message
2693   that does not include no-transform, but if it does so, it &MUST; add a
2694   Warning 214 (Transformation applied) if one does not already appear
2695   in the message (see &header-warning;).
2696</t>
2697<x:note>
2698  <t>
2699    <x:h>Warning:</x:h> Unnecessary modification of end-to-end header fields might
2700    cause authentication failures if stronger authentication
2701    mechanisms are introduced in later versions of HTTP. Such
2702    authentication mechanisms &MAY; rely on the values of header fields
2703    not listed here.
2704  </t>
2705</x:note>
2706<t>
2707   A non-transforming proxy &MUST; preserve the message payload (&payload;),
2708   though it &MAY; change the message-body through application or removal
2709   of a transfer-coding (<xref target="transfer.codings"/>).
2710</t>
2711</section>
2712
2713</section>
2714
2715<section title="Practical Considerations" anchor="persistent.practical">
2716<t>
2717   Servers will usually have some time-out value beyond which they will
2718   no longer maintain an inactive connection. Proxy servers might make
2719   this a higher value since it is likely that the client will be making
2720   more connections through the same server. The use of persistent
2721   connections places no requirements on the length (or existence) of
2722   this time-out for either the client or the server.
2723</t>
2724<t>
2725   When a client or server wishes to time-out it &SHOULD; issue a graceful
2726   close on the transport connection. Clients and servers &SHOULD; both
2727   constantly watch for the other side of the transport close, and
2728   respond to it as appropriate. If a client or server does not detect
2729   the other side's close promptly it could cause unnecessary resource
2730   drain on the network.
2731</t>
2732<t>
2733   A client, server, or proxy &MAY; close the transport connection at any
2734   time. For example, a client might have started to send a new request
2735   at the same time that the server has decided to close the "idle"
2736   connection. From the server's point of view, the connection is being
2737   closed while it was idle, but from the client's point of view, a
2738   request is in progress.
2739</t>
2740<t>
2741   This means that clients, servers, and proxies &MUST; be able to recover
2742   from asynchronous close events. Client software &SHOULD; reopen the
2743   transport connection and retransmit the aborted sequence of requests
2744   without user interaction so long as the request sequence is
2745   idempotent (see &idempotent-methods;). Non-idempotent request methods or sequences
2746   &MUST-NOT; be automatically retried, although user agents &MAY; offer a
2747   human operator the choice of retrying the request(s). Confirmation by
2748   user-agent software with semantic understanding of the application
2749   &MAY; substitute for user confirmation. The automatic retry &SHOULD-NOT; 
2750   be repeated if the second sequence of requests fails.
2751</t>
2752<t>
2753   Servers &SHOULD; always respond to at least one request per connection,
2754   if at all possible. Servers &SHOULD-NOT;  close a connection in the
2755   middle of transmitting a response, unless a network or client failure
2756   is suspected.
2757</t>
2758<t>
2759   Clients (including proxies) &SHOULD; limit the number of simultaneous
2760   connections that they maintain to a given server (including proxies).
2761</t>
2762<t>
2763   Previous revisions of HTTP gave a specific number of connections as a
2764   ceiling, but this was found to be impractical for many applications. As a
2765   result, this specification does not mandate a particular maximum number of
2766   connections, but instead encourages clients to be conservative when opening
2767   multiple connections.
2768</t>
2769<t>
2770   In particular, while using multiple connections avoids the "head-of-line
2771   blocking" problem (whereby a request that takes significant server-side
2772   processing and/or has a large payload can block subsequent requests on the
2773   same connection), each connection used consumes server resources (sometimes
2774   significantly), and furthermore using multiple connections can cause
2775   undesirable side effects in congested networks.
2776</t>
2777<t>
2778   Note that servers might reject traffic that they deem abusive, including an
2779   excessive number of connections from a client.
2780</t>
2781</section>
2782</section>
2783
2784<section title="Message Transmission Requirements" anchor="message.transmission.requirements">
2785
2786<section title="Persistent Connections and Flow Control" anchor="persistent.flow">
2787<t>
2788   HTTP/1.1 servers &SHOULD; maintain persistent connections and use TCP's
2789   flow control mechanisms to resolve temporary overloads, rather than
2790   terminating connections with the expectation that clients will retry.
2791   The latter technique can exacerbate network congestion.
2792</t>
2793</section>
2794
2795<section title="Monitoring Connections for Error Status Messages" anchor="persistent.monitor">
2796<t>
2797   An HTTP/1.1 (or later) client sending a message-body &SHOULD; monitor
2798   the network connection for an error status code while it is transmitting
2799   the request. If the client sees an error status code, it &SHOULD;
2800   immediately cease transmitting the body. If the body is being sent
2801   using a "chunked" encoding (<xref target="transfer.codings"/>), a zero length chunk and
2802   empty trailer &MAY; be used to prematurely mark the end of the message.
2803   If the body was preceded by a Content-Length header field, the client &MUST;
2804   close the connection.
2805</t>
2806</section>
2807
2808<section title="Use of the 100 (Continue) Status" anchor="use.of.the.100.status">
2809<t>
2810   The purpose of the 100 (Continue) status code (see &status-100;) is to
2811   allow a client that is sending a request message with a request body
2812   to determine if the origin server is willing to accept the request
2813   (based on the request header fields) before the client sends the request
2814   body. In some cases, it might either be inappropriate or highly
2815   inefficient for the client to send the body if the server will reject
2816   the message without looking at the body.
2817</t>
2818<t>
2819   Requirements for HTTP/1.1 clients:
2820  <list style="symbols">
2821    <t>
2822        If a client will wait for a 100 (Continue) response before
2823        sending the request body, it &MUST; send an Expect header
2824        field (&header-expect;) with the "100-continue" expectation.
2825    </t>
2826    <t>
2827        A client &MUST-NOT; send an Expect header field (&header-expect;)
2828        with the "100-continue" expectation if it does not intend
2829        to send a request body.
2830    </t>
2831  </list>
2832</t>
2833<t>
2834   Because of the presence of older implementations, the protocol allows
2835   ambiguous situations in which a client might send "Expect: 100-continue"
2836   without receiving either a 417 (Expectation Failed)
2837   or a 100 (Continue) status code. Therefore, when a client sends this
2838   header field to an origin server (possibly via a proxy) from which it
2839   has never seen a 100 (Continue) status code, the client &SHOULD-NOT; 
2840   wait for an indefinite period before sending the request body.
2841</t>
2842<t>
2843   Requirements for HTTP/1.1 origin servers:
2844  <list style="symbols">
2845    <t> Upon receiving a request which includes an Expect header
2846        field with the "100-continue" expectation, an origin server &MUST;
2847        either respond with 100 (Continue) status code and continue to read
2848        from the input stream, or respond with a final status code. The
2849        origin server &MUST-NOT; wait for the request body before sending
2850        the 100 (Continue) response. If it responds with a final status
2851        code, it &MAY; close the transport connection or it &MAY; continue
2852        to read and discard the rest of the request.  It &MUST-NOT;
2853        perform the request method if it returns a final status code.
2854    </t>
2855    <t> An origin server &SHOULD-NOT;  send a 100 (Continue) response if
2856        the request message does not include an Expect header
2857        field with the "100-continue" expectation, and &MUST-NOT; send a
2858        100 (Continue) response if such a request comes from an HTTP/1.0
2859        (or earlier) client. There is an exception to this rule: for
2860        compatibility with <xref target="RFC2068"/>, a server &MAY; send a 100 (Continue)
2861        status code in response to an HTTP/1.1 PUT or POST request that does
2862        not include an Expect header field with the "100-continue"
2863        expectation. This exception, the purpose of which is
2864        to minimize any client processing delays associated with an
2865        undeclared wait for 100 (Continue) status code, applies only to
2866        HTTP/1.1 requests, and not to requests with any other HTTP-version
2867        value.
2868    </t>
2869    <t> An origin server &MAY; omit a 100 (Continue) response if it has
2870        already received some or all of the request body for the
2871        corresponding request.
2872    </t>
2873    <t> An origin server that sends a 100 (Continue) response &MUST;
2874    ultimately send a final status code, once the request body is
2875        received and processed, unless it terminates the transport
2876        connection prematurely.
2877    </t>
2878    <t> If an origin server receives a request that does not include an
2879        Expect header field with the "100-continue" expectation,
2880        the request includes a request body, and the server responds
2881        with a final status code before reading the entire request body
2882        from the transport connection, then the server &SHOULD-NOT;  close
2883        the transport connection until it has read the entire request,
2884        or until the client closes the connection. Otherwise, the client
2885        might not reliably receive the response message. However, this
2886        requirement is not be construed as preventing a server from
2887        defending itself against denial-of-service attacks, or from
2888        badly broken client implementations.
2889      </t>
2890    </list>
2891</t>
2892<t>
2893   Requirements for HTTP/1.1 proxies:
2894  <list style="symbols">
2895    <t> If a proxy receives a request that includes an Expect header
2896        field with the "100-continue" expectation, and the proxy
2897        either knows that the next-hop server complies with HTTP/1.1 or
2898        higher, or does not know the HTTP version of the next-hop
2899        server, it &MUST; forward the request, including the Expect header
2900        field.
2901    </t>
2902    <t> If the proxy knows that the version of the next-hop server is
2903        HTTP/1.0 or lower, it &MUST-NOT; forward the request, and it &MUST;
2904        respond with a 417 (Expectation Failed) status code.
2905    </t>
2906    <t> Proxies &SHOULD; maintain a cache recording the HTTP version
2907        numbers received from recently-referenced next-hop servers.
2908    </t>
2909    <t> A proxy &MUST-NOT; forward a 100 (Continue) response if the
2910        request message was received from an HTTP/1.0 (or earlier)
2911        client and did not include an Expect header field with
2912        the "100-continue" expectation. This requirement overrides the
2913        general rule for forwarding of 1xx responses (see &status-1xx;).
2914    </t>
2915  </list>
2916</t>
2917</section>
2918
2919<section title="Client Behavior if Server Prematurely Closes Connection" anchor="connection.premature">
2920<t>
2921   If an HTTP/1.1 client sends a request which includes a request body,
2922   but which does not include an Expect header field with the
2923   "100-continue" expectation, and if the client is not directly
2924   connected to an HTTP/1.1 origin server, and if the client sees the
2925   connection close before receiving a status line from the server, the
2926   client &SHOULD; retry the request.  If the client does retry this
2927   request, it &MAY; use the following "binary exponential backoff"
2928   algorithm to be assured of obtaining a reliable response:
2929  <list style="numbers">
2930    <t>
2931      Initiate a new connection to the server
2932    </t>
2933    <t>
2934      Transmit the request-line, header fields, and the CRLF that
2935      indicates the end of header fields.
2936    </t>
2937    <t>
2938      Initialize a variable R to the estimated round-trip time to the
2939         server (e.g., based on the time it took to establish the
2940         connection), or to a constant value of 5 seconds if the round-trip
2941         time is not available.
2942    </t>
2943    <t>
2944       Compute T = R * (2**N), where N is the number of previous
2945         retries of this request.
2946    </t>
2947    <t>
2948       Wait either for an error response from the server, or for T
2949         seconds (whichever comes first)
2950    </t>
2951    <t>
2952       If no error response is received, after T seconds transmit the
2953         body of the request.
2954    </t>
2955    <t>
2956       If client sees that the connection is closed prematurely,
2957         repeat from step 1 until the request is accepted, an error
2958         response is received, or the user becomes impatient and
2959         terminates the retry process.
2960    </t>
2961  </list>
2962</t>
2963<t>
2964   If at any point an error status code is received, the client
2965  <list style="symbols">
2966      <t>&SHOULD-NOT;  continue and</t>
2967
2968      <t>&SHOULD; close the connection if it has not completed sending the
2969        request message.</t>
2970    </list>
2971</t>
2972</section>
2973</section>
2974</section>
2975
2976
2977<section title="Miscellaneous notes that might disappear" anchor="misc">
2978<section title="Scheme aliases considered harmful" anchor="scheme.aliases">
2979<t>
2980   <cref anchor="TBD-aliases-harmful">describe why aliases like webcal are harmful.</cref>
2981</t>
2982</section>
2983
2984<section title="Use of HTTP for proxy communication" anchor="http.proxy">
2985<t>
2986   <cref anchor="TBD-proxy-other">Configured to use HTTP to proxy HTTP or other protocols.</cref>
2987</t>
2988</section>
2989
2990<section title="Interception of HTTP for access control" anchor="http.intercept">
2991<t>
2992   <cref anchor="TBD-intercept">Interception of HTTP traffic for initiating access control.</cref>
2993</t>
2994</section>
2995
2996<section title="Use of HTTP by other protocols" anchor="http.others">
2997<t>
2998   <cref anchor="TBD-profiles">Profiles of HTTP defined by other protocol.
2999   Extensions of HTTP like WebDAV.</cref>
3000</t>
3001
3002</section>
3003<section title="Use of HTTP by media type specification" anchor="http.media">
3004<t>
3005   <cref anchor="TBD-hypertext">Instructions on composing HTTP requests via hypertext formats.</cref>
3006</t>
3007</section>
3008</section>
3009
3010<section title="Header Field Definitions" anchor="header.field.definitions">
3011<t>
3012   This section defines the syntax and semantics of HTTP header fields
3013   related to message framing and transport protocols.
3014</t>
3015
3016<section title="Connection" anchor="header.connection">
3017  <iref primary="true" item="Connection header field" x:for-anchor=""/>
3018  <iref primary="true" item="Header Fields" subitem="Connection" x:for-anchor=""/>
3019  <x:anchor-alias value="Connection"/>
3020  <x:anchor-alias value="connection-token"/>
3021<t>
3022   The "Connection" header field allows the sender to specify
3023   options that are desired only for that particular connection.
3024   Such connection options &MUST; be removed or replaced before the
3025   message can be forwarded downstream by a proxy or gateway.
3026   This mechanism also allows the sender to indicate which HTTP
3027   header fields used in the message are only intended for the
3028   immediate recipient ("hop-by-hop"), as opposed to all recipients
3029   on the chain ("end-to-end"), enabling the message to be
3030   self-descriptive and allowing future connection-specific extensions
3031   to be deployed in HTTP without fear that they will be blindly
3032   forwarded by previously deployed intermediaries.
3033</t>
3034<t>
3035   The Connection header field's value has the following grammar:
3036</t>
3037<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Connection"/><iref primary="true" item="Grammar" subitem="connection-token"/>
3038  <x:ref>Connection</x:ref>       = 1#<x:ref>connection-token</x:ref>
3039  <x:ref>connection-token</x:ref> = <x:ref>token</x:ref>
3040</artwork></figure>
3041<t>
3042   A proxy or gateway &MUST; parse a received Connection
3043   header field before a message is forwarded and, for each
3044   connection-token in this field, remove any header field(s) from
3045   the message with the same name as the connection-token, and then
3046   remove the Connection header field itself or replace it with the
3047   sender's own connection options for the forwarded message.
3048</t>
3049<t>
3050   A sender &MUST-NOT; include field-names in the Connection header
3051   field-value for fields that are defined as expressing constraints
3052   for all recipients in the request or response chain, such as the
3053   Cache-Control header field (&header-cache-control;).
3054</t>
3055<t>
3056   The connection options do not have to correspond to a header field
3057   present in the message, since a connection-specific header field
3058   might not be needed if there are no parameters associated with that
3059   connection option.  Recipients that trigger certain connection
3060   behavior based on the presence of connection options &MUST; do so
3061   based on the presence of the connection-token rather than only the
3062   presence of the optional header field.  In other words, if the
3063   connection option is received as a header field but not indicated
3064   within the Connection field-value, then the recipient &MUST; ignore
3065   the connection-specific header field because it has likely been
3066   forwarded by an intermediary that is only partially compliant.
3067</t>
3068<t>
3069   When defining new connection options, specifications ought to
3070   carefully consider existing deployed header fields and ensure
3071   that the new connection-token does not share the same name as
3072   an unrelated header field that might already be deployed.
3073   Defining a new connection-token essentially reserves that potential
3074   field-name for carrying additional information related to the
3075   connection option, since it would be unwise for senders to use
3076   that field-name for anything else.
3077</t>
3078<t>
3079   HTTP/1.1 defines the "close" connection option for the sender to
3080   signal that the connection will be closed after completion of the
3081   response. For example,
3082</t>
3083<figure><artwork type="example">
3084  Connection: close
3085</artwork></figure>
3086<t>
3087   in either the request or the response header fields indicates that
3088   the connection &SHOULD-NOT;  be considered "persistent" (<xref target="persistent.connections"/>)
3089   after the current request/response is complete.
3090</t>
3091<t>
3092   An HTTP/1.1 client that does not support persistent connections &MUST;
3093   include the "close" connection option in every request message.
3094</t>
3095<t>
3096   An HTTP/1.1 server that does not support persistent connections &MUST;
3097   include the "close" connection option in every response message that
3098   does not have a 1xx (Informational) status code.
3099</t>
3100</section>
3101
3102<section title="Content-Length" anchor="header.content-length">
3103  <iref primary="true" item="Content-Length header field" x:for-anchor=""/>
3104  <iref primary="true" item="Header Fields" subitem="Content-Length" x:for-anchor=""/>
3105  <x:anchor-alias value="Content-Length"/>
3106<t>
3107   The "Content-Length" header field indicates the size of the
3108   message-body, in decimal number of octets, for any message other than
3109   a response to a HEAD request or a response with a status code of 304.
3110   In the case of a response to a HEAD request, Content-Length indicates
3111   the size of the payload body (not including any potential transfer-coding)
3112   that would have been sent had the request been a GET.
3113   In the case of a 304 (Not Modified) response to a GET request,
3114   Content-Length indicates the size of the payload body (not including
3115   any potential transfer-coding) that would have been sent in a 200 (OK)
3116   response.
3117</t>
3118<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Content-Length"/>
3119  <x:ref>Content-Length</x:ref> = 1*<x:ref>DIGIT</x:ref>
3120</artwork></figure>
3121<t>
3122   An example is
3123</t>
3124<figure><artwork type="example">
3125  Content-Length: 3495
3126</artwork></figure>
3127<t>
3128   Implementations &SHOULD; use this field to indicate the message-body
3129   length when no transfer-coding is being applied and the
3130   payload's body length can be determined prior to being transferred.
3131   <xref target="message.body"/> describes how recipients determine the length
3132   of a message-body.
3133</t>
3134<t>
3135   Any Content-Length greater than or equal to zero is a valid value.
3136</t>
3137<t>
3138   Note that the use of this field in HTTP is significantly different from
3139   the corresponding definition in MIME, where it is an optional field
3140   used within the "message/external-body" content-type.
3141</t>
3142</section>
3143
3144<section title="Date" anchor="header.date">
3145  <iref primary="true" item="Date header field" x:for-anchor=""/>
3146  <iref primary="true" item="Header Fields" subitem="Date" x:for-anchor=""/>
3147  <x:anchor-alias value="Date"/>
3148<t>
3149   The "Date" header field represents the date and time at which
3150   the message was originated, having the same semantics as the Origination
3151   Date Field (orig-date) defined in <xref target="RFC5322" x:fmt="of" x:sec="3.6.1"/>.
3152   The field value is an HTTP-date, as described in <xref target="date.time.formats.full.date"/>;
3153   it &MUST; be sent in rfc1123-date format.
3154</t>
3155<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Date"/>
3156  <x:ref>Date</x:ref> = <x:ref>HTTP-date</x:ref>
3157</artwork></figure>
3158<t>
3159   An example is
3160</t>
3161<figure><artwork type="example">
3162  Date: Tue, 15 Nov 1994 08:12:31 GMT
3163</artwork></figure>
3164<t>
3165   Origin servers &MUST; include a Date header field in all responses,
3166   except in these cases:
3167  <list style="numbers">
3168      <t>If the response status code is 100 (Continue) or 101 (Switching
3169         Protocols), the response &MAY; include a Date header field, at
3170         the server's option.</t>
3171
3172      <t>If the response status code conveys a server error, e.g., 500
3173         (Internal Server Error) or 503 (Service Unavailable), and it is
3174         inconvenient or impossible to generate a valid Date.</t>
3175
3176      <t>If the server does not have a clock that can provide a
3177         reasonable approximation of the current time, its responses
3178         &MUST-NOT; include a Date header field. In this case, the rules
3179         in <xref target="clockless.origin.server.operation"/> &MUST; be followed.</t>
3180  </list>
3181</t>
3182<t>
3183   A received message that does not have a Date header field &MUST; be
3184   assigned one by the recipient if the message will be cached by that
3185   recipient.
3186</t>
3187<t>
3188   Clients can use the Date header field as well; in order to keep request
3189   messages small, they are advised not to include it when it doesn't convey
3190   any useful information (as it is usually the case for requests that do not
3191   contain a payload).
3192</t>
3193<t>
3194   The HTTP-date sent in a Date header field &SHOULD-NOT;  represent a date and
3195   time subsequent to the generation of the message. It &SHOULD; represent
3196   the best available approximation of the date and time of message
3197   generation, unless the implementation has no means of generating a
3198   reasonably accurate date and time. In theory, the date ought to
3199   represent the moment just before the payload is generated. In
3200   practice, the date can be generated at any time during the message
3201   origination without affecting its semantic value.
3202</t>
3203
3204<section title="Clockless Origin Server Operation" anchor="clockless.origin.server.operation">
3205<t>
3206   Some origin server implementations might not have a clock available.
3207   An origin server without a clock &MUST-NOT; assign Expires or Last-Modified
3208   values to a response, unless these values were associated
3209   with the resource by a system or user with a reliable clock. It &MAY;
3210   assign an Expires value that is known, at or before server
3211   configuration time, to be in the past (this allows "pre-expiration"
3212   of responses without storing separate Expires values for each
3213   resource).
3214</t>
3215</section>
3216</section>
3217
3218<section title="Host" anchor="header.host">
3219  <iref primary="true" item="Host header field" x:for-anchor=""/>
3220  <iref primary="true" item="Header Fields" subitem="Host" x:for-anchor=""/>
3221  <x:anchor-alias value="Host"/>
3222<t>
3223   The "Host" header field in a request provides the host and port
3224   information from the target resource's URI, enabling the origin
3225   server to distinguish between resources while servicing requests
3226   for multiple host names on a single IP address.  Since the Host
3227   field-value is critical information for handling a request, it
3228   &SHOULD; be sent as the first header field following the Request-Line.
3229</t>
3230<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Host"/>
3231  <x:ref>Host</x:ref> = <x:ref>uri-host</x:ref> [ ":" <x:ref>port</x:ref> ] ; <xref target="http.uri"/>
3232</artwork></figure>
3233<t>
3234   A client &MUST; send a Host header field in all HTTP/1.1 request
3235   messages.  If the target resource's URI includes an authority
3236   component, then the Host field-value &MUST; be identical to that
3237   authority component after excluding any userinfo (<xref target="http.uri"/>).
3238   If the authority component is missing or undefined for the target
3239   resource's URI, then the Host header field &MUST; be sent with an
3240   empty field-value.
3241</t>
3242<t>
3243   For example, a GET request to the origin server for
3244   &lt;http://www.example.org/pub/WWW/&gt; would begin with:
3245</t>
3246<figure><artwork type="message/http; msgtype=&#34;request&#34;" x:indent-with="  ">
3247GET /pub/WWW/ HTTP/1.1
3248Host: www.example.org
3249</artwork></figure>
3250<t>
3251   The Host header field &MUST; be sent in an HTTP/1.1 request even
3252   if the request-target is in the form of an absolute-URI, since this
3253   allows the Host information to be forwarded through ancient HTTP/1.0
3254   proxies that might not have implemented Host.
3255</t>
3256<t>
3257   When an HTTP/1.1 proxy receives a request with a request-target in
3258   the form of an absolute-URI, the proxy &MUST; ignore the received
3259   Host header field (if any) and instead replace it with the host
3260   information of the request-target.  When a proxy forwards a request,
3261   it &MUST; generate the Host header field based on the received
3262   absolute-URI rather than the received Host.
3263</t>
3264<t>
3265   Since the Host header field acts as an application-level routing
3266   mechanism, it is a frequent target for malware seeking to poison
3267   a shared cache or redirect a request to an unintended server.
3268   An interception proxy is particularly vulnerable if it relies on
3269   the Host header field value for redirecting requests to internal
3270   servers, or for use as a cache key in a shared cache, without
3271   first verifying that the intercepted connection is targeting a
3272   valid IP address for that host.
3273</t>
3274<t>
3275   A server &MUST; respond with a 400 (Bad Request) status code to
3276   any HTTP/1.1 request message that lacks a Host header field and
3277   to any request message that contains more than one Host header field
3278   or a Host header field with an invalid field-value.
3279</t>
3280<t>
3281   See Sections <xref target="the.resource.identified.by.a.request" format="counter"/>
3282   and <xref target="changes.to.simplify.multi-homed.web.servers.and.conserve.ip.addresses" format="counter"/>
3283   for other requirements relating to Host.
3284</t>
3285</section>
3286
3287<section title="TE" anchor="header.te">
3288  <iref primary="true" item="TE header field" x:for-anchor=""/>
3289  <iref primary="true" item="Header Fields" subitem="TE" x:for-anchor=""/>
3290  <x:anchor-alias value="TE"/>
3291  <x:anchor-alias value="t-codings"/>
3292  <x:anchor-alias value="te-params"/>
3293  <x:anchor-alias value="te-ext"/>
3294<t>
3295   The "TE" header field indicates what extension transfer-codings
3296   it is willing to accept in the response, and whether or not it is
3297   willing to accept trailer fields in a chunked transfer-coding.
3298</t>
3299<t>
3300   Its value consists of the keyword "trailers" and/or a comma-separated
3301   list of extension transfer-coding names with optional accept
3302   parameters (as described in <xref target="transfer.codings"/>).
3303</t>
3304<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="TE"/><iref primary="true" item="Grammar" subitem="t-codings"/><iref primary="true" item="Grammar" subitem="te-params"/><iref primary="true" item="Grammar" subitem="te-ext"/>
3305  <x:ref>TE</x:ref>        = #<x:ref>t-codings</x:ref>
3306  <x:ref>t-codings</x:ref> = "trailers" / ( <x:ref>transfer-extension</x:ref> [ <x:ref>te-params</x:ref> ] )
3307  <x:ref>te-params</x:ref> = <x:ref>OWS</x:ref> ";" <x:ref>OWS</x:ref> "q=" <x:ref>qvalue</x:ref> *( <x:ref>te-ext</x:ref> )
3308  <x:ref>te-ext</x:ref>    = <x:ref>OWS</x:ref> ";" <x:ref>OWS</x:ref> <x:ref>token</x:ref> [ "=" <x:ref>word</x:ref> ]
3309</artwork></figure>
3310<t>
3311   The presence of the keyword "trailers" indicates that the client is
3312   willing to accept trailer fields in a chunked transfer-coding, as
3313   defined in <xref target="chunked.encoding"/>. This keyword is reserved for use with
3314   transfer-coding values even though it does not itself represent a
3315   transfer-coding.
3316</t>
3317<t>
3318   Examples of its use are:
3319</t>
3320<figure><artwork type="example">
3321  TE: deflate
3322  TE:
3323  TE: trailers, deflate;q=0.5
3324</artwork></figure>
3325<t>
3326   The TE header field only applies to the immediate connection.
3327   Therefore, the keyword &MUST; be supplied within a Connection header
3328   field (<xref target="header.connection"/>) whenever TE is present in an HTTP/1.1 message.
3329</t>
3330<t>
3331   A server tests whether a transfer-coding is acceptable, according to
3332   a TE field, using these rules:
3333  <list style="numbers">
3334    <x:lt>
3335      <t>The "chunked" transfer-coding is always acceptable. If the
3336         keyword "trailers" is listed, the client indicates that it is
3337         willing to accept trailer fields in the chunked response on
3338         behalf of itself and any downstream clients. The implication is
3339         that, if given, the client is stating that either all
3340         downstream clients are willing to accept trailer fields in the
3341         forwarded response, or that it will attempt to buffer the
3342         response on behalf of downstream recipients.
3343      </t><t>
3344         <x:h>Note:</x:h> HTTP/1.1 does not define any means to limit the size of a
3345         chunked response such that a client can be assured of buffering
3346         the entire response.</t>
3347    </x:lt>
3348    <x:lt>
3349      <t>If the transfer-coding being tested is one of the transfer-codings
3350         listed in the TE field, then it is acceptable unless it
3351         is accompanied by a qvalue of 0. (As defined in <xref target="quality.values"/>, a
3352         qvalue of 0 means "not acceptable".)</t>
3353    </x:lt>
3354    <x:lt>
3355      <t>If multiple transfer-codings are acceptable, then the
3356         acceptable transfer-coding with the highest non-zero qvalue is
3357         preferred.  The "chunked" transfer-coding always has a qvalue
3358         of 1.</t>
3359    </x:lt>
3360  </list>
3361</t>
3362<t>
3363   If the TE field-value is empty or if no TE field is present, the only
3364   transfer-coding is "chunked". A message with no transfer-coding is
3365   always acceptable.
3366</t>
3367</section>
3368
3369<section title="Trailer" anchor="header.trailer">
3370  <iref primary="true" item="Trailer header field" x:for-anchor=""/>
3371  <iref primary="true" item="Header Fields" subitem="Trailer" x:for-anchor=""/>
3372  <x:anchor-alias value="Trailer"/>
3373<t>
3374   The "Trailer" header field indicates that the given set of
3375   header fields is present in the trailer of a message encoded with
3376   chunked transfer-coding.
3377</t>
3378<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Trailer"/>
3379  <x:ref>Trailer</x:ref> = 1#<x:ref>field-name</x:ref>
3380</artwork></figure>
3381<t>
3382   An HTTP/1.1 message &SHOULD; include a Trailer header field in a
3383   message using chunked transfer-coding with a non-empty trailer. Doing
3384   so allows the recipient to know which header fields to expect in the
3385   trailer.
3386</t>
3387<t>
3388   If no Trailer header field is present, the trailer &SHOULD-NOT;  include
3389   any header fields. See <xref target="chunked.encoding"/> for restrictions on the use of
3390   trailer fields in a "chunked" transfer-coding.
3391</t>
3392<t>
3393   Message header fields listed in the Trailer header field &MUST-NOT;
3394   include the following header fields:
3395  <list style="symbols">
3396    <t>Transfer-Encoding</t>
3397    <t>Content-Length</t>
3398    <t>Trailer</t>
3399  </list>
3400</t>
3401</section>
3402
3403<section title="Transfer-Encoding" anchor="header.transfer-encoding">
3404  <iref primary="true" item="Transfer-Encoding header field" x:for-anchor=""/>
3405  <iref primary="true" item="Header Fields" subitem="Transfer-Encoding" x:for-anchor=""/>
3406  <x:anchor-alias value="Transfer-Encoding"/>
3407<t>
3408   The "Transfer-Encoding" header field indicates what transfer-codings
3409   (if any) have been applied to the message body. It differs from
3410   Content-Encoding (&content-codings;) in that transfer-codings are a property
3411   of the message (and therefore are removed by intermediaries), whereas
3412   content-codings are not.
3413</t>
3414<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Transfer-Encoding"/>
3415  <x:ref>Transfer-Encoding</x:ref> = 1#<x:ref>transfer-coding</x:ref>
3416</artwork></figure>
3417<t>
3418   Transfer-codings are defined in <xref target="transfer.codings"/>. An example is:
3419</t>
3420<figure><artwork type="example">
3421  Transfer-Encoding: chunked
3422</artwork></figure>
3423<t>
3424   If multiple encodings have been applied to a representation, the transfer-codings
3425   &MUST; be listed in the order in which they were applied.
3426   Additional information about the encoding parameters &MAY; be provided
3427   by other header fields not defined by this specification.
3428</t>
3429<t>
3430   Many older HTTP/1.0 applications do not understand the Transfer-Encoding
3431   header field.
3432</t>
3433</section>
3434
3435<section title="Upgrade" anchor="header.upgrade">
3436  <iref primary="true" item="Upgrade header field" x:for-anchor=""/>
3437  <iref primary="true" item="Header Fields" subitem="Upgrade" x:for-anchor=""/>
3438  <x:anchor-alias value="Upgrade"/>
3439<t>
3440   The "Upgrade" header field allows the client to specify what
3441   additional communication protocols it would like to use, if the server
3442   chooses to switch protocols. Servers can use it to indicate what protocols
3443   they are willing to switch to.
3444</t>
3445<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Upgrade"/>
3446  <x:ref>Upgrade</x:ref> = 1#<x:ref>product</x:ref>
3447</artwork></figure>
3448<t>
3449   For example,
3450</t>
3451<figure><artwork type="example">
3452  Upgrade: HTTP/2.0, SHTTP/1.3, IRC/6.9, RTA/x11
3453</artwork></figure>
3454<t>
3455   The Upgrade header field is intended to provide a simple mechanism
3456   for transition from HTTP/1.1 to some other, incompatible protocol. It
3457   does so by allowing the client to advertise its desire to use another
3458   protocol, such as a later version of HTTP with a higher major version
3459   number, even though the current request has been made using HTTP/1.1.
3460   This eases the difficult transition between incompatible protocols by
3461   allowing the client to initiate a request in the more commonly
3462   supported protocol while indicating to the server that it would like
3463   to use a "better" protocol if available (where "better" is determined
3464   by the server, possibly according to the nature of the request method
3465   or target resource).
3466</t>
3467<t>
3468   The Upgrade header field only applies to switching application-layer
3469   protocols upon the existing transport-layer connection. Upgrade
3470   cannot be used to insist on a protocol change; its acceptance and use
3471   by the server is optional. The capabilities and nature of the
3472   application-layer communication after the protocol change is entirely
3473   dependent upon the new protocol chosen, although the first action
3474   after changing the protocol &MUST; be a response to the initial HTTP
3475   request containing the Upgrade header field.
3476</t>
3477<t>
3478   The Upgrade header field only applies to the immediate connection.
3479   Therefore, the upgrade keyword &MUST; be supplied within a Connection
3480   header field (<xref target="header.connection"/>) whenever Upgrade is present in an
3481   HTTP/1.1 message.
3482</t>
3483<t>
3484   The Upgrade header field cannot be used to indicate a switch to a
3485   protocol on a different connection. For that purpose, it is more
3486   appropriate to use a 3xx redirection response (&status-3xx;).
3487</t>
3488<t>
3489   Servers &MUST; include the "Upgrade" header field in 101 (Switching
3490   Protocols) responses to indicate which protocol(s) are being switched to,
3491   and &MUST; include it in 426 (Upgrade Required) responses to indicate
3492   acceptable protocols to upgrade to. Servers &MAY; include it in any other
3493   response to indicate that they are willing to upgrade to one of the
3494   specified protocols.
3495</t>
3496<t>
3497   This specification only defines the protocol name "HTTP" for use by
3498   the family of Hypertext Transfer Protocols, as defined by the HTTP
3499   version rules of <xref target="http.version"/> and future updates to this
3500   specification. Additional tokens can be registered with IANA using the
3501   registration procedure defined below. 
3502</t>
3503
3504<section title="Upgrade Token Registry" anchor="upgrade.token.registry">
3505<t>
3506   The HTTP Upgrade Token Registry defines the name space for product
3507   tokens used to identify protocols in the Upgrade header field.
3508   Each registered token is associated with contact information and
3509   an optional set of specifications that details how the connection
3510   will be processed after it has been upgraded.
3511</t>
3512<t>
3513   Registrations are allowed on a First Come First Served basis as
3514   described in <xref target="RFC5226" x:sec="4.1" x:fmt="of"/>. The
3515   specifications need not be IETF documents or be subject to IESG review.
3516   Registrations are subject to the following rules:
3517  <list style="numbers">
3518    <t>A token, once registered, stays registered forever.</t>
3519    <t>The registration &MUST; name a responsible party for the
3520       registration.</t>
3521    <t>The registration &MUST; name a point of contact.</t>
3522    <t>The registration &MAY; name a set of specifications associated with that
3523       token. Such specifications need not be publicly available.</t>
3524    <t>The responsible party &MAY; change the registration at any time.
3525       The IANA will keep a record of all such changes, and make them
3526       available upon request.</t>
3527    <t>The responsible party for the first registration of a "product"
3528       token &MUST; approve later registrations of a "version" token
3529       together with that "product" token before they can be registered.</t>
3530    <t>If absolutely required, the IESG &MAY; reassign the responsibility
3531       for a token. This will normally only be used in the case when a
3532       responsible party cannot be contacted.</t>
3533  </list>
3534</t>
3535</section>
3536
3537
3538</section>
3539
3540<section title="Via" anchor="header.via">
3541  <iref primary="true" item="Via header field" x:for-anchor=""/>
3542  <iref primary="true" item="Header Fields" subitem="Via" x:for-anchor=""/>
3543  <x:anchor-alias value="protocol-name"/>
3544  <x:anchor-alias value="protocol-version"/>
3545  <x:anchor-alias value="pseudonym"/>
3546  <x:anchor-alias value="received-by"/>
3547  <x:anchor-alias value="received-protocol"/>
3548  <x:anchor-alias value="Via"/>
3549<t>
3550   The "Via" header field &MUST; be sent by a proxy or gateway to
3551   indicate the intermediate protocols and recipients between the user
3552   agent and the server on requests, and between the origin server and
3553   the client on responses. It is analogous to the "Received" field
3554   used by email systems (<xref target="RFC5322" x:fmt="of" x:sec="3.6.7"/>)
3555   and is intended to be used for tracking message forwards,
3556   avoiding request loops, and identifying the protocol capabilities of
3557   all senders along the request/response chain.
3558</t>
3559<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Via"/><iref primary="true" item="Grammar" subitem="received-protocol"/><iref primary="true" item="Grammar" subitem="protocol-name"/><iref primary="true" item="Grammar" subitem="protocol-version"/><iref primary="true" item="Grammar" subitem="received-by"/><iref primary="true" item="Grammar" subitem="pseudonym"/>
3560  <x:ref>Via</x:ref>               = 1#( <x:ref>received-protocol</x:ref> <x:ref>RWS</x:ref> <x:ref>received-by</x:ref>
3561                          [ <x:ref>RWS</x:ref> <x:ref>comment</x:ref> ] )
3562  <x:ref>received-protocol</x:ref> = [ <x:ref>protocol-name</x:ref> "/" ] <x:ref>protocol-version</x:ref>
3563  <x:ref>protocol-name</x:ref>     = <x:ref>token</x:ref>
3564  <x:ref>protocol-version</x:ref>  = <x:ref>token</x:ref>
3565  <x:ref>received-by</x:ref>       = ( <x:ref>uri-host</x:ref> [ ":" <x:ref>port</x:ref> ] ) / <x:ref>pseudonym</x:ref>
3566  <x:ref>pseudonym</x:ref>         = <x:ref>token</x:ref>
3567</artwork></figure>
3568<t>
3569   The received-protocol indicates the protocol version of the message
3570   received by the server or client along each segment of the
3571   request/response chain. The received-protocol version is appended to
3572   the Via field value when the message is forwarded so that information
3573   about the protocol capabilities of upstream applications remains
3574   visible to all recipients.
3575</t>
3576<t>
3577   The protocol-name is excluded if and only if it would be "HTTP". The
3578   received-by field is normally the host and optional port number of a
3579   recipient server or client that subsequently forwarded the message.
3580   However, if the real host is considered to be sensitive information,
3581   it &MAY; be replaced by a pseudonym. If the port is not given, it &MAY;
3582   be assumed to be the default port of the received-protocol.
3583</t>
3584<t>
3585   Multiple Via field values represent each proxy or gateway that has
3586   forwarded the message. Each recipient &MUST; append its information
3587   such that the end result is ordered according to the sequence of
3588   forwarding applications.
3589</t>
3590<t>
3591   Comments &MAY; be used in the Via header field to identify the software
3592   of each recipient, analogous to the User-Agent and Server header fields.
3593   However, all comments in the Via field are optional and &MAY; be removed
3594   by any recipient prior to forwarding the message.
3595</t>
3596<t>
3597   For example, a request message could be sent from an HTTP/1.0 user
3598   agent to an internal proxy code-named "fred", which uses HTTP/1.1 to
3599   forward the request to a public proxy at p.example.net, which completes
3600   the request by forwarding it to the origin server at www.example.com.
3601   The request received by www.example.com would then have the following
3602   Via header field:
3603</t>
3604<figure><artwork type="example">
3605  Via: 1.0 fred, 1.1 p.example.net (Apache/1.1)
3606</artwork></figure>
3607<t>
3608   A proxy or gateway used as a portal through a network firewall
3609   &SHOULD-NOT; forward the names and ports of hosts within the firewall
3610   region unless it is explicitly enabled to do so. If not enabled, the
3611   received-by host of any host behind the firewall &SHOULD; be replaced
3612   by an appropriate pseudonym for that host.
3613</t>
3614<t>
3615   For organizations that have strong privacy requirements for hiding
3616   internal structures, a proxy or gateway &MAY; combine an ordered
3617   subsequence of Via header field entries with identical received-protocol
3618   values into a single such entry. For example,
3619</t>
3620<figure><artwork type="example">
3621  Via: 1.0 ricky, 1.1 ethel, 1.1 fred, 1.0 lucy
3622</artwork></figure>
3623<t>
3624  could be collapsed to
3625</t>
3626<figure><artwork type="example">
3627  Via: 1.0 ricky, 1.1 mertz, 1.0 lucy
3628</artwork></figure>
3629<t>
3630   Senders &SHOULD-NOT; combine multiple entries unless they are all
3631   under the same organizational control and the hosts have already been
3632   replaced by pseudonyms. Senders &MUST-NOT; combine entries which
3633   have different received-protocol values.
3634</t>
3635</section>
3636
3637</section>
3638
3639<section title="IANA Considerations" anchor="IANA.considerations">
3640
3641<section title="Header Field Registration" anchor="header.field.registration">
3642<t>
3643   The Message Header Field Registry located at <eref target="http://www.iana.org/assignments/message-headers/message-header-index.html"/> shall be updated
3644   with the permanent registrations below (see <xref target="RFC3864"/>):
3645</t>
3646<?BEGININC p1-messaging.iana-headers ?>
3647<!--AUTOGENERATED FROM extract-header-defs.xslt, do not edit manually-->
3648<texttable align="left" suppress-title="true" anchor="iana.header.registration.table">
3649   <ttcol>Header Field Name</ttcol>
3650   <ttcol>Protocol</ttcol>
3651   <ttcol>Status</ttcol>
3652   <ttcol>Reference</ttcol>
3653
3654   <c>Connection</c>
3655   <c>http</c>
3656   <c>standard</c>
3657   <c>
3658      <xref target="header.connection"/>
3659   </c>
3660   <c>Content-Length</c>
3661   <c>http</c>
3662   <c>standard</c>
3663   <c>
3664      <xref target="header.content-length"/>
3665   </c>
3666   <c>Date</c>
3667   <c>http</c>
3668   <c>standard</c>
3669   <c>
3670      <xref target="header.date"/>
3671   </c>
3672   <c>Host</c>
3673   <c>http</c>
3674   <c>standard</c>
3675   <c>
3676      <xref target="header.host"/>
3677   </c>
3678   <c>TE</c>
3679   <c>http</c>
3680   <c>standard</c>
3681   <c>
3682      <xref target="header.te"/>
3683   </c>
3684   <c>Trailer</c>
3685   <c>http</c>
3686   <c>standard</c>
3687   <c>
3688      <xref target="header.trailer"/>
3689   </c>
3690   <c>Transfer-Encoding</c>
3691   <c>http</c>
3692   <c>standard</c>
3693   <c>
3694      <xref target="header.transfer-encoding"/>
3695   </c>
3696   <c>Upgrade</c>
3697   <c>http</c>
3698   <c>standard</c>
3699   <c>
3700      <xref target="header.upgrade"/>
3701   </c>
3702   <c>Via</c>
3703   <c>http</c>
3704   <c>standard</c>
3705   <c>
3706      <xref target="header.via"/>
3707   </c>
3708</texttable>
3709<!--(END)-->
3710<?ENDINC p1-messaging.iana-headers ?>
3711<t>
3712   Furthermore, the header field name "Close" shall be registered as "reserved", as its use as
3713   HTTP header field would be in conflict with the use of the "close" connection
3714   option for the "Connection" header field (<xref target="header.connection"/>).
3715</t>
3716<texttable align="left" suppress-title="true">
3717   <ttcol>Header Field Name</ttcol>
3718   <ttcol>Protocol</ttcol>
3719   <ttcol>Status</ttcol>
3720   <ttcol>Reference</ttcol>
3721
3722   <c>Close</c>
3723   <c>http</c>
3724   <c>reserved</c>
3725   <c>
3726      <xref target="header.field.registration"/>
3727   </c>
3728</texttable>
3729<t>
3730   The change controller is: "IETF (iesg@ietf.org) - Internet Engineering Task Force".
3731</t>
3732</section>
3733
3734<section title="URI Scheme Registration" anchor="uri.scheme.registration">
3735<t>
3736   The entries for the "http" and "https" URI Schemes in the registry located at
3737   <eref target="http://www.iana.org/assignments/uri-schemes.html"/>
3738   shall be updated to point to Sections <xref target="http.uri" format="counter"/>
3739   and <xref target="https.uri" format="counter"/> of this document
3740   (see <xref target="RFC4395"/>).
3741</t>
3742</section>
3743
3744<section title="Internet Media Type Registrations" anchor="internet.media.type.http">
3745<t>
3746   This document serves as the specification for the Internet media types
3747   "message/http" and "application/http". The following is to be registered with
3748   IANA (see <xref target="RFC4288"/>).
3749</t>
3750<section title="Internet Media Type message/http" anchor="internet.media.type.message.http">
3751<iref item="Media Type" subitem="message/http" primary="true"/>
3752<iref item="message/http Media Type" primary="true"/>
3753<t>
3754   The message/http type can be used to enclose a single HTTP request or
3755   response message, provided that it obeys the MIME restrictions for all
3756   "message" types regarding line length and encodings.
3757</t>
3758<t>
3759  <list style="hanging" x:indent="12em">
3760    <t hangText="Type name:">
3761      message
3762    </t>
3763    <t hangText="Subtype name:">
3764      http
3765    </t>
3766    <t hangText="Required parameters:">
3767      none
3768    </t>
3769    <t hangText="Optional parameters:">
3770      version, msgtype
3771      <list style="hanging">
3772        <t hangText="version:">
3773          The HTTP-Version number of the enclosed message
3774          (e.g., "1.1"). If not present, the version can be
3775          determined from the first line of the body.
3776        </t>
3777        <t hangText="msgtype:">
3778          The message type &mdash; "request" or "response". If not
3779          present, the type can be determined from the first
3780          line of the body.
3781        </t>
3782      </list>
3783    </t>
3784    <t hangText="Encoding considerations:">
3785      only "7bit", "8bit", or "binary" are permitted
3786    </t>
3787    <t hangText="Security considerations:">
3788      none
3789    </t>
3790    <t hangText="Interoperability considerations:">
3791      none
3792    </t>
3793    <t hangText="Published specification:">
3794      This specification (see <xref target="internet.media.type.message.http"/>).
3795    </t>
3796    <t hangText="Applications that use this media type:">
3797    </t>
3798    <t hangText="Additional information:">
3799      <list style="hanging">
3800        <t hangText="Magic number(s):">none</t>
3801        <t hangText="File extension(s):">none</t>
3802        <t hangText="Macintosh file type code(s):">none</t>
3803      </list>
3804    </t>
3805    <t hangText="Person and email address to contact for further information:">
3806      See Authors Section.
3807    </t>
3808    <t hangText="Intended usage:">
3809      COMMON
3810    </t>
3811    <t hangText="Restrictions on usage:">
3812      none
3813    </t>
3814    <t hangText="Author/Change controller:">
3815      IESG
3816    </t>
3817  </list>
3818</t>
3819</section>
3820<section title="Internet Media Type application/http" anchor="internet.media.type.application.http">
3821<iref item="Media Type" subitem="application/http" primary="true"/>
3822<iref item="application/http Media Type" primary="true"/>
3823<t>
3824   The application/http type can be used to enclose a pipeline of one or more
3825   HTTP request or response messages (not intermixed).
3826</t>
3827<t>
3828  <list style="hanging" x:indent="12em">
3829    <t hangText="Type name:">
3830      application
3831    </t>
3832    <t hangText="Subtype name:">
3833      http
3834    </t>
3835    <t hangText="Required parameters:">
3836      none
3837    </t>
3838    <t hangText="Optional parameters:">
3839      version, msgtype
3840      <list style="hanging">
3841        <t hangText="version:">
3842          The HTTP-Version number of the enclosed messages
3843          (e.g., "1.1"). If not present, the version can be
3844          determined from the first line of the body.
3845        </t>
3846        <t hangText="msgtype:">
3847          The message type &mdash; "request" or "response". If not
3848          present, the type can be determined from the first
3849          line of the body.
3850        </t>
3851      </list>
3852    </t>
3853    <t hangText="Encoding considerations:">
3854      HTTP messages enclosed by this type
3855      are in "binary" format; use of an appropriate
3856      Content-Transfer-Encoding is required when
3857      transmitted via E-mail.
3858    </t>
3859    <t hangText="Security considerations:">
3860      none
3861    </t>
3862    <t hangText="Interoperability considerations:">
3863      none
3864    </t>
3865    <t hangText="Published specification:">
3866      This specification (see <xref target="internet.media.type.application.http"/>).
3867    </t>
3868    <t hangText="Applications that use this media type:">
3869    </t>
3870    <t hangText="Additional information:">
3871      <list style="hanging">
3872        <t hangText="Magic number(s):">none</t>
3873        <t hangText="File extension(s):">none</t>
3874        <t hangText="Macintosh file type code(s):">none</t>
3875      </list>
3876    </t>
3877    <t hangText="Person and email address to contact for further information:">
3878      See Authors Section.
3879    </t>
3880    <t hangText="Intended usage:">
3881      COMMON
3882    </t>
3883    <t hangText="Restrictions on usage:">
3884      none
3885    </t>
3886    <t hangText="Author/Change controller:">
3887      IESG
3888    </t>
3889  </list>
3890</t>
3891</section>
3892</section>
3893
3894<section title="Transfer Coding Registry" anchor="transfer.coding.registration">
3895<t>
3896   The registration procedure for HTTP Transfer Codings is now defined by
3897   <xref target="transfer.coding.registry"/> of this document.
3898</t>
3899<t>
3900   The HTTP Transfer Codings Registry located at <eref target="http://www.iana.org/assignments/http-parameters"/>
3901   shall be updated with the registrations below:
3902</t>
3903<texttable align="left" suppress-title="true" anchor="iana.transfer.coding.registration.table">
3904   <ttcol>Name</ttcol>
3905   <ttcol>Description</ttcol>
3906   <ttcol>Reference</ttcol>
3907   <c>chunked</c>
3908   <c>Transfer in a series of chunks</c>
3909   <c>
3910      <xref target="chunked.encoding"/>
3911   </c>
3912   <c>compress</c>
3913   <c>UNIX "compress" program method</c>
3914   <c>
3915      <xref target="compress.coding"/>
3916   </c>
3917   <c>deflate</c>
3918   <c>"deflate" compression mechanism (<xref target="RFC1951"/>) used inside
3919   the "zlib" data format (<xref target="RFC1950"/>)
3920   </c>
3921   <c>
3922      <xref target="deflate.coding"/>
3923   </c>
3924   <c>gzip</c>
3925   <c>Same as GNU zip <xref target="RFC1952"/></c>
3926   <c>
3927      <xref target="gzip.coding"/>
3928   </c>
3929</texttable>
3930</section>
3931
3932<section title="Upgrade Token Registration" anchor="upgrade.token.registration">
3933<t>
3934   The registration procedure for HTTP Upgrade Tokens &mdash; previously defined
3935   in <xref target="RFC2817" x:fmt="of" x:sec="7.2"/> &mdash; is now defined
3936   by <xref target="upgrade.token.registry"/> of this document.
3937</t>
3938<t>
3939   The HTTP Status Code Registry located at <eref target="http://www.iana.org/assignments/http-upgrade-tokens/"/>
3940   shall be updated with the registration below:
3941</t>
3942<texttable align="left" suppress-title="true">
3943   <ttcol>Value</ttcol>
3944   <ttcol>Description</ttcol>
3945   <ttcol>Reference</ttcol>
3946
3947   <c>HTTP</c>
3948   <c>Hypertext Transfer Protocol</c> 
3949   <c><xref target="http.version"/> of this specification</c>
3950
3951</texttable>
3952</section>
3953
3954</section>
3955
3956<section title="Security Considerations" anchor="security.considerations">
3957<t>
3958   This section is meant to inform application developers, information
3959   providers, and users of the security limitations in HTTP/1.1 as
3960   described by this document. The discussion does not include
3961   definitive solutions to the problems revealed, though it does make
3962   some suggestions for reducing security risks.
3963</t>
3964
3965<section title="Personal Information" anchor="personal.information">
3966<t>
3967   HTTP clients are often privy to large amounts of personal information
3968   (e.g., the user's name, location, mail address, passwords, encryption
3969   keys, etc.), and &SHOULD; be very careful to prevent unintentional
3970   leakage of this information.
3971   We very strongly recommend that a convenient interface be provided
3972   for the user to control dissemination of such information, and that
3973   designers and implementors be particularly careful in this area.
3974   History shows that errors in this area often create serious security
3975   and/or privacy problems and generate highly adverse publicity for the
3976   implementor's company.
3977</t>
3978</section>
3979
3980<section title="Abuse of Server Log Information" anchor="abuse.of.server.log.information">
3981<t>
3982   A server is in the position to save personal data about a user's
3983   requests which might identify their reading patterns or subjects of
3984   interest. This information is clearly confidential in nature and its
3985   handling can be constrained by law in certain countries. People using
3986   HTTP to provide data are responsible for ensuring that
3987   such material is not distributed without the permission of any
3988   individuals that are identifiable by the published results.
3989</t>
3990</section>
3991
3992<section title="Attacks Based On File and Path Names" anchor="attack.pathname">
3993<t>
3994   Implementations of HTTP origin servers &SHOULD; be careful to restrict
3995   the documents returned by HTTP requests to be only those that were
3996   intended by the server administrators. If an HTTP server translates
3997   HTTP URIs directly into file system calls, the server &MUST; take
3998   special care not to serve files that were not intended to be
3999   delivered to HTTP clients. For example, UNIX, Microsoft Windows, and
4000   other operating systems use ".." as a path component to indicate a
4001   directory level above the current one. On such a system, an HTTP
4002   server &MUST; disallow any such construct in the request-target if it
4003   would otherwise allow access to a resource outside those intended to
4004   be accessible via the HTTP server. Similarly, files intended for
4005   reference only internally to the server (such as access control
4006   files, configuration files, and script code) &MUST; be protected from
4007   inappropriate retrieval, since they might contain sensitive
4008   information. Experience has shown that minor bugs in such HTTP server
4009   implementations have turned into security risks.
4010</t>
4011</section>
4012
4013<section title="DNS Spoofing" anchor="dns.spoofing">
4014<t>
4015   Clients using HTTP rely heavily on the Domain Name Service, and are
4016   thus generally prone to security attacks based on the deliberate
4017   mis-association of IP addresses and DNS names. Clients need to be
4018   cautious in assuming the continuing validity of an IP number/DNS name
4019   association.
4020</t>
4021<t>
4022   In particular, HTTP clients &SHOULD; rely on their name resolver for
4023   confirmation of an IP number/DNS name association, rather than
4024   caching the result of previous host name lookups. Many platforms
4025   already can cache host name lookups locally when appropriate, and
4026   they &SHOULD; be configured to do so. It is proper for these lookups to
4027   be cached, however, only when the TTL (Time To Live) information
4028   reported by the name server makes it likely that the cached
4029   information will remain useful.
4030</t>
4031<t>
4032   If HTTP clients cache the results of host name lookups in order to
4033   achieve a performance improvement, they &MUST; observe the TTL
4034   information reported by DNS.
4035</t>
4036<t>
4037   If HTTP clients do not observe this rule, they could be spoofed when
4038   a previously-accessed server's IP address changes. As network
4039   renumbering is expected to become increasingly common <xref target="RFC1900"/>, the
4040   possibility of this form of attack will grow. Observing this
4041   requirement thus reduces this potential security vulnerability.
4042</t>
4043<t>
4044   This requirement also improves the load-balancing behavior of clients
4045   for replicated servers using the same DNS name and reduces the
4046   likelihood of a user's experiencing failure in accessing sites which
4047   use that strategy.
4048</t>
4049</section>
4050
4051<section title="Proxies and Caching" anchor="attack.proxies">
4052<t>
4053   By their very nature, HTTP proxies are men-in-the-middle, and
4054   represent an opportunity for man-in-the-middle attacks. Compromise of
4055   the systems on which the proxies run can result in serious security
4056   and privacy problems. Proxies have access to security-related
4057   information, personal information about individual users and
4058   organizations, and proprietary information belonging to users and
4059   content providers. A compromised proxy, or a proxy implemented or
4060   configured without regard to security and privacy considerations,
4061   might be used in the commission of a wide range of potential attacks.
4062</t>
4063<t>
4064   Proxy operators need to protect the systems on which proxies run as
4065   they would protect any system that contains or transports sensitive
4066   information. In particular, log information gathered at proxies often
4067   contains highly sensitive personal information, and/or information
4068   about organizations. Log information needs to be carefully guarded, and
4069   appropriate guidelines for use need to be developed and followed.
4070   (<xref target="abuse.of.server.log.information"/>).
4071</t>
4072<t>
4073   Proxy implementors need to consider the privacy and security
4074   implications of their design and coding decisions, and of the
4075   configuration options they provide to proxy operators (especially the
4076   default configuration).
4077</t>
4078<t>
4079   Users of a proxy need to be aware that proxies are no trustworthier than
4080   the people who run them; HTTP itself cannot solve this problem.
4081</t>
4082<t>
4083   The judicious use of cryptography, when appropriate, might suffice to
4084   protect against a broad range of security and privacy attacks. Such
4085   cryptography is beyond the scope of the HTTP/1.1 specification.
4086</t>
4087</section>
4088
4089<section title="Protocol Element Size Overflows" anchor="attack.protocol.element.size.overflows">
4090<t>
4091   Because HTTP uses mostly textual, character-delimited fields, attackers can
4092   overflow buffers in implementations, and/or perform a Denial of Service
4093   against implementations that accept fields with unlimited lengths.
4094</t>
4095<t>
4096   To promote interoperability, this specification makes specific
4097   recommendations for size limits on request-targets (<xref target="request-target"/>)
4098   and blocks of header fields (<xref target="header.fields"/>). These are
4099   minimum recommendations, chosen to be supportable even by implementations
4100   with limited resources; it is expected that most implementations will choose
4101   substantially higher limits.
4102</t>
4103<t>
4104   This specification also provides a way for servers to reject messages that
4105   have request-targets that are too long (&status-414;) or request entities
4106   that are too large (&status-4xx;).
4107</t>
4108<t>
4109   Other fields (including but not limited to request methods, response status
4110   phrases, header field-names, and body chunks) &SHOULD; be limited by
4111   implementations carefully, so as to not impede interoperability.
4112</t>
4113</section>
4114
4115<section title="Denial of Service Attacks on Proxies" anchor="attack.DoS">
4116<t>
4117   They exist. They are hard to defend against. Research continues.
4118   Beware.
4119</t>
4120</section>
4121</section>
4122
4123<section title="Acknowledgments" anchor="acks">
4124<t>
4125   This document revision builds on the work that went into
4126   <xref target="RFC2616" format="none">RFC 2616</xref> and its predecessors.
4127   See <xref target="RFC2616" x:fmt="of" x:sec="16"/> for detailed
4128   acknowledgements.
4129</t>
4130<t>
4131  <cref anchor="todoacks">Insert HTTPbis-specific acknowledgements here.</cref>
4132</t>
4133<!--
4134
4135Acknowledgements TODO list
4136
4137- Jeff Hodges ("effective request URI")
4138
4139-->
4140</section>
4141
4142</middle>
4143<back>
4144
4145<references title="Normative References">
4146
4147<reference anchor="ISO-8859-1">
4148  <front>
4149    <title>
4150     Information technology -- 8-bit single-byte coded graphic character sets -- Part 1: Latin alphabet No. 1
4151    </title>
4152    <author>
4153      <organization>International Organization for Standardization</organization>
4154    </author>
4155    <date year="1998"/>
4156  </front>
4157  <seriesInfo name="ISO/IEC" value="8859-1:1998"/>
4158</reference>
4159
4160<reference anchor="Part2">
4161  <front>
4162    <title abbrev="HTTP/1.1">HTTP/1.1, part 2: Message Semantics</title>
4163    <author initials="R." surname="Fielding" fullname="Roy T. Fielding" role="editor">
4164      <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
4165      <address><email>fielding@gbiv.com</email></address>
4166    </author>
4167    <author initials="J." surname="Gettys" fullname="Jim Gettys">
4168      <organization abbrev="Alcatel-Lucent">Alcatel-Lucent Bell Labs</organization>
4169      <address><email>jg@freedesktop.org</email></address>
4170    </author>
4171    <author initials="J." surname="Mogul" fullname="Jeffrey C. Mogul">
4172      <organization abbrev="HP">Hewlett-Packard Company</organization>
4173      <address><email>JeffMogul@acm.org</email></address>
4174    </author>
4175    <author initials="H." surname="Frystyk" fullname="Henrik Frystyk Nielsen">
4176      <organization abbrev="Microsoft">Microsoft Corporation</organization>
4177      <address><email>henrikn@microsoft.com</email></address>
4178    </author>
4179    <author initials="L." surname="Masinter" fullname="Larry Masinter">
4180      <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
4181      <address><email>LMM@acm.org</email></address>
4182    </author>
4183    <author initials="P." surname="Leach" fullname="Paul J. Leach">
4184      <organization abbrev="Microsoft">Microsoft Corporation</organization>
4185      <address><email>paulle@microsoft.com</email></address>
4186    </author>
4187    <author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
4188      <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
4189      <address><email>timbl@w3.org</email></address>
4190    </author>
4191    <author initials="Y." surname="Lafon" fullname="Yves Lafon" role="editor">
4192      <organization abbrev="W3C">World Wide Web Consortium</organization>
4193      <address><email>ylafon@w3.org</email></address>
4194    </author>
4195    <author initials="J. F." surname="Reschke" fullname="Julian F. Reschke" role="editor">
4196      <organization abbrev="greenbytes">greenbytes GmbH</organization>
4197      <address><email>julian.reschke@greenbytes.de</email></address>
4198    </author>
4199    <date month="&ID-MONTH;" year="&ID-YEAR;"/>
4200  </front>
4201  <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-p2-semantics-&ID-VERSION;"/>
4202  <x:source href="p2-semantics.xml" basename="p2-semantics"/>
4203</reference>
4204
4205<reference anchor="Part3">
4206  <front>
4207    <title abbrev="HTTP/1.1">HTTP/1.1, part 3: Message Payload and Content Negotiation</title>
4208    <author initials="R." surname="Fielding" fullname="Roy T. Fielding" role="editor">
4209      <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
4210      <address><email>fielding@gbiv.com</email></address>
4211    </author>
4212    <author initials="J." surname="Gettys" fullname="Jim Gettys">
4213      <organization abbrev="Alcatel-Lucent">Alcatel-Lucent Bell Labs</organization>
4214      <address><email>jg@freedesktop.org</email></address>
4215    </author>
4216    <author initials="J." surname="Mogul" fullname="Jeffrey C. Mogul">
4217      <organization abbrev="HP">Hewlett-Packard Company</organization>
4218      <address><email>JeffMogul@acm.org</email></address>
4219    </author>
4220    <author initials="H." surname="Frystyk" fullname="Henrik Frystyk Nielsen">
4221      <organization abbrev="Microsoft">Microsoft Corporation</organization>
4222      <address><email>henrikn@microsoft.com</email></address>
4223    </author>
4224    <author initials="L." surname="Masinter" fullname="Larry Masinter">
4225      <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
4226      <address><email>LMM@acm.org</email></address>
4227    </author>
4228    <author initials="P." surname="Leach" fullname="Paul J. Leach">
4229      <organization abbrev="Microsoft">Microsoft Corporation</organization>
4230      <address><email>paulle@microsoft.com</email></address>
4231    </author>
4232    <author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
4233      <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
4234      <address><email>timbl@w3.org</email></address>
4235    </author>
4236    <author initials="Y." surname="Lafon" fullname="Yves Lafon" role="editor">
4237      <organization abbrev="W3C">World Wide Web Consortium</organization>
4238      <address><email>ylafon@w3.org</email></address>
4239    </author>
4240    <author initials="J. F." surname="Reschke" fullname="Julian F. Reschke" role="editor">
4241      <organization abbrev="greenbytes">greenbytes GmbH</organization>
4242      <address><email>julian.reschke@greenbytes.de</email></address>
4243    </author>
4244    <date month="&ID-MONTH;" year="&ID-YEAR;"/>
4245  </front>
4246  <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-p3-payload-&ID-VERSION;"/>
4247  <x:source href="p3-payload.xml" basename="p3-payload"/>
4248</reference>
4249
4250<reference anchor="Part6">
4251  <front>
4252    <title abbrev="HTTP/1.1">HTTP/1.1, part 6: Caching</title>
4253    <author initials="R." surname="Fielding" fullname="Roy T. Fielding" role="editor">
4254      <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
4255      <address><email>fielding@gbiv.com</email></address>
4256    </author>
4257    <author initials="J." surname="Gettys" fullname="Jim Gettys">
4258      <organization abbrev="Alcatel-Lucent">Alcatel-Lucent Bell Labs</organization>
4259      <address><email>jg@freedesktop.org</email></address>
4260    </author>
4261    <author initials="J." surname="Mogul" fullname="Jeffrey C. Mogul">
4262      <organization abbrev="HP">Hewlett-Packard Company</organization>
4263      <address><email>JeffMogul@acm.org</email></address>
4264    </author>
4265    <author initials="H." surname="Frystyk" fullname="Henrik Frystyk Nielsen">
4266      <organization abbrev="Microsoft">Microsoft Corporation</organization>
4267      <address><email>henrikn@microsoft.com</email></address>
4268    </author>
4269    <author initials="L." surname="Masinter" fullname="Larry Masinter">
4270      <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
4271      <address><email>LMM@acm.org</email></address>
4272    </author>
4273    <author initials="P." surname="Leach" fullname="Paul J. Leach">
4274      <organization abbrev="Microsoft">Microsoft Corporation</organization>
4275      <address><email>paulle@microsoft.com</email></address>
4276    </author>
4277    <author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
4278      <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
4279      <address><email>timbl@w3.org</email></address>
4280    </author>
4281    <author initials="Y." surname="Lafon" fullname="Yves Lafon" role="editor">
4282      <organization abbrev="W3C">World Wide Web Consortium</organization>
4283      <address><email>ylafon@w3.org</email></address>
4284    </author>
4285    <author initials="M." surname="Nottingham" fullname="Mark Nottingham" role="editor">
4286      <address><email>mnot@mnot.net</email></address>
4287    </author>
4288    <author initials="J. F." surname="Reschke" fullname="Julian F. Reschke" role="editor">
4289      <organization abbrev="greenbytes">greenbytes GmbH</organization>
4290      <address><email>julian.reschke@greenbytes.de</email></address>
4291    </author>
4292    <date month="&ID-MONTH;" year="&ID-YEAR;"/>
4293  </front>
4294  <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-p6-cache-&ID-VERSION;"/>
4295  <x:source href="p6-cache.xml" basename="p6-cache"/>
4296</reference>
4297
4298<reference anchor="RFC5234">
4299  <front>
4300    <title abbrev="ABNF for Syntax Specifications">Augmented BNF for Syntax Specifications: ABNF</title>
4301    <author initials="D." surname="Crocker" fullname="Dave Crocker" role="editor">
4302      <organization>Brandenburg InternetWorking</organization>
4303      <address>
4304        <email>dcrocker@bbiw.net</email>
4305      </address> 
4306    </author>
4307    <author initials="P." surname="Overell" fullname="Paul Overell">
4308      <organization>THUS plc.</organization>
4309      <address>
4310        <email>paul.overell@thus.net</email>
4311      </address>
4312    </author>
4313    <date month="January" year="2008"/>
4314  </front>
4315  <seriesInfo name="STD" value="68"/>
4316  <seriesInfo name="RFC" value="5234"/>
4317</reference>
4318
4319<reference anchor="RFC2119">
4320  <front>
4321    <title>Key words for use in RFCs to Indicate Requirement Levels</title>
4322    <author initials="S." surname="Bradner" fullname="Scott Bradner">
4323      <organization>Harvard University</organization>
4324      <address><email>sob@harvard.edu</email></address>
4325    </author>
4326    <date month="March" year="1997"/>
4327  </front>
4328  <seriesInfo name="BCP" value="14"/>
4329  <seriesInfo name="RFC" value="2119"/>
4330</reference>
4331
4332<reference anchor="RFC3986">
4333 <front>
4334  <title abbrev='URI Generic Syntax'>Uniform Resource Identifier (URI): Generic Syntax</title>
4335  <author initials='T.' surname='Berners-Lee' fullname='Tim Berners-Lee'>
4336    <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
4337    <address>
4338       <email>timbl@w3.org</email>
4339       <uri>http://www.w3.org/People/Berners-Lee/</uri>
4340    </address>
4341  </author>
4342  <author initials='R.' surname='Fielding' fullname='Roy T. Fielding'>
4343    <organization abbrev="Day Software">Day Software</organization>
4344    <address>
4345      <email>fielding@gbiv.com</email>
4346      <uri>http://roy.gbiv.com/</uri>
4347    </address>
4348  </author>
4349  <author initials='L.' surname='Masinter' fullname='Larry Masinter'>
4350    <organization abbrev="Adobe Systems">Adobe Systems Incorporated</organization>
4351    <address>
4352      <email>LMM@acm.org</email>
4353      <uri>http://larry.masinter.net/</uri>
4354    </address>
4355  </author>
4356  <date month='January' year='2005'></date>
4357 </front>
4358 <seriesInfo name="STD" value="66"/>
4359 <seriesInfo name="RFC" value="3986"/>
4360</reference>
4361
4362<reference anchor="USASCII">
4363  <front>
4364    <title>Coded Character Set -- 7-bit American Standard Code for Information Interchange</title>
4365    <author>
4366      <organization>American National Standards Institute</organization>
4367    </author>
4368    <date year="1986"/>
4369  </front>
4370  <seriesInfo name="ANSI" value="X3.4"/>
4371</reference>
4372
4373<reference anchor="RFC1950">
4374  <front>
4375    <title>ZLIB Compressed Data Format Specification version 3.3</title>
4376    <author initials="L.P." surname="Deutsch" fullname="L. Peter Deutsch">
4377      <organization>Aladdin Enterprises</organization>
4378      <address><email>ghost@aladdin.com</email></address>
4379    </author>
4380    <author initials="J-L." surname="Gailly" fullname="Jean-Loup Gailly"/>
4381    <date month="May" year="1996"/>
4382  </front>
4383  <seriesInfo name="RFC" value="1950"/>
4384  <annotation>
4385    RFC 1950 is an Informational RFC, thus it might be less stable than
4386    this specification. On the other hand, this downward reference was
4387    present since the publication of RFC 2068 in 1997 (<xref target="RFC2068"/>),
4388    therefore it is unlikely to cause problems in practice. See also
4389    <xref target="BCP97"/>.
4390  </annotation>
4391</reference>
4392
4393<reference anchor="RFC1951">
4394  <front>
4395    <title>DEFLATE Compressed Data Format Specification version 1.3</title>
4396    <author initials="P." surname="Deutsch" fullname="L. Peter Deutsch">
4397      <organization>Aladdin Enterprises</organization>
4398      <address><email>ghost@aladdin.com</email></address>
4399    </author>
4400    <date month="May" year="1996"/>
4401  </front>
4402  <seriesInfo name="RFC" value="1951"/>
4403  <annotation>
4404    RFC 1951 is an Informational RFC, thus it might be less stable than
4405    this specification. On the other hand, this downward reference was
4406    present since the publication of RFC 2068 in 1997 (<xref target="RFC2068"/>),
4407    therefore it is unlikely to cause problems in practice. See also
4408    <xref target="BCP97"/>.
4409  </annotation>
4410</reference>
4411
4412<reference anchor="RFC1952">
4413  <front>
4414    <title>GZIP file format specification version 4.3</title>
4415    <author initials="P." surname="Deutsch" fullname="L. Peter Deutsch">
4416      <organization>Aladdin Enterprises</organization>
4417      <address><email>ghost@aladdin.com</email></address>
4418    </author>
4419    <author initials="J-L." surname="Gailly" fullname="Jean-Loup Gailly">
4420      <address><email>gzip@prep.ai.mit.edu</email></address>
4421    </author>
4422    <author initials="M." surname="Adler" fullname="Mark Adler">
4423      <address><email>madler@alumni.caltech.edu</email></address>
4424    </author>
4425    <author initials="L.P." surname="Deutsch" fullname="L. Peter Deutsch">
4426      <address><email>ghost@aladdin.com</email></address>
4427    </author>
4428    <author initials="G." surname="Randers-Pehrson" fullname="Glenn Randers-Pehrson">
4429      <address><email>randeg@alumni.rpi.edu</email></address>
4430    </author>
4431    <date month="May" year="1996"/>
4432  </front>
4433  <seriesInfo name="RFC" value="1952"/>
4434  <annotation>
4435    RFC 1952 is an Informational RFC, thus it might be less stable than
4436    this specification. On the other hand, this downward reference was
4437    present since the publication of RFC 2068 in 1997 (<xref target="RFC2068"/>),
4438    therefore it is unlikely to cause problems in practice. See also
4439    <xref target="BCP97"/>.
4440  </annotation>
4441</reference>
4442
4443</references>
4444
4445<references title="Informative References">
4446
4447<reference anchor="Nie1997" target="http://doi.acm.org/10.1145/263105.263157">
4448  <front>
4449    <title>Network Performance Effects of HTTP/1.1, CSS1, and PNG</title>
4450    <author initials="H." surname="Frystyk" fullname="Henrik Frystyk Nielsen"/>
4451    <author initials="J." surname="Gettys" fullname="J. Gettys"/>
4452    <author initials="E." surname="Prud'hommeaux" fullname="E. Prud'hommeaux"/>
4453    <author initials="H." surname="Lie" fullname="H. Lie"/>
4454    <author initials="C." surname="Lilley" fullname="C. Lilley"/>
4455    <date year="1997" month="September"/>
4456  </front>
4457  <seriesInfo name="ACM" value="Proceedings of the ACM SIGCOMM '97 conference on Applications, technologies, architectures, and protocols for computer communication SIGCOMM '97"/>
4458</reference>
4459
4460<reference anchor="Pad1995" target="http://portal.acm.org/citation.cfm?id=219094">
4461  <front>
4462    <title>Improving HTTP Latency</title>
4463    <author initials="V.N." surname="Padmanabhan" fullname="Venkata N. Padmanabhan"/>
4464    <author initials="J.C." surname="Mogul" fullname="Jeffrey C. Mogul"/>
4465    <date year="1995" month="December"/>
4466  </front>
4467  <seriesInfo name="Computer Networks and ISDN Systems" value="v. 28, pp. 25-35"/>
4468</reference>
4469
4470<reference anchor="RFC1123">
4471  <front>
4472    <title>Requirements for Internet Hosts - Application and Support</title>
4473    <author initials="R." surname="Braden" fullname="Robert Braden">
4474      <organization>University of Southern California (USC), Information Sciences Institute</organization>
4475      <address><email>Braden@ISI.EDU</email></address>
4476    </author>
4477    <date month="October" year="1989"/>
4478  </front>
4479  <seriesInfo name="STD" value="3"/>
4480  <seriesInfo name="RFC" value="1123"/>
4481</reference>
4482
4483<reference anchor="RFC1900">
4484  <front>
4485    <title>Renumbering Needs Work</title>
4486    <author initials="B." surname="Carpenter" fullname="Brian E. Carpenter">
4487      <organization>CERN, Computing and Networks Division</organization>
4488      <address><email>brian@dxcoms.cern.ch</email></address>
4489    </author>
4490    <author initials="Y." surname="Rekhter" fullname="Yakov Rekhter">
4491      <organization>cisco Systems</organization>
4492      <address><email>yakov@cisco.com</email></address>
4493    </author>
4494    <date month="February" year="1996"/>
4495  </front>
4496  <seriesInfo name="RFC" value="1900"/>
4497</reference>
4498
4499<reference anchor='RFC1919'>
4500  <front>
4501    <title>Classical versus Transparent IP Proxies</title>
4502    <author initials='M.' surname='Chatel' fullname='Marc Chatel'>
4503      <address><email>mchatel@pax.eunet.ch</email></address>
4504    </author>
4505    <date year='1996' month='March' />
4506  </front>
4507  <seriesInfo name='RFC' value='1919' />
4508</reference>
4509
4510<reference anchor="RFC1945">
4511  <front>
4512    <title abbrev="HTTP/1.0">Hypertext Transfer Protocol -- HTTP/1.0</title>
4513    <author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
4514      <organization>MIT, Laboratory for Computer Science</organization>
4515      <address><email>timbl@w3.org</email></address>
4516    </author>
4517    <author initials="R.T." surname="Fielding" fullname="Roy T. Fielding">
4518      <organization>University of California, Irvine, Department of Information and Computer Science</organization>
4519      <address><email>fielding@ics.uci.edu</email></address>
4520    </author>
4521    <author initials="H.F." surname="Nielsen" fullname="Henrik Frystyk Nielsen">
4522      <organization>W3 Consortium, MIT Laboratory for Computer Science</organization>
4523      <address><email>frystyk@w3.org</email></address>
4524    </author>
4525    <date month="May" year="1996"/>
4526  </front>
4527  <seriesInfo name="RFC" value="1945"/>
4528</reference>
4529
4530<reference anchor="RFC2045">
4531  <front>
4532    <title abbrev="Internet Message Bodies">Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies</title>
4533    <author initials="N." surname="Freed" fullname="Ned Freed">
4534      <organization>Innosoft International, Inc.</organization>
4535      <address><email>ned@innosoft.com</email></address>
4536    </author>
4537    <author initials="N.S." surname="Borenstein" fullname="Nathaniel S. Borenstein">
4538      <organization>First Virtual Holdings</organization>
4539      <address><email>nsb@nsb.fv.com</email></address>
4540    </author>
4541    <date month="November" year="1996"/>
4542  </front>
4543  <seriesInfo name="RFC" value="2045"/>
4544</reference>
4545
4546<reference anchor="RFC2047">
4547  <front>
4548    <title abbrev="Message Header Extensions">MIME (Multipurpose Internet Mail Extensions) Part Three: Message Header Extensions for Non-ASCII Text</title>
4549    <author initials="K." surname="Moore" fullname="Keith Moore">
4550      <organization>University of Tennessee</organization>
4551      <address><email>moore@cs.utk.edu</email></address>
4552    </author>
4553    <date month="November" year="1996"/>
4554  </front>
4555  <seriesInfo name="RFC" value="2047"/>
4556</reference>
4557
4558<reference anchor="RFC2068">
4559  <front>
4560    <title abbrev="HTTP/1.1">Hypertext Transfer Protocol -- HTTP/1.1</title>
4561    <author initials="R." surname="Fielding" fullname="Roy T. Fielding">
4562      <organization>University of California, Irvine, Department of Information and Computer Science</organization>
4563      <address><email>fielding@ics.uci.edu</email></address>
4564    </author>
4565    <author initials="J." surname="Gettys" fullname="Jim Gettys">
4566      <organization>MIT Laboratory for Computer Science</organization>
4567      <address><email>jg@w3.org</email></address>
4568    </author>
4569    <author initials="J." surname="Mogul" fullname="Jeffrey C. Mogul">
4570      <organization>Digital Equipment Corporation, Western Research Laboratory</organization>
4571      <address><email>mogul@wrl.dec.com</email></address>
4572    </author>
4573    <author initials="H." surname="Nielsen" fullname="Henrik Frystyk Nielsen">
4574      <organization>MIT Laboratory for Computer Science</organization>
4575      <address><email>frystyk@w3.org</email></address>
4576    </author>
4577    <author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
4578      <organization>MIT Laboratory for Computer Science</organization>
4579      <address><email>timbl@w3.org</email></address>
4580    </author>
4581    <date month="January" year="1997"/>
4582  </front>
4583  <seriesInfo name="RFC" value="2068"/>
4584</reference>
4585
4586<reference anchor="RFC2145">
4587  <front>
4588    <title abbrev="HTTP Version Numbers">Use and Interpretation of HTTP Version Numbers</title>
4589    <author initials="J.C." surname="Mogul" fullname="Jeffrey C. Mogul">
4590      <organization>Western Research Laboratory</organization>
4591      <address><email>mogul@wrl.dec.com</email></address>
4592    </author>
4593    <author initials="R.T." surname="Fielding" fullname="Roy T. Fielding">
4594      <organization>Department of Information and Computer Science</organization>
4595      <address><email>fielding@ics.uci.edu</email></address>
4596    </author>
4597    <author initials="J." surname="Gettys" fullname="Jim Gettys">
4598      <organization>MIT Laboratory for Computer Science</organization>
4599      <address><email>jg@w3.org</email></address>
4600    </author>
4601    <author initials="H.F." surname="Nielsen" fullname="Henrik Frystyk Nielsen">
4602      <organization>W3 Consortium</organization>
4603      <address><email>frystyk@w3.org</email></address>
4604    </author>
4605    <date month="May" year="1997"/>
4606  </front>
4607  <seriesInfo name="RFC" value="2145"/>
4608</reference>
4609
4610<reference anchor="RFC2616">
4611  <front>
4612    <title>Hypertext Transfer Protocol -- HTTP/1.1</title>
4613    <author initials="R." surname="Fielding" fullname="R. Fielding">
4614      <organization>University of California, Irvine</organization>
4615      <address><email>fielding@ics.uci.edu</email></address>
4616    </author>
4617    <author initials="J." surname="Gettys" fullname="J. Gettys">
4618      <organization>W3C</organization>
4619      <address><email>jg@w3.org</email></address>
4620    </author>
4621    <author initials="J." surname="Mogul" fullname="J. Mogul">
4622      <organization>Compaq Computer Corporation</organization>
4623      <address><email>mogul@wrl.dec.com</email></address>
4624    </author>
4625    <author initials="H." surname="Frystyk" fullname="H. Frystyk">
4626      <organization>MIT Laboratory for Computer Science</organization>
4627      <address><email>frystyk@w3.org</email></address>
4628    </author>
4629    <author initials="L." surname="Masinter" fullname="L. Masinter">
4630      <organization>Xerox Corporation</organization>
4631      <address><email>masinter@parc.xerox.com</email></address>
4632    </author>
4633    <author initials="P." surname="Leach" fullname="P. Leach">
4634      <organization>Microsoft Corporation</organization>
4635      <address><email>paulle@microsoft.com</email></address>
4636    </author>
4637    <author initials="T." surname="Berners-Lee" fullname="T. Berners-Lee">
4638      <organization>W3C</organization>
4639      <address><email>timbl@w3.org</email></address>
4640    </author>
4641    <date month="June" year="1999"/>
4642  </front>
4643  <seriesInfo name="RFC" value="2616"/>
4644</reference>
4645
4646<reference anchor='RFC2817'>
4647  <front>
4648    <title>Upgrading to TLS Within HTTP/1.1</title>
4649    <author initials='R.' surname='Khare' fullname='R. Khare'>
4650      <organization>4K Associates / UC Irvine</organization>
4651      <address><email>rohit@4K-associates.com</email></address>
4652    </author>
4653    <author initials='S.' surname='Lawrence' fullname='S. Lawrence'>
4654      <organization>Agranat Systems, Inc.</organization>
4655      <address><email>lawrence@agranat.com</email></address>
4656    </author>
4657    <date year='2000' month='May' />
4658  </front>
4659  <seriesInfo name='RFC' value='2817' />
4660</reference>
4661
4662<reference anchor='RFC2818'>
4663  <front>
4664    <title>HTTP Over TLS</title>
4665    <author initials='E.' surname='Rescorla' fullname='Eric Rescorla'>
4666      <organization>RTFM, Inc.</organization>
4667      <address><email>ekr@rtfm.com</email></address>
4668    </author>
4669    <date year='2000' month='May' />
4670  </front>
4671  <seriesInfo name='RFC' value='2818' />
4672</reference>
4673
4674<reference anchor='RFC2965'>
4675  <front>
4676    <title>HTTP State Management Mechanism</title>
4677    <author initials='D. M.' surname='Kristol' fullname='David M. Kristol'>
4678      <organization>Bell Laboratories, Lucent Technologies</organization>
4679      <address><email>dmk@bell-labs.com</email></address>
4680    </author>
4681    <author initials='L.' surname='Montulli' fullname='Lou Montulli'>
4682      <organization>Epinions.com, Inc.</organization>
4683      <address><email>lou@montulli.org</email></address>
4684    </author>
4685    <date year='2000' month='October' />
4686  </front>
4687  <seriesInfo name='RFC' value='2965' />
4688</reference>
4689
4690<reference anchor='RFC3040'>
4691  <front>
4692    <title>Internet Web Replication and Caching Taxonomy</title>
4693    <author initials='I.' surname='Cooper' fullname='I. Cooper'>
4694      <organization>Equinix, Inc.</organization>
4695    </author>
4696    <author initials='I.' surname='Melve' fullname='I. Melve'>
4697      <organization>UNINETT</organization>
4698    </author>
4699    <author initials='G.' surname='Tomlinson' fullname='G. Tomlinson'>
4700      <organization>CacheFlow Inc.</organization>
4701    </author>
4702    <date year='2001' month='January' />
4703  </front>
4704  <seriesInfo name='RFC' value='3040' />
4705</reference>
4706
4707<reference anchor='RFC3864'>
4708  <front>
4709    <title>Registration Procedures for Message Header Fields</title>
4710    <author initials='G.' surname='Klyne' fullname='G. Klyne'>
4711      <organization>Nine by Nine</organization>
4712      <address><email>GK-IETF@ninebynine.org</email></address>
4713    </author>
4714    <author initials='M.' surname='Nottingham' fullname='M. Nottingham'>
4715      <organization>BEA Systems</organization>
4716      <address><email>mnot@pobox.com</email></address>
4717    </author>
4718    <author initials='J.' surname='Mogul' fullname='J. Mogul'>
4719      <organization>HP Labs</organization>
4720      <address><email>JeffMogul@acm.org</email></address>
4721    </author>
4722    <date year='2004' month='September' />
4723  </front>
4724  <seriesInfo name='BCP' value='90' />
4725  <seriesInfo name='RFC' value='3864' />
4726</reference>
4727
4728<reference anchor="RFC4288">
4729  <front>
4730    <title>Media Type Specifications and Registration Procedures</title>
4731    <author initials="N." surname="Freed" fullname="N. Freed">
4732      <organization>Sun Microsystems</organization>
4733      <address>
4734        <email>ned.freed@mrochek.com</email>
4735      </address>
4736    </author>
4737    <author initials="J." surname="Klensin" fullname="J. Klensin">
4738      <address>
4739        <email>klensin+ietf@jck.com</email>
4740      </address>
4741    </author>
4742    <date year="2005" month="December"/>
4743  </front>
4744  <seriesInfo name="BCP" value="13"/>
4745  <seriesInfo name="RFC" value="4288"/>
4746</reference>
4747
4748<reference anchor='RFC4395'>
4749  <front>
4750    <title>Guidelines and Registration Procedures for New URI Schemes</title>
4751    <author initials='T.' surname='Hansen' fullname='T. Hansen'>
4752      <organization>AT&amp;T Laboratories</organization>
4753      <address>
4754        <email>tony+urireg@maillennium.att.com</email>
4755      </address>
4756    </author>
4757    <author initials='T.' surname='Hardie' fullname='T. Hardie'>
4758      <organization>Qualcomm, Inc.</organization>
4759      <address>
4760        <email>hardie@qualcomm.com</email>
4761      </address>
4762    </author>
4763    <author initials='L.' surname='Masinter' fullname='L. Masinter'>
4764      <organization>Adobe Systems</organization>
4765      <address>
4766        <email>LMM@acm.org</email>
4767      </address>
4768    </author>
4769    <date year='2006' month='February' />
4770  </front>
4771  <seriesInfo name='BCP' value='115' />
4772  <seriesInfo name='RFC' value='4395' />
4773</reference>
4774
4775<reference anchor='RFC4559'>
4776  <front>
4777    <title>SPNEGO-based Kerberos and NTLM HTTP Authentication in Microsoft Windows</title>
4778    <author initials='K.' surname='Jaganathan' fullname='K. Jaganathan'/>
4779    <author initials='L.' surname='Zhu' fullname='L. Zhu'/>
4780    <author initials='J.' surname='Brezak' fullname='J. Brezak'/>
4781    <date year='2006' month='June' />
4782  </front>
4783  <seriesInfo name='RFC' value='4559' />
4784</reference>
4785
4786<reference anchor='RFC5226'>
4787  <front>
4788    <title>Guidelines for Writing an IANA Considerations Section in RFCs</title>
4789    <author initials='T.' surname='Narten' fullname='T. Narten'>
4790      <organization>IBM</organization>
4791      <address><email>narten@us.ibm.com</email></address>
4792    </author>
4793    <author initials='H.' surname='Alvestrand' fullname='H. Alvestrand'>
4794      <organization>Google</organization>
4795      <address><email>Harald@Alvestrand.no</email></address>
4796    </author>
4797    <date year='2008' month='May' />
4798  </front>
4799  <seriesInfo name='BCP' value='26' />
4800  <seriesInfo name='RFC' value='5226' />
4801</reference>
4802
4803<reference anchor="RFC5322">
4804  <front>
4805    <title>Internet Message Format</title>
4806    <author initials="P." surname="Resnick" fullname="P. Resnick">
4807      <organization>Qualcomm Incorporated</organization>
4808    </author>
4809    <date year="2008" month="October"/>
4810  </front> 
4811  <seriesInfo name="RFC" value="5322"/>
4812</reference>
4813
4814<reference anchor="RFC6265">
4815  <front>
4816    <title>HTTP State Management Mechanism</title>
4817    <author initials="A." surname="Barth" fullname="Adam Barth">
4818      <organization abbrev="U.C. Berkeley">
4819        University of California, Berkeley
4820      </organization>
4821      <address><email>abarth@eecs.berkeley.edu</email></address>
4822    </author>
4823    <date year="2011" month="April" />
4824  </front>
4825  <seriesInfo name="RFC" value="6265"/>
4826</reference>
4827
4828<reference anchor='BCP97'>
4829  <front>
4830    <title>Handling Normative References to Standards-Track Documents</title>
4831    <author initials='J.' surname='Klensin' fullname='J. Klensin'>
4832      <address>
4833        <email>klensin+ietf@jck.com</email>
4834      </address>
4835    </author>
4836    <author initials='S.' surname='Hartman' fullname='S. Hartman'>
4837      <organization>MIT</organization>
4838      <address>
4839        <email>hartmans-ietf@mit.edu</email>
4840      </address>
4841    </author>
4842    <date year='2007' month='June' />
4843  </front>
4844  <seriesInfo name='BCP' value='97' />
4845  <seriesInfo name='RFC' value='4897' />
4846</reference>
4847
4848<reference anchor="Kri2001" target="http://arxiv.org/abs/cs.SE/0105018">
4849  <front>
4850    <title>HTTP Cookies: Standards, Privacy, and Politics</title>
4851    <author initials="D." surname="Kristol" fullname="David M. Kristol"/>
4852    <date year="2001" month="November"/>
4853  </front>
4854  <seriesInfo name="ACM Transactions on Internet Technology" value="Vol. 1, #2"/>
4855</reference>
4856
4857<reference anchor="Spe" target="http://sunsite.unc.edu/mdma-release/http-prob.html">
4858  <front>
4859    <title>Analysis of HTTP Performance Problems</title>
4860    <author initials="S." surname="Spero" fullname="Simon E. Spero"/>
4861    <date/>
4862  </front>
4863</reference>
4864
4865<reference anchor="Tou1998" target="http://www.isi.edu/touch/pubs/http-perf96/">
4866  <front>
4867  <title>Analysis of HTTP Performance</title>
4868  <author initials="J." surname="Touch" fullname="Joe Touch">
4869    <organization>USC/Information Sciences Institute</organization>
4870    <address><email>touch@isi.edu</email></address>
4871  </author>
4872  <author initials="J." surname="Heidemann" fullname="John Heidemann">
4873    <organization>USC/Information Sciences Institute</organization>
4874    <address><email>johnh@isi.edu</email></address>
4875  </author>
4876  <author initials="K." surname="Obraczka" fullname="Katia Obraczka">
4877    <organization>USC/Information Sciences Institute</organization>
4878    <address><email>katia@isi.edu</email></address>
4879  </author>
4880  <date year="1998" month="Aug"/>
4881  </front>
4882  <seriesInfo name="ISI Research Report" value="ISI/RR-98-463"/>
4883  <annotation>(original report dated Aug. 1996)</annotation>
4884</reference>
4885
4886</references>
4887
4888
4889<section title="Tolerant Applications" anchor="tolerant.applications">
4890<t>
4891   Although this document specifies the requirements for the generation
4892   of HTTP/1.1 messages, not all applications will be correct in their
4893   implementation. We therefore recommend that operational applications
4894   be tolerant of deviations whenever those deviations can be
4895   interpreted unambiguously.
4896</t>
4897<t>
4898   The line terminator for header fields is the sequence CRLF.
4899   However, we recommend that applications, when parsing such headers fields,
4900   recognize a single LF as a line terminator and ignore the leading CR.
4901</t>
4902<t>
4903   The character encoding of a representation &SHOULD; be labeled as the lowest
4904   common denominator of the character codes used within that representation, with
4905   the exception that not labeling the representation is preferred over labeling
4906   the representation with the labels US-ASCII or ISO-8859-1. See &payload;.
4907</t>
4908<t>
4909   Additional rules for requirements on parsing and encoding of dates
4910   and other potential problems with date encodings include:
4911</t>
4912<t>
4913  <list style="symbols">
4914     <t>HTTP/1.1 clients and caches &SHOULD; assume that an RFC-850 date
4915        which appears to be more than 50 years in the future is in fact
4916        in the past (this helps solve the "year 2000" problem).</t>
4917
4918     <t>Although all date formats are specified to be case-sensitive,
4919        recipients &SHOULD; match day, week and timezone names
4920        case-insensitively.</t>
4921             
4922     <t>An HTTP/1.1 implementation &MAY; internally represent a parsed
4923        Expires date as earlier than the proper value, but &MUST-NOT;
4924        internally represent a parsed Expires date as later than the
4925        proper value.</t>
4926
4927     <t>All expiration-related calculations &MUST; be done in GMT. The
4928        local time zone &MUST-NOT; influence the calculation or comparison
4929        of an age or expiration time.</t>
4930
4931     <t>If an HTTP header field incorrectly carries a date value with a time
4932        zone other than GMT, it &MUST; be converted into GMT using the
4933        most conservative possible conversion.</t>
4934  </list>
4935</t>
4936</section>
4937
4938<section title="HTTP Version History" anchor="compatibility">
4939<t>
4940   HTTP has been in use by the World-Wide Web global information initiative
4941   since 1990. The first version of HTTP, later referred to as HTTP/0.9,
4942   was a simple protocol for hypertext data transfer across the Internet
4943   with only a single request method (GET) and no metadata.
4944   HTTP/1.0, as defined by <xref target="RFC1945"/>, added a range of request
4945   methods and MIME-like messaging that could include metadata about the data
4946   transferred and modifiers on the request/response semantics. However,
4947   HTTP/1.0 did not sufficiently take into consideration the effects of
4948   hierarchical proxies, caching, the need for persistent connections, or
4949   name-based virtual hosts. The proliferation of incompletely-implemented
4950   applications calling themselves "HTTP/1.0" further necessitated a
4951   protocol version change in order for two communicating applications
4952   to determine each other's true capabilities.
4953</t>
4954<t>
4955   HTTP/1.1 remains compatible with HTTP/1.0 by including more stringent
4956   requirements that enable reliable implementations, adding only
4957   those new features that will either be safely ignored by an HTTP/1.0
4958   recipient or only sent when communicating with a party advertising
4959   compliance with HTTP/1.1.
4960</t>
4961<t>
4962   It is beyond the scope of a protocol specification to mandate
4963   compliance with previous versions. HTTP/1.1 was deliberately
4964   designed, however, to make supporting previous versions easy.
4965   We would expect a general-purpose HTTP/1.1 server to understand
4966   any valid request in the format of HTTP/1.0 and respond appropriately
4967   with an HTTP/1.1 message that only uses features understood (or
4968   safely ignored) by HTTP/1.0 clients.  Likewise, would expect
4969   an HTTP/1.1 client to understand any valid HTTP/1.0 response.
4970</t>
4971<t>
4972   Since HTTP/0.9 did not support header fields in a request,
4973   there is no mechanism for it to support name-based virtual
4974   hosts (selection of resource by inspection of the Host header
4975   field).  Any server that implements name-based virtual hosts
4976   ought to disable support for HTTP/0.9.  Most requests that
4977   appear to be HTTP/0.9 are, in fact, badly constructed HTTP/1.x
4978   requests wherein a buggy client failed to properly encode
4979   linear whitespace found in a URI reference and placed in
4980   the request-target.
4981</t>
4982
4983<section title="Changes from HTTP/1.0" anchor="changes.from.1.0">
4984<t>
4985   This section summarizes major differences between versions HTTP/1.0
4986   and HTTP/1.1.
4987</t>
4988
4989<section title="Multi-homed Web Servers" anchor="changes.to.simplify.multi-homed.web.servers.and.conserve.ip.addresses">
4990<t>
4991   The requirements that clients and servers support the Host header
4992   field (<xref target="header.host"/>), report an error if it is
4993   missing from an HTTP/1.1 request, and accept absolute URIs (<xref target="request-target"/>)
4994   are among the most important changes defined by HTTP/1.1.
4995</t>
4996<t>
4997   Older HTTP/1.0 clients assumed a one-to-one relationship of IP
4998   addresses and servers; there was no other established mechanism for
4999   distinguishing the intended server of a request than the IP address
5000   to which that request was directed. The Host header field was
5001   introduced during the development of HTTP/1.1 and, though it was
5002   quickly implemented by most HTTP/1.0 browsers, additional requirements
5003   were placed on all HTTP/1.1 requests in order to ensure complete
5004   adoption.  At the time of this writing, most HTTP-based services
5005   are dependent upon the Host header field for targeting requests.
5006</t>
5007</section>
5008
5009<section title="Keep-Alive Connections" anchor="compatibility.with.http.1.0.persistent.connections">
5010<t>
5011   For most implementations of HTTP/1.0, each connection is established
5012   by the client prior to the request and closed by the server after
5013   sending the response. However, some implementations implement the
5014   Keep-Alive version of persistent connections described in
5015   <xref x:sec="19.7.1" x:fmt="of" target="RFC2068"/>.
5016</t>
5017<t>
5018   Some clients and servers might wish to be compatible with some
5019   previous implementations of persistent connections in HTTP/1.0
5020   clients and servers. Persistent connections in HTTP/1.0 are
5021   explicitly negotiated as they are not the default behavior. HTTP/1.0
5022   experimental implementations of persistent connections are faulty,
5023   and the new facilities in HTTP/1.1 are designed to rectify these
5024   problems. The problem was that some existing HTTP/1.0 clients might
5025   send Keep-Alive to a proxy server that doesn't understand
5026   Connection, which would then erroneously forward it to the next
5027   inbound server, which would establish the Keep-Alive connection and
5028   result in a hung HTTP/1.0 proxy waiting for the close on the
5029   response. The result is that HTTP/1.0 clients must be prevented from
5030   using Keep-Alive when talking to proxies.
5031</t>
5032<t>
5033   However, talking to proxies is the most important use of persistent
5034   connections, so that prohibition is clearly unacceptable. Therefore,
5035   we need some other mechanism for indicating a persistent connection
5036   is desired, which is safe to use even when talking to an old proxy
5037   that ignores Connection. Persistent connections are the default for
5038   HTTP/1.1 messages; we introduce a new keyword (Connection: close) for
5039   declaring non-persistence. See <xref target="header.connection"/>.
5040</t>
5041</section>
5042</section>
5043
5044<section title="Changes from RFC 2616" anchor="changes.from.rfc.2616">
5045<t>
5046  Empty list elements in list productions have been deprecated.
5047  (<xref target="notation.abnf"/>)
5048</t>
5049<t>
5050  Rules about implicit linear whitespace between certain grammar productions
5051  have been removed; now it's only allowed when specifically pointed out
5052  in the ABNF. The NUL octet is no longer allowed in comment and quoted-string
5053  text. The quoted-pair rule no longer allows escaping control characters other than HTAB.
5054  Non-ASCII content in header fields and reason phrase has been obsoleted and
5055  made opaque (the TEXT rule was removed)
5056  (<xref target="basic.rules"/>)
5057</t>
5058<t>
5059  Clarify that the string "HTTP" in the HTTP-Version ABFN production is case
5060  sensitive. Restrict the version numbers to be single digits due to the fact
5061  that implementations are known to handle multi-digit version numbers
5062  incorrectly.
5063  (<xref target="http.version"/>)
5064</t>
5065<t>
5066  Require that invalid whitespace around field-names be rejected.
5067  (<xref target="header.fields"/>)
5068</t>
5069<t>
5070  Require recipients to handle bogus Content-Length header fields as errors.
5071  (<xref target="message.body"/>)
5072</t>
5073<t>
5074  Remove reference to non-existent identity transfer-coding value tokens.
5075  (Sections <xref format="counter" target="message.body"/> and
5076  <xref format="counter" target="transfer.codings"/>)
5077</t>
5078<t>
5079  Update use of abs_path production from RFC 1808 to the path-absolute + query
5080  components of RFC 3986. State that the asterisk form is allowed for the OPTIONS
5081  request method only.
5082  (<xref target="request-target"/>)
5083</t>
5084<t>
5085  Clarification that the chunk length does not include the count of the octets
5086  in the chunk header and trailer. Furthermore disallowed line folding
5087  in chunk extensions.
5088  (<xref target="chunked.encoding"/>)
5089</t>
5090<t>
5091  Remove hard limit of two connections per server.
5092  (<xref target="persistent.practical"/>)
5093</t>
5094<t>
5095  Change ABNF productions for header fields to only define the field value.
5096  (<xref target="header.field.definitions"/>)
5097</t>
5098<t>
5099  Clarify exactly when close connection options must be sent.
5100  (<xref target="header.connection"/>)
5101</t>
5102<t>
5103  Define the semantics of the "Upgrade" header field in responses other than
5104  101 (this was incorporated from <xref target="RFC2817"/>).
5105  (<xref target="header.upgrade"/>)
5106</t>
5107</section>
5108</section>
5109
5110<?BEGININC p1-messaging.abnf-appendix ?>
5111<section xmlns:x="http://purl.org/net/xml2rfc/ext" title="Collected ABNF" anchor="collected.abnf">
5112<figure>
5113<artwork type="abnf" name="p1-messaging.parsed-abnf">
5114<x:ref>BWS</x:ref> = OWS
5115
5116<x:ref>Chunked-Body</x:ref> = *chunk last-chunk trailer-part CRLF
5117<x:ref>Connection</x:ref> = *( "," OWS ) connection-token *( OWS "," [ OWS
5118 connection-token ] )
5119<x:ref>Content-Length</x:ref> = 1*DIGIT
5120
5121<x:ref>Date</x:ref> = HTTP-date
5122
5123<x:ref>GMT</x:ref> = %x47.4D.54 ; GMT
5124
5125<x:ref>HTTP-Prot-Name</x:ref> = %x48.54.54.50 ; HTTP
5126<x:ref>HTTP-Version</x:ref> = HTTP-Prot-Name "/" DIGIT "." DIGIT
5127<x:ref>HTTP-date</x:ref> = rfc1123-date / obs-date
5128<x:ref>HTTP-message</x:ref> = start-line *( header-field CRLF ) CRLF [ message-body
5129 ]
5130<x:ref>Host</x:ref> = uri-host [ ":" port ]
5131
5132<x:ref>Method</x:ref> = token
5133
5134<x:ref>OWS</x:ref> = *( [ obs-fold ] WSP )
5135
5136<x:ref>RWS</x:ref> = 1*( [ obs-fold ] WSP )
5137<x:ref>Reason-Phrase</x:ref> = *( WSP / VCHAR / obs-text )
5138<x:ref>Request</x:ref> = Request-Line *( header-field CRLF ) CRLF [ message-body ]
5139<x:ref>Request-Line</x:ref> = Method SP request-target SP HTTP-Version CRLF
5140<x:ref>Response</x:ref> = Status-Line *( header-field CRLF ) CRLF [ message-body ]
5141
5142<x:ref>Status-Code</x:ref> = 3DIGIT
5143<x:ref>Status-Line</x:ref> = HTTP-Version SP Status-Code SP Reason-Phrase CRLF
5144
5145<x:ref>TE</x:ref> = [ ( "," / t-codings ) *( OWS "," [ OWS t-codings ] ) ]
5146<x:ref>Trailer</x:ref> = *( "," OWS ) field-name *( OWS "," [ OWS field-name ] )
5147<x:ref>Transfer-Encoding</x:ref> = *( "," OWS ) transfer-coding *( OWS "," [ OWS
5148 transfer-coding ] )
5149
5150<x:ref>URI-reference</x:ref> = &lt;URI-reference, defined in [RFC3986], Section 4.1&gt;
5151<x:ref>Upgrade</x:ref> = *( "," OWS ) product *( OWS "," [ OWS product ] )
5152
5153<x:ref>Via</x:ref> = *( "," OWS ) received-protocol RWS received-by [ RWS comment ]
5154 *( OWS "," [ OWS received-protocol RWS received-by [ RWS comment ] ]
5155 )
5156
5157<x:ref>absolute-URI</x:ref> = &lt;absolute-URI, defined in [RFC3986], Section 4.3&gt;
5158<x:ref>asctime-date</x:ref> = day-name SP date3 SP time-of-day SP year
5159<x:ref>attribute</x:ref> = token
5160<x:ref>authority</x:ref> = &lt;authority, defined in [RFC3986], Section 3.2&gt;
5161
5162<x:ref>chunk</x:ref> = chunk-size *WSP [ chunk-ext ] CRLF chunk-data CRLF
5163<x:ref>chunk-data</x:ref> = 1*OCTET
5164<x:ref>chunk-ext</x:ref> = *( ";" *WSP chunk-ext-name [ "=" chunk-ext-val ] *WSP )
5165<x:ref>chunk-ext-name</x:ref> = token
5166<x:ref>chunk-ext-val</x:ref> = token / quoted-str-nf
5167<x:ref>chunk-size</x:ref> = 1*HEXDIG
5168<x:ref>comment</x:ref> = "(" *( ctext / quoted-cpair / comment ) ")"
5169<x:ref>connection-token</x:ref> = token
5170<x:ref>ctext</x:ref> = OWS / %x21-27 ; '!'-'''
5171 / %x2A-5B ; '*'-'['
5172 / %x5D-7E ; ']'-'~'
5173 / obs-text
5174
5175<x:ref>date1</x:ref> = day SP month SP year
5176<x:ref>date2</x:ref> = day "-" month "-" 2DIGIT
5177<x:ref>date3</x:ref> = month SP ( 2DIGIT / ( SP DIGIT ) )
5178<x:ref>day</x:ref> = 2DIGIT
5179<x:ref>day-name</x:ref> = %x4D.6F.6E ; Mon
5180 / %x54.75.65 ; Tue
5181 / %x57.65.64 ; Wed
5182 / %x54.68.75 ; Thu
5183 / %x46.72.69 ; Fri
5184 / %x53.61.74 ; Sat
5185 / %x53.75.6E ; Sun
5186<x:ref>day-name-l</x:ref> = %x4D.6F.6E.64.61.79 ; Monday
5187 / %x54.75.65.73.64.61.79 ; Tuesday
5188 / %x57.65.64.6E.65.73.64.61.79 ; Wednesday
5189 / %x54.68.75.72.73.64.61.79 ; Thursday
5190 / %x46.72.69.64.61.79 ; Friday
5191 / %x53.61.74.75.72.64.61.79 ; Saturday
5192 / %x53.75.6E.64.61.79 ; Sunday
5193
5194<x:ref>field-content</x:ref> = *( WSP / VCHAR / obs-text )
5195<x:ref>field-name</x:ref> = token
5196<x:ref>field-value</x:ref> = *( field-content / OWS )
5197
5198<x:ref>header-field</x:ref> = field-name ":" OWS [ field-value ] OWS
5199<x:ref>hour</x:ref> = 2DIGIT
5200<x:ref>http-URI</x:ref> = "http://" authority path-abempty [ "?" query ]
5201<x:ref>https-URI</x:ref> = "https://" authority path-abempty [ "?" query ]
5202
5203<x:ref>last-chunk</x:ref> = 1*"0" *WSP [ chunk-ext ] CRLF
5204
5205<x:ref>message-body</x:ref> = *OCTET
5206<x:ref>minute</x:ref> = 2DIGIT
5207<x:ref>month</x:ref> = %x4A.61.6E ; Jan
5208 / %x46.65.62 ; Feb
5209 / %x4D.61.72 ; Mar
5210 / %x41.70.72 ; Apr
5211 / %x4D.61.79 ; May
5212 / %x4A.75.6E ; Jun
5213 / %x4A.75.6C ; Jul
5214 / %x41.75.67 ; Aug
5215 / %x53.65.70 ; Sep
5216 / %x4F.63.74 ; Oct
5217 / %x4E.6F.76 ; Nov
5218 / %x44.65.63 ; Dec
5219
5220<x:ref>obs-date</x:ref> = rfc850-date / asctime-date
5221<x:ref>obs-fold</x:ref> = CRLF
5222<x:ref>obs-text</x:ref> = %x80-FF
5223
5224<x:ref>partial-URI</x:ref> = relative-part [ "?" query ]
5225<x:ref>path-abempty</x:ref> = &lt;path-abempty, defined in [RFC3986], Section 3.3&gt;
5226<x:ref>path-absolute</x:ref> = &lt;path-absolute, defined in [RFC3986], Section 3.3&gt;
5227<x:ref>port</x:ref> = &lt;port, defined in [RFC3986], Section 3.2.3&gt;
5228<x:ref>product</x:ref> = token [ "/" product-version ]
5229<x:ref>product-version</x:ref> = token
5230<x:ref>protocol-name</x:ref> = token
5231<x:ref>protocol-version</x:ref> = token
5232<x:ref>pseudonym</x:ref> = token
5233
5234<x:ref>qdtext</x:ref> = OWS / "!" / %x23-5B ; '#'-'['
5235 / %x5D-7E ; ']'-'~'
5236 / obs-text
5237<x:ref>qdtext-nf</x:ref> = WSP / "!" / %x23-5B ; '#'-'['
5238 / %x5D-7E ; ']'-'~'
5239 / obs-text
5240<x:ref>query</x:ref> = &lt;query, defined in [RFC3986], Section 3.4&gt;
5241<x:ref>quoted-cpair</x:ref> = "\" ( WSP / VCHAR / obs-text )
5242<x:ref>quoted-pair</x:ref> = "\" ( WSP / VCHAR / obs-text )
5243<x:ref>quoted-str-nf</x:ref> = DQUOTE *( qdtext-nf / quoted-pair ) DQUOTE
5244<x:ref>quoted-string</x:ref> = DQUOTE *( qdtext / quoted-pair ) DQUOTE
5245<x:ref>qvalue</x:ref> = ( "0" [ "." *3DIGIT ] ) / ( "1" [ "." *3"0" ] )
5246
5247<x:ref>received-by</x:ref> = ( uri-host [ ":" port ] ) / pseudonym
5248<x:ref>received-protocol</x:ref> = [ protocol-name "/" ] protocol-version
5249<x:ref>relative-part</x:ref> = &lt;relative-part, defined in [RFC3986], Section 4.2&gt;
5250<x:ref>request-target</x:ref> = "*" / absolute-URI / ( path-absolute [ "?" query ] )
5251 / authority
5252<x:ref>rfc1123-date</x:ref> = day-name "," SP date1 SP time-of-day SP GMT
5253<x:ref>rfc850-date</x:ref> = day-name-l "," SP date2 SP time-of-day SP GMT
5254
5255<x:ref>second</x:ref> = 2DIGIT
5256<x:ref>special</x:ref> = "(" / ")" / "&lt;" / "&gt;" / "@" / "," / ";" / ":" / "\" /
5257 DQUOTE / "/" / "[" / "]" / "?" / "=" / "{" / "}"
5258<x:ref>start-line</x:ref> = Request-Line / Status-Line
5259
5260<x:ref>t-codings</x:ref> = "trailers" / ( transfer-extension [ te-params ] )
5261<x:ref>tchar</x:ref> = "!" / "#" / "$" / "%" / "&amp;" / "'" / "*" / "+" / "-" / "." /
5262 "^" / "_" / "`" / "|" / "~" / DIGIT / ALPHA
5263<x:ref>te-ext</x:ref> = OWS ";" OWS token [ "=" word ]
5264<x:ref>te-params</x:ref> = OWS ";" OWS "q=" qvalue *te-ext
5265<x:ref>time-of-day</x:ref> = hour ":" minute ":" second
5266<x:ref>token</x:ref> = 1*tchar
5267<x:ref>trailer-part</x:ref> = *( header-field CRLF )
5268<x:ref>transfer-coding</x:ref> = "chunked" / "compress" / "deflate" / "gzip" /
5269 transfer-extension
5270<x:ref>transfer-extension</x:ref> = token *( OWS ";" OWS transfer-parameter )
5271<x:ref>transfer-parameter</x:ref> = attribute BWS "=" BWS value
5272
5273<x:ref>uri-host</x:ref> = &lt;host, defined in [RFC3986], Section 3.2.2&gt;
5274
5275<x:ref>value</x:ref> = word
5276
5277<x:ref>word</x:ref> = token / quoted-string
5278
5279<x:ref>year</x:ref> = 4DIGIT
5280</artwork>
5281</figure>
5282<figure><preamble>ABNF diagnostics:</preamble><artwork type="inline">
5283; Chunked-Body defined but not used
5284; Connection defined but not used
5285; Content-Length defined but not used
5286; Date defined but not used
5287; HTTP-message defined but not used
5288; Host defined but not used
5289; Request defined but not used
5290; Response defined but not used
5291; TE defined but not used
5292; Trailer defined but not used
5293; Transfer-Encoding defined but not used
5294; URI-reference defined but not used
5295; Upgrade defined but not used
5296; Via defined but not used
5297; http-URI defined but not used
5298; https-URI defined but not used
5299; partial-URI defined but not used
5300; special defined but not used
5301</artwork></figure></section>
5302<?ENDINC p1-messaging.abnf-appendix ?>
5303
5304<section title="Change Log (to be removed by RFC Editor before publication)" anchor="change.log">
5305
5306<section title="Since RFC 2616">
5307<t>
5308  Extracted relevant partitions from <xref target="RFC2616"/>.
5309</t>
5310</section>
5311
5312<section title="Since draft-ietf-httpbis-p1-messaging-00">
5313<t>
5314  Closed issues:
5315  <list style="symbols"> 
5316    <t>
5317      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/1"/>:
5318      "HTTP Version should be case sensitive"
5319      (<eref target="http://purl.org/NET/http-errata#verscase"/>)
5320    </t>
5321    <t>
5322      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/2"/>:
5323      "'unsafe' characters"
5324      (<eref target="http://purl.org/NET/http-errata#unsafe-uri"/>)
5325    </t>
5326    <t>
5327      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/3"/>:
5328      "Chunk Size Definition"
5329      (<eref target="http://purl.org/NET/http-errata#chunk-size"/>)
5330    </t>
5331    <t>
5332      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/4"/>:
5333      "Message Length"
5334      (<eref target="http://purl.org/NET/http-errata#msg-len-chars"/>)
5335    </t>
5336    <t>
5337      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/8"/>:
5338      "Media Type Registrations"
5339      (<eref target="http://purl.org/NET/http-errata#media-reg"/>)
5340    </t>
5341    <t>
5342      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/11"/>:
5343      "URI includes query"
5344      (<eref target="http://purl.org/NET/http-errata#uriquery"/>)
5345    </t>
5346    <t>
5347      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/15"/>:
5348      "No close on 1xx responses"
5349      (<eref target="http://purl.org/NET/http-errata#noclose1xx"/>)
5350    </t>
5351    <t>
5352      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/16"/>:
5353      "Remove 'identity' token references"
5354      (<eref target="http://purl.org/NET/http-errata#identity"/>)
5355    </t>
5356    <t>
5357      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/26"/>:
5358      "Import query BNF"
5359    </t>
5360    <t>
5361      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/31"/>:
5362      "qdtext BNF"
5363    </t>
5364    <t>
5365      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/35"/>:
5366      "Normative and Informative references"
5367    </t>
5368    <t>
5369      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/42"/>:
5370      "RFC2606 Compliance"
5371    </t>
5372    <t>
5373      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/45"/>:
5374      "RFC977 reference"
5375    </t>
5376    <t>
5377      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/46"/>:
5378      "RFC1700 references"
5379    </t>
5380    <t>
5381      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/47"/>:
5382      "inconsistency in date format explanation"
5383    </t>
5384    <t>
5385      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/48"/>:
5386      "Date reference typo"
5387    </t>
5388    <t>
5389      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/65"/>:
5390      "Informative references"
5391    </t>
5392    <t>
5393      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/66"/>:
5394      "ISO-8859-1 Reference"
5395    </t>
5396    <t>
5397      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/86"/>:
5398      "Normative up-to-date references"
5399    </t>
5400  </list>
5401</t>
5402<t>
5403  Other changes:
5404  <list style="symbols"> 
5405    <t>
5406      Update media type registrations to use RFC4288 template.
5407    </t>
5408    <t>
5409      Use names of RFC4234 core rules DQUOTE and WSP,
5410      fix broken ABNF for chunk-data
5411      (work in progress on <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/36"/>)
5412    </t>
5413  </list>
5414</t>
5415</section>
5416
5417<section title="Since draft-ietf-httpbis-p1-messaging-01">
5418<t>
5419  Closed issues:
5420  <list style="symbols"> 
5421    <t>
5422      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/19"/>:
5423      "Bodies on GET (and other) requests"
5424    </t>
5425    <t>
5426      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/55"/>:
5427      "Updating to RFC4288"
5428    </t>
5429    <t>
5430      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/57"/>:
5431      "Status Code and Reason Phrase"
5432    </t>
5433    <t>
5434      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/82"/>:
5435      "rel_path not used"
5436    </t>
5437  </list>
5438</t>
5439<t>
5440  Ongoing work on ABNF conversion (<eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/36"/>):
5441  <list style="symbols"> 
5442    <t>
5443      Get rid of duplicate BNF rule names ("host" -> "uri-host", "trailer" ->
5444      "trailer-part").
5445    </t>
5446    <t>
5447      Avoid underscore character in rule names ("http_URL" ->
5448      "http-URL", "abs_path" -> "path-absolute").
5449    </t>
5450    <t>
5451      Add rules for terms imported from URI spec ("absoluteURI", "authority",
5452      "path-absolute", "port", "query", "relativeURI", "host) &mdash; these will
5453      have to be updated when switching over to RFC3986.
5454    </t>
5455    <t>
5456      Synchronize core rules with RFC5234.
5457    </t>
5458    <t>
5459      Get rid of prose rules that span multiple lines.
5460    </t>
5461    <t>
5462      Get rid of unused rules LOALPHA and UPALPHA.
5463    </t>
5464    <t>
5465      Move "Product Tokens" section (back) into Part 1, as "token" is used
5466      in the definition of the Upgrade header field.
5467    </t>
5468    <t>
5469      Add explicit references to BNF syntax and rules imported from other parts of the specification.
5470    </t>
5471    <t>
5472      Rewrite prose rule "token" in terms of "tchar", rewrite prose rule "TEXT".
5473    </t>
5474  </list>
5475</t>
5476</section>
5477
5478<section title="Since draft-ietf-httpbis-p1-messaging-02" anchor="changes.since.02">
5479<t>
5480  Closed issues:
5481  <list style="symbols"> 
5482    <t>
5483      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/51"/>:
5484      "HTTP-date vs. rfc1123-date"
5485    </t>
5486    <t>
5487      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/64"/>:
5488      "WS in quoted-pair"
5489    </t>
5490  </list>
5491</t>
5492<t>
5493  Ongoing work on IANA Message Header Field Registration (<eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/40"/>):
5494  <list style="symbols"> 
5495    <t>
5496      Reference RFC 3984, and update header field registrations for headers defined
5497      in this document.
5498    </t>
5499  </list>
5500</t>
5501<t>
5502  Ongoing work on ABNF conversion (<eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/36"/>):
5503  <list style="symbols"> 
5504    <t>
5505      Replace string literals when the string really is case-sensitive (HTTP-Version).
5506    </t>
5507  </list>
5508</t>
5509</section>
5510
5511<section title="Since draft-ietf-httpbis-p1-messaging-03" anchor="changes.since.03">
5512<t>
5513  Closed issues:
5514  <list style="symbols"> 
5515    <t>
5516      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/28"/>:
5517      "Connection closing"
5518    </t>
5519    <t>
5520      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/97"/>:
5521      "Move registrations and registry information to IANA Considerations"
5522    </t>
5523    <t>
5524      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/120"/>:
5525      "need new URL for PAD1995 reference"
5526    </t>
5527    <t>
5528      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/127"/>:
5529      "IANA Considerations: update HTTP URI scheme registration"
5530    </t>
5531    <t>
5532      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/128"/>:
5533      "Cite HTTPS URI scheme definition"
5534    </t>
5535    <t>
5536      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/129"/>:
5537      "List-type headers vs Set-Cookie"
5538    </t>
5539  </list>
5540</t>
5541<t>
5542  Ongoing work on ABNF conversion (<eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/36"/>):
5543  <list style="symbols"> 
5544    <t>
5545      Replace string literals when the string really is case-sensitive (HTTP-Date).
5546    </t>
5547    <t>
5548      Replace HEX by HEXDIG for future consistence with RFC 5234's core rules.
5549    </t>
5550  </list>
5551</t>
5552</section>
5553
5554<section title="Since draft-ietf-httpbis-p1-messaging-04" anchor="changes.since.04">
5555<t>
5556  Closed issues:
5557  <list style="symbols"> 
5558    <t>
5559      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/34"/>:
5560      "Out-of-date reference for URIs"
5561    </t>
5562    <t>
5563      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/132"/>:
5564      "RFC 2822 is updated by RFC 5322"
5565    </t>
5566  </list>
5567</t>
5568<t>
5569  Ongoing work on ABNF conversion (<eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/36"/>):
5570  <list style="symbols"> 
5571    <t>
5572      Use "/" instead of "|" for alternatives.
5573    </t>
5574    <t>
5575      Get rid of RFC822 dependency; use RFC5234 plus extensions instead.
5576    </t>
5577    <t>
5578      Only reference RFC 5234's core rules.
5579    </t>
5580    <t>
5581      Introduce new ABNF rules for "bad" whitespace ("BWS"), optional
5582      whitespace ("OWS") and required whitespace ("RWS").
5583    </t>
5584    <t>
5585      Rewrite ABNFs to spell out whitespace rules, factor out
5586      header field value format definitions.
5587    </t>
5588  </list>
5589</t>
5590</section>
5591
5592<section title="Since draft-ietf-httpbis-p1-messaging-05" anchor="changes.since.05">
5593<t>
5594  Closed issues:
5595  <list style="symbols"> 
5596    <t>
5597      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/30"/>:
5598      "Header LWS"
5599    </t>
5600    <t>
5601      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/52"/>:
5602      "Sort 1.3 Terminology"
5603    </t>
5604    <t>
5605      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/63"/>:
5606      "RFC2047 encoded words"
5607    </t>
5608    <t>
5609      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/74"/>:
5610      "Character Encodings in TEXT"
5611    </t>
5612    <t>
5613      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/77"/>:
5614      "Line Folding"
5615    </t>
5616    <t>
5617      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/83"/>:
5618      "OPTIONS * and proxies"
5619    </t>
5620    <t>
5621      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/94"/>:
5622      "Reason-Phrase BNF"
5623    </t>
5624    <t>
5625      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/111"/>:
5626      "Use of TEXT"
5627    </t>
5628    <t>
5629      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/118"/>:
5630      "Join "Differences Between HTTP Entities and RFC 2045 Entities"?"
5631    </t>
5632    <t>
5633      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/134"/>:
5634      "RFC822 reference left in discussion of date formats"
5635    </t>
5636  </list>
5637</t>
5638<t>
5639  Final work on ABNF conversion (<eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/36"/>):
5640  <list style="symbols"> 
5641    <t>
5642      Rewrite definition of list rules, deprecate empty list elements.
5643    </t>
5644    <t>
5645      Add appendix containing collected and expanded ABNF.
5646    </t>
5647  </list>
5648</t>
5649<t>
5650  Other changes:
5651  <list style="symbols"> 
5652    <t>
5653      Rewrite introduction; add mostly new Architecture Section.
5654    </t>
5655    <t>
5656      Move definition of quality values from Part 3 into Part 1;
5657      make TE request header field grammar independent of accept-params (defined in Part 3).
5658    </t>
5659  </list>
5660</t>
5661</section>
5662
5663<section title="Since draft-ietf-httpbis-p1-messaging-06" anchor="changes.since.06">
5664<t>
5665  Closed issues:
5666  <list style="symbols"> 
5667    <t>
5668      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/161"/>:
5669      "base for numeric protocol elements"
5670    </t>
5671    <t>
5672      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/162"/>:
5673      "comment ABNF"
5674    </t>
5675  </list>
5676</t>
5677<t>
5678  Partly resolved issues:
5679  <list style="symbols"> 
5680    <t>
5681      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/88"/>:
5682      "205 Bodies" (took out language that implied that there might be
5683      methods for which a request body MUST NOT be included)
5684    </t>
5685    <t>
5686      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/163"/>:
5687      "editorial improvements around HTTP-date"
5688    </t>
5689  </list>
5690</t>
5691</section>
5692
5693<section title="Since draft-ietf-httpbis-p1-messaging-07" anchor="changes.since.07">
5694<t>
5695  Closed issues:
5696  <list style="symbols"> 
5697    <t>
5698      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/93"/>:
5699      "Repeating single-value headers"
5700    </t>
5701    <t>
5702      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/131"/>:
5703      "increase connection limit"
5704    </t>
5705    <t>
5706      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/157"/>:
5707      "IP addresses in URLs"
5708    </t>
5709    <t>
5710      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/172"/>:
5711      "take over HTTP Upgrade Token Registry"
5712    </t>
5713    <t>
5714      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/173"/>:
5715      "CR and LF in chunk extension values"
5716    </t>
5717    <t>
5718      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/184"/>:
5719      "HTTP/0.9 support"
5720    </t>
5721    <t>
5722      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/188"/>:
5723      "pick IANA policy (RFC5226) for Transfer Coding / Content Coding"
5724    </t>
5725    <t>
5726      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/189"/>:
5727      "move definitions of gzip/deflate/compress to part 1"
5728    </t>
5729    <t>
5730      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/194"/>:
5731      "disallow control characters in quoted-pair"
5732    </t>
5733  </list>
5734</t>
5735<t>
5736  Partly resolved issues:
5737  <list style="symbols"> 
5738    <t>
5739      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/148"/>:
5740      "update IANA requirements wrt Transfer-Coding values" (add the
5741      IANA Considerations subsection)
5742    </t>
5743  </list>
5744</t>
5745</section>
5746
5747<section title="Since draft-ietf-httpbis-p1-messaging-08" anchor="changes.since.08">
5748<t>
5749  Closed issues:
5750  <list style="symbols"> 
5751    <t>
5752      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/201"/>:
5753      "header parsing, treatment of leading and trailing OWS"
5754    </t>
5755  </list>
5756</t>
5757<t>
5758  Partly resolved issues:
5759  <list style="symbols"> 
5760    <t>
5761      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/60"/>:
5762      "Placement of 13.5.1 and 13.5.2"
5763    </t>
5764    <t>
5765      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/200"/>:
5766      "use of term "word" when talking about header structure"
5767    </t>
5768  </list>
5769</t>
5770</section>
5771
5772<section title="Since draft-ietf-httpbis-p1-messaging-09" anchor="changes.since.09">
5773<t>
5774  Closed issues:
5775  <list style="symbols"> 
5776    <t>
5777      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/73"/>:
5778      "Clarification of the term 'deflate'"
5779    </t>
5780    <t>
5781      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/83"/>:
5782      "OPTIONS * and proxies"
5783    </t>
5784    <t>
5785      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/122"/>:
5786      "MIME-Version not listed in P1, general header fields"
5787    </t>
5788    <t>
5789      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/143"/>:
5790      "IANA registry for content/transfer encodings"
5791    </t>
5792    <t>
5793      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/165"/>:
5794      "Case-sensitivity of HTTP-date"
5795    </t>
5796    <t>
5797      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/200"/>:
5798      "use of term "word" when talking about header structure"
5799    </t>
5800  </list>
5801</t>
5802<t>
5803  Partly resolved issues:
5804  <list style="symbols"> 
5805    <t>
5806      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/196"/>:
5807      "Term for the requested resource's URI"
5808    </t>
5809  </list>
5810</t>
5811</section>
5812
5813<section title="Since draft-ietf-httpbis-p1-messaging-10" anchor="changes.since.10">
5814<t>
5815  Closed issues:
5816  <list style="symbols">
5817    <t>
5818      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/28"/>:
5819      "Connection Closing"
5820    </t>
5821    <t>
5822      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/90"/>:
5823      "Delimiting messages with multipart/byteranges"
5824    </t>
5825    <t>
5826      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/95"/>:
5827      "Handling multiple Content-Length headers"
5828    </t>
5829    <t>
5830      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/109"/>:
5831      "Clarify entity / representation / variant terminology"
5832    </t>
5833    <t>
5834      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/220"/>:
5835      "consider removing the 'changes from 2068' sections"
5836    </t>
5837  </list>
5838</t>
5839<t>
5840  Partly resolved issues:
5841  <list style="symbols"> 
5842    <t>
5843      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/159"/>:
5844      "HTTP(s) URI scheme definitions"
5845    </t>
5846  </list>
5847</t>
5848</section>
5849
5850<section title="Since draft-ietf-httpbis-p1-messaging-11" anchor="changes.since.11">
5851<t>
5852  Closed issues:
5853  <list style="symbols">
5854    <t>
5855      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/193"/>:
5856      "Trailer requirements"
5857    </t>
5858    <t>
5859      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/204"/>:
5860      "Text about clock requirement for caches belongs in p6"
5861    </t>
5862    <t>
5863      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/221"/>:
5864      "effective request URI: handling of missing host in HTTP/1.0"
5865    </t>
5866    <t>
5867      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/248"/>:
5868      "confusing Date requirements for clients"
5869    </t>
5870  </list>
5871</t>
5872<t>
5873  Partly resolved issues:
5874  <list style="symbols"> 
5875    <t>
5876      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/95"/>:
5877      "Handling multiple Content-Length headers"
5878    </t>
5879  </list>
5880</t>
5881</section>
5882
5883<section title="Since draft-ietf-httpbis-p1-messaging-12" anchor="changes.since.12">
5884<t>
5885  Closed issues:
5886  <list style="symbols">
5887    <t>
5888      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/75"/>:
5889      "RFC2145 Normative"
5890    </t>
5891    <t>
5892      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/159"/>:
5893      "HTTP(s) URI scheme definitions" (tune the requirements on userinfo)
5894    </t>
5895    <t>
5896      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/210"/>:
5897      "define 'transparent' proxy"
5898    </t>
5899    <t>
5900      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/224"/>:
5901      "Header Classification"
5902    </t>
5903    <t>
5904      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/233"/>:
5905      "Is * usable as a request-uri for new methods?"
5906    </t>
5907    <t>
5908      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/240"/>:
5909      "Migrate Upgrade details from RFC2817"
5910    </t>
5911    <t>
5912      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/276"/>:
5913      "untangle ABNFs for header fields"
5914    </t>
5915    <t>
5916      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/279"/>:
5917      "update RFC 2109 reference"
5918    </t>
5919  </list>
5920</t>
5921</section>
5922
5923<section title="Since draft-ietf-httpbis-p1-messaging-13" anchor="changes.since.13">
5924<t>
5925  Closed issues:
5926  <list style="symbols">
5927    <t>
5928      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/53"/>:
5929      "Allow is not in 13.5.2"
5930    </t>
5931    <t>
5932      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/95"/>:
5933      "Handling multiple Content-Length headers"
5934    </t>
5935    <t>
5936      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/276"/>:
5937      "untangle ABNFs for header fields"
5938    </t>
5939    <t>
5940      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/286"/>:
5941      "Content-Length ABNF broken"
5942    </t>
5943  </list>
5944</t>
5945</section>
5946
5947<section title="Since draft-ietf-httpbis-p1-messaging-14" anchor="changes.since.14">
5948<t>
5949  Closed issues:
5950  <list style="symbols">
5951    <t>
5952      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/273"/>:
5953      "HTTP-Version should be redefined as fixed length pair of DIGIT . DIGIT"
5954    </t>
5955    <t>
5956      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/282"/>:
5957      "Recommend minimum sizes for protocol elements"
5958    </t>
5959    <t>
5960      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/283"/>:
5961      "Set expectations around buffering"
5962    </t>
5963    <t>
5964      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/288"/>:
5965      "Considering messages in isolation"
5966    </t>
5967  </list>
5968</t>
5969</section>
5970
5971<section title="Since draft-ietf-httpbis-p1-messaging-15" anchor="changes.since.15">
5972<t>
5973  Closed issues:
5974  <list style="symbols">
5975    <t>
5976      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/270"/>:
5977      "\-escaping in quoted strings"
5978    </t>
5979    <t>
5980      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/305"/>:
5981      "'Close' should be reserved in the HTTP header field registry"
5982    </t>
5983  </list>
5984</t>
5985</section>
5986
5987</section>
5988
5989</back>
5990</rfc>
Note: See TracBrowser for help on using the repository browser.