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

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

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

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