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

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

update acks (see #219)

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