source: draft-ietf-httpbis/latest/p2-semantics.xml @ 1524

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

remove unneeded status code descriptions (resolves #336)

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/xml
File size: 192.8 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<?xml-stylesheet type='text/xsl' href='../myxml2rfc.xslt'?>
3<!DOCTYPE rfc [
4  <!ENTITY MAY "<bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>MAY</bcp14>">
5  <!ENTITY MUST "<bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>MUST</bcp14>">
6  <!ENTITY MUST-NOT "<bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>MUST NOT</bcp14>">
7  <!ENTITY OPTIONAL "<bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>OPTIONAL</bcp14>">
8  <!ENTITY RECOMMENDED "<bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>RECOMMENDED</bcp14>">
9  <!ENTITY REQUIRED "<bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>REQUIRED</bcp14>">
10  <!ENTITY SHALL "<bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>SHALL</bcp14>">
11  <!ENTITY SHALL-NOT "<bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>SHALL NOT</bcp14>">
12  <!ENTITY SHOULD "<bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>SHOULD</bcp14>">
13  <!ENTITY SHOULD-NOT "<bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>SHOULD NOT</bcp14>">
14  <!ENTITY ID-VERSION "latest">
15  <!ENTITY ID-MONTH "February">
16  <!ENTITY ID-YEAR "2012">
17  <!ENTITY mdash "&#8212;">
18  <!ENTITY architecture               "<xref target='Part1' x:rel='#architecture' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
19  <!ENTITY notation                   "<xref target='Part1' x:rel='#notation' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
20  <!ENTITY acks                       "<xref target='Part1' x:rel='#acks' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
21  <!ENTITY messaging                  "<xref target='Part1' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
22  <!ENTITY payload                    "<xref target='Part3' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
23  <!ENTITY conditional                "<xref target='Part4' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
24  <!ENTITY range                      "<xref target='Part5' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
25  <!ENTITY caching                    "<xref target='Part6' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
26  <!ENTITY auth                       "<xref target='Part7' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
27  <!ENTITY content-negotiation        "<xref target='Part3' x:rel='#content.negotiation' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
28  <!ENTITY agent-driven-negotiation   "<xref target='Part3' x:rel='#agent-driven.negotiation' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
29  <!ENTITY abnf-extension             "<xref target='Part1' x:rel='#abnf.extension' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
30  <!ENTITY whitespace                 "<xref target='Part1' x:rel='#whitespace' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
31  <!ENTITY field-components           "<xref target='Part1' x:rel='#field.components' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
32  <!ENTITY uri                        "<xref target='Part1' x:rel='#uri' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
33  <!ENTITY effective-request-uri      "<xref target='Part1' x:rel='#effective.request.uri' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
34  <!ENTITY intermediaries             "<xref target='Part1' x:rel='#intermediaries' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
35  <!ENTITY chunked-encoding           "<xref target='Part1' x:rel='#chunked.encoding' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
36  <!ENTITY http-url                   "<xref target='Part1' x:rel='#http-url' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
37  <!ENTITY http-version               "<xref target='Part1' x:rel='#http.version' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
38  <!ENTITY use100                     "<xref target='Part1' x:rel='#use.of.the.100.status' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
39  <!ENTITY qvalue                     "<xref target='Part3' x:rel='#quality.values' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
40  <!ENTITY request-target             "<xref target='Part1' x:rel='#request-target' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
41  <!ENTITY header-accept              "<xref target='Part3' x:rel='#header.accept' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
42  <!ENTITY header-accept-charset      "<xref target='Part3' x:rel='#header.accept-charset' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
43  <!ENTITY header-accept-encoding     "<xref target='Part3' x:rel='#header.accept-encoding' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
44  <!ENTITY header-accept-language     "<xref target='Part3' x:rel='#header.accept-language' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
45  <!ENTITY header-accept-ranges       "<xref target='Part5' x:rel='#header.accept-ranges' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
46  <!ENTITY header-age                 "<xref target='Part6' x:rel='#header.age' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
47  <!ENTITY header-authorization       "<xref target='Part7' x:rel='#header.authorization' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
48  <!ENTITY header-cache-control       "<xref target='Part6' x:rel='#header.cache-control' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
49  <!ENTITY header-connection          "<xref target='Part1' x:rel='#header.connection' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
50  <!ENTITY header-content-location    "<xref target='Part3' x:rel='#header.content-location' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
51  <!ENTITY header-content-range       "<xref target='Part5' x:rel='#header.content-range' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
52  <!ENTITY header-content-type        "<xref target='Part3' x:rel='#header.content-type' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
53  <!ENTITY header-etag                "<xref target='Part4' x:rel='#header.etag' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
54  <!ENTITY header-expires             "<xref target='Part6' x:rel='#header.expires' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
55  <!ENTITY header-fields              "<xref target='Part1' x:rel='#header.fields' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
56  <!ENTITY header-host                "<xref target='Part1' x:rel='#header.host' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
57  <!ENTITY header-if-match            "<xref target='Part4' x:rel='#header.if-match' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
58  <!ENTITY header-if-modified-since   "<xref target='Part4' x:rel='#header.if-modified-since' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
59  <!ENTITY header-if-none-match       "<xref target='Part4' x:rel='#header.if-none-match' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
60  <!ENTITY header-if-range            "<xref target='Part5' x:rel='#header.if-range' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
61  <!ENTITY header-if-unmodified-since "<xref target='Part4' x:rel='#header.if-unmodified-since' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
62  <!ENTITY header-pragma              "<xref target='Part6' x:rel='#header.pragma' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
63  <!ENTITY header-proxy-authenticate  "<xref target='Part7' x:rel='#header.proxy-authenticate' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
64  <!ENTITY header-proxy-authorization "<xref target='Part7' x:rel='#header.proxy-authorization' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
65  <!ENTITY header-range               "<xref target='Part5' x:rel='#header.range' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
66  <!ENTITY header-upgrade             "<xref target='Part1' x:rel='#header.upgrade' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
67  <!ENTITY header-te                  "<xref target='Part1' x:rel='#header.te' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
68  <!ENTITY header-vary                "<xref target='Part6' x:rel='#header.vary' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
69  <!ENTITY header-via                 "<xref target='Part1' x:rel='#header.via' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
70  <!ENTITY header-warning             "<xref target='Part6' x:rel='#header.warning' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
71  <!ENTITY header-www-authenticate    "<xref target='Part7' x:rel='#header.www-authenticate' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
72  <!ENTITY media-types                "<xref target='Part3' x:rel='#media.types' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
73  <!ENTITY message-body               "<xref target='Part1' x:rel='#message.body' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
74  <!ENTITY product-tokens             "<xref target='Part1' x:rel='#product.tokens' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
75  <!ENTITY media-type-message-http    "<xref target='Part1' x:rel='#internet.media.type.message.http' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
76  <!ENTITY status-206                 "<xref target='Part5' x:rel='#status.206' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
77  <!ENTITY status-304                 "<xref target='Part4' x:rel='#status.304' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
78  <!ENTITY status-401                 "<xref target='Part7' x:rel='#status.401' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
79  <!ENTITY status-407                 "<xref target='Part7' x:rel='#status.407' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
80  <!ENTITY status-412                 "<xref target='Part4' x:rel='#status.412' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
81  <!ENTITY status-416                 "<xref target='Part5' x:rel='#status.416' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
82  <!ENTITY p3-header-fields           "<xref target='Part3' x:rel='#header.field.definitions' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
83  <!ENTITY p4-status-codes            "<xref target='Part4' x:rel='#status.code.definitions' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
84  <!ENTITY p5-status-codes            "<xref target='Part5' x:rel='#status.code.definitions' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
85  <!ENTITY p7-status-codes            "<xref target='Part7' x:rel='#status.code.definitions' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
86  <!ENTITY p6-heuristic               "<xref target='Part6' x:rel='#heuristic.freshness' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
87  <!ENTITY p6-explicit                "<xref target='Part6' x:rel='#calculating.freshness.lifetime' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
88  <!ENTITY p6-invalid                 "<xref target='Part6' x:rel='#invalidation.after.updates.or.deletions' xmlns:x='http://purl.org/net/xml2rfc/ext'/>">
89]>
90<?rfc toc="yes" ?>
91<?rfc symrefs="yes" ?>
92<?rfc sortrefs="yes" ?>
93<?rfc compact="yes"?>
94<?rfc subcompact="no" ?>
95<?rfc linkmailto="no" ?>
96<?rfc editing="no" ?>
97<?rfc comments="yes"?>
98<?rfc inline="yes"?>
99<?rfc rfcedstyle="yes"?>
100<?rfc-ext allow-markup-in-artwork="yes" ?>
101<?rfc-ext include-references-in-index="yes" ?>
102<rfc obsoletes="2616" updates="2817" category="std" x:maturity-level="proposed"
103     ipr="pre5378Trust200902" docName="draft-ietf-httpbis-p2-semantics-&ID-VERSION;"
104     xmlns:x='http://purl.org/net/xml2rfc/ext'
105     xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
106<x:link rel="prev" basename="p1-messaging"/>
107<x:link rel="next" basename="p3-payload"/>
108<x:feedback template="mailto:ietf-http-wg@w3.org?subject={docname},%20%22{section}%22&amp;body=&lt;{ref}&gt;:"/>
109<front>
110
111  <title abbrev="HTTP/1.1, Part 2">HTTP/1.1, part 2: Message Semantics</title>
112
113  <author initials="R." surname="Fielding" fullname="Roy T. Fielding" role="editor">
114    <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
115    <address>
116      <postal>
117        <street>345 Park Ave</street>
118        <city>San Jose</city>
119        <region>CA</region>
120        <code>95110</code>
121        <country>USA</country>
122      </postal>
123      <email>fielding@gbiv.com</email>
124      <uri>http://roy.gbiv.com/</uri>
125    </address>
126  </author>
127
128  <author initials="J." surname="Gettys" fullname="Jim Gettys">
129    <organization abbrev="Alcatel-Lucent">Alcatel-Lucent Bell Labs</organization>
130    <address>
131      <postal>
132        <street>21 Oak Knoll Road</street>
133        <city>Carlisle</city>
134        <region>MA</region>
135        <code>01741</code>
136        <country>USA</country>
137      </postal>
138      <email>jg@freedesktop.org</email>
139      <uri>http://gettys.wordpress.com/</uri>
140    </address>
141  </author>
142 
143  <author initials="J." surname="Mogul" fullname="Jeffrey C. Mogul">
144    <organization abbrev="HP">Hewlett-Packard Company</organization>
145    <address>
146      <postal>
147        <street>HP Labs, Large Scale Systems Group</street>
148        <street>1501 Page Mill Road, MS 1177</street>
149        <city>Palo Alto</city>
150        <region>CA</region>
151        <code>94304</code>
152        <country>USA</country>
153      </postal>
154      <email>JeffMogul@acm.org</email>
155    </address>
156  </author>
157
158  <author initials="H." surname="Frystyk" fullname="Henrik Frystyk Nielsen">
159    <organization abbrev="Microsoft">Microsoft Corporation</organization>
160    <address>
161      <postal>
162        <street>1 Microsoft Way</street>
163        <city>Redmond</city>
164        <region>WA</region>
165        <code>98052</code>
166        <country>USA</country>
167      </postal>
168      <email>henrikn@microsoft.com</email>
169    </address>
170  </author>
171
172  <author initials="L." surname="Masinter" fullname="Larry Masinter">
173    <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
174    <address>
175      <postal>
176        <street>345 Park Ave</street>
177        <city>San Jose</city>
178        <region>CA</region>
179        <code>95110</code>
180        <country>USA</country>
181      </postal>
182      <email>LMM@acm.org</email>
183      <uri>http://larry.masinter.net/</uri>
184    </address>
185  </author>
186 
187  <author initials="P." surname="Leach" fullname="Paul J. Leach">
188    <organization abbrev="Microsoft">Microsoft Corporation</organization>
189    <address>
190      <postal>
191        <street>1 Microsoft Way</street>
192        <city>Redmond</city>
193        <region>WA</region>
194        <code>98052</code>
195      </postal>
196      <email>paulle@microsoft.com</email>
197    </address>
198  </author>
199   
200  <author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
201    <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
202    <address>
203      <postal>
204        <street>MIT Computer Science and Artificial Intelligence Laboratory</street>
205        <street>The Stata Center, Building 32</street>
206        <street>32 Vassar Street</street>
207        <city>Cambridge</city>
208        <region>MA</region>
209        <code>02139</code>
210        <country>USA</country>
211      </postal>
212      <email>timbl@w3.org</email>
213      <uri>http://www.w3.org/People/Berners-Lee/</uri>
214    </address>
215  </author>
216
217  <author initials="Y." surname="Lafon" fullname="Yves Lafon" role="editor">
218    <organization abbrev="W3C">World Wide Web Consortium</organization>
219    <address>
220      <postal>
221        <street>W3C / ERCIM</street>
222        <street>2004, rte des Lucioles</street>
223        <city>Sophia-Antipolis</city>
224        <region>AM</region>
225        <code>06902</code>
226        <country>France</country>
227      </postal>
228      <email>ylafon@w3.org</email>
229      <uri>http://www.raubacapeu.net/people/yves/</uri>
230    </address>
231  </author>
232
233  <author initials="J. F." surname="Reschke" fullname="Julian F. Reschke" role="editor">
234    <organization abbrev="greenbytes">greenbytes GmbH</organization>
235    <address>
236      <postal>
237        <street>Hafenweg 16</street>
238        <city>Muenster</city><region>NW</region><code>48155</code>
239        <country>Germany</country>
240      </postal>
241      <phone>+49 251 2807760</phone>
242      <facsimile>+49 251 2807761</facsimile>
243      <email>julian.reschke@greenbytes.de</email>
244      <uri>http://greenbytes.de/tech/webdav/</uri>
245    </address>
246  </author>
247
248  <date month="&ID-MONTH;" year="&ID-YEAR;"/>
249  <workgroup>HTTPbis Working Group</workgroup>
250
251<abstract>
252<t>
253   The Hypertext Transfer Protocol (HTTP) is an application-level protocol for
254   distributed, collaborative, hypertext information systems. HTTP has been in
255   use by the World Wide Web global information initiative since 1990. This
256   document is Part 2 of the seven-part specification that defines the protocol
257   referred to as "HTTP/1.1" and, taken together, obsoletes RFC 2616.
258</t>
259<t>
260   Part 2 defines the semantics of HTTP messages as expressed by request
261   methods, request header fields, response status codes, and response header
262   fields.
263</t>
264</abstract>
265
266<note title="Editorial Note (To be removed by RFC Editor)">
267  <t>
268    Discussion of this draft should take place on the HTTPBIS working group
269    mailing list (ietf-http-wg@w3.org), which is archived at
270    <eref target="http://lists.w3.org/Archives/Public/ietf-http-wg/"/>.
271  </t>
272  <t>
273    The current issues list is at
274    <eref target="http://tools.ietf.org/wg/httpbis/trac/report/3"/> and related
275    documents (including fancy diffs) can be found at
276    <eref target="http://tools.ietf.org/wg/httpbis/"/>.
277  </t>
278  <t>
279    The changes in this draft are summarized in <xref target="changes.since.18"/>.
280  </t>
281</note>
282</front>
283<middle>
284<section title="Introduction" anchor="introduction">
285<t>
286   This document defines HTTP/1.1 request and response semantics.  Each HTTP
287   message, as defined in &messaging;, is in the form of either a request or
288   a response.  An HTTP server listens on a connection for HTTP requests and
289   responds to each request, in the order received on that connection, with
290   one or more HTTP response messages.  This document defines the commonly
291   agreed upon semantics of the HTTP uniform interface, the intentions defined
292   by each request method, and the various response messages that might be
293   expected as a result of applying that method to the target resource.
294</t>
295<t>
296   This document is currently disorganized in order to minimize the changes
297   between drafts and enable reviewers to see the smaller errata changes.
298   A future draft will reorganize the sections to better reflect the content.
299   In particular, the sections will be ordered according to the typical
300   processing of an HTTP request message (after message parsing): resource
301   mapping, methods, request modifying header fields, response status,
302   status modifying header fields, and resource metadata.  The current mess
303   reflects how widely dispersed these topics and associated requirements
304   had become in <xref target="RFC2616"/>.
305</t>
306
307<section title="Conformance and Error Handling" anchor="intro.conformance.and.error.handling">
308<t>
309   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
310   "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
311   document are to be interpreted as described in <xref target="RFC2119"/>.
312</t>
313<t>
314   This document defines conformance criteria for several roles in HTTP
315   communication, including Senders, Recipients, Clients, Servers, User-Agents,
316   Origin Servers, Intermediaries, Proxies and Gateways. See &architecture;
317   for definitions of these terms.
318</t>
319<t>
320   An implementation is considered conformant if it complies with all of the
321   requirements associated with its role(s). Note that SHOULD-level requirements
322   are relevant here, unless one of the documented exceptions is applicable.
323</t>
324<t>
325   This document also uses ABNF to define valid protocol elements
326   (<xref target="notation"/>). In addition to the prose requirements placed
327   upon them, Senders &MUST-NOT; generate protocol elements that are invalid.
328</t>
329<t>
330   Unless noted otherwise, Recipients &MAY; take steps to recover a usable
331   protocol element from an invalid construct. However, HTTP does not define
332   specific error handling mechanisms, except in cases where it has direct
333   impact on security. This is because different uses of the protocol require
334   different error handling strategies; for example, a Web browser may wish to
335   transparently recover from a response where the Location header field
336   doesn't parse according to the ABNF, whereby in a systems control protocol
337   using HTTP, this type of error recovery could lead to dangerous consequences.
338</t>
339</section>
340
341<section title="Syntax Notation" anchor="notation">
342  <x:anchor-alias value="CR"/>
343  <x:anchor-alias value="DIGIT"/>
344  <x:anchor-alias value="LF"/>
345  <x:anchor-alias value="HTAB"/>
346  <x:anchor-alias value="VCHAR"/>
347  <x:anchor-alias value="SP"/>
348<t>
349   This specification uses the Augmented Backus-Naur Form (ABNF) notation
350   of <xref target="RFC5234"/> with the list rule extension defined in
351   &notation;<xref target="collected.abnf"/> shows the collected ABNF
352   with the list rule expanded.
353</t>
354<t>
355  The following core rules are included by
356  reference, as defined in <xref target="RFC5234" x:fmt="," x:sec="B.1"/>:
357  ALPHA (letters), CR (carriage return), CRLF (CR LF), CTL (controls),
358  DIGIT (decimal 0-9), DQUOTE (double quote),
359  HEXDIG (hexadecimal 0-9/A-F/a-f), HTAB (horizontal tab), LF (line feed),
360  OCTET (any 8-bit sequence of data), SP (space), and
361  VCHAR (any visible US-ASCII character).
362</t>
363
364<section title="Core Rules" anchor="core.rules">
365  <x:anchor-alias value="obs-text"/>
366  <x:anchor-alias value="quoted-string"/>
367  <x:anchor-alias value="token"/>
368  <x:anchor-alias value="BWS"/>
369  <x:anchor-alias value="OWS"/>
370  <x:anchor-alias value="RWS"/>
371<t>
372  The core rules below are defined in <xref target="Part1"/>:
373</t>
374<figure><artwork type="abnf2616">
375  <x:ref>BWS</x:ref>           = &lt;BWS, defined in &whitespace;&gt;
376  <x:ref>OWS</x:ref>           = &lt;OWS, defined in &whitespace;&gt;
377  <x:ref>RWS</x:ref>           = &lt;RWS, defined in &whitespace;&gt;
378  <x:ref>obs-text</x:ref>      = &lt;obs-text, defined in &field-components;&gt;
379  <x:ref>quoted-string</x:ref> = &lt;quoted-string, defined in &field-components;&gt;
380  <x:ref>token</x:ref>         = &lt;token, defined in &field-components;&gt;
381</artwork></figure>
382</section>
383
384<section title="ABNF Rules defined in other Parts of the Specification" anchor="abnf.dependencies">
385  <x:anchor-alias value="absolute-URI"/>
386  <x:anchor-alias value="comment"/>
387  <x:anchor-alias value="partial-URI"/>
388  <x:anchor-alias value="product"/>
389  <x:anchor-alias value="URI-reference"/>
390<t>
391  The ABNF rules below are defined in other parts:
392</t>
393<figure><!--Part1--><artwork type="abnf2616">
394  <x:ref>absolute-URI</x:ref>  = &lt;absolute-URI, defined in &uri;&gt;
395  <x:ref>comment</x:ref>       = &lt;comment, defined in &field-components;&gt;
396  <x:ref>partial-URI</x:ref>   = &lt;partial-URI, defined in &uri;&gt;
397  <x:ref>product</x:ref>       = &lt;product, defined in &product-tokens;&gt;
398  <x:ref>URI-reference</x:ref> = &lt;URI-reference, defined in &uri;&gt;
399</artwork></figure>
400</section>
401</section>
402</section>
403
404<section title="Method" anchor="method">
405  <x:anchor-alias value="Method"/>
406  <x:anchor-alias value="extension-method"/>
407<t>
408   The Method token indicates the request method to be performed on the target
409   resource (&effective-request-uri;). The method is case-sensitive.
410</t>
411<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Method"/>
412  <x:ref>Method</x:ref>         = <x:ref>token</x:ref>
413</artwork></figure>
414<t>
415   The list of methods allowed by a resource can be specified in an
416   Allow header field (<xref target="header.allow"/>). The status code of the response
417   always notifies the client whether a method is currently allowed on a
418   resource, since the set of allowed methods can change dynamically. An
419   origin server &SHOULD; respond with the status code 405 (Method Not Allowed)
420   if the method is known by the origin server but not allowed for the
421   resource, and 501 (Not Implemented) if the method is
422   unrecognized or not implemented by the origin server. The methods GET
423   and HEAD &MUST; be supported by all general-purpose servers. All other
424   methods are &OPTIONAL;; however, if the above methods are implemented,
425   they &MUST; be implemented with the same semantics as those specified
426   in <xref target="method.definitions"/>.
427</t>
428
429<section title="Overview of Methods" anchor="overview.of.methods">
430<t>
431  The methods listed below are defined in <xref target="method.definitions"/>.
432</t>
433<texttable align="left">
434  <ttcol>Method Name</ttcol><ttcol>Defined in...</ttcol>
435 
436  <c>OPTIONS</c> <c><xref target="OPTIONS"/></c>
437  <c>GET</c> <c><xref target="GET"/></c>
438  <c>HEAD</c> <c><xref target="HEAD"/></c>
439  <c>POST</c> <c><xref target="POST"/></c>
440  <c>PUT</c> <c><xref target="PUT"/></c>
441  <c>DELETE</c> <c><xref target="DELETE"/></c>
442  <c>TRACE</c> <c><xref target="TRACE"/></c>
443  <c>CONNECT</c> <c><xref target="CONNECT"/></c>
444</texttable>
445<t>
446  Note that this list is not exhaustive &mdash; it does not include request methods defined
447  in other specifications.
448</t>
449</section>
450
451<section title="Method Registry" anchor="method.registry">
452<t>
453  The HTTP Method Registry defines the name space for the Method token in the
454  Request line of an HTTP request.
455</t>
456<t>
457  Registrations &MUST; include the following fields:
458  <list style="symbols">
459    <t>Method Name (see <xref target="method"/>)</t>
460    <t>Safe ("yes" or "no", see <xref target="safe.methods"/>)</t>
461    <t>Pointer to specification text</t>
462  </list>
463</t>
464<t>
465  Values to be added to this name space are subject to IETF review
466  (<xref target="RFC5226" x:fmt="," x:sec="4.1"/>).
467</t>
468<t>
469  The registry itself is maintained at <eref target="http://www.iana.org/assignments/http-methods"/>.
470</t>
471
472<section title="Considerations for New Methods" anchor="considerations.for.new.methods">
473<t>
474   When it is necessary to express new semantics for a HTTP request that
475   aren't specific to a single application or media type, and currently defined
476   methods are inadequate, it may be appropriate to register a new method.
477</t>
478<t>
479   HTTP methods are generic; that is, they are potentially applicable to any
480   resource, not just one particular media type, "type" of resource, or
481   application. As such, it is preferred that new HTTP methods be registered
482   in a document that isn't specific to a single application, so that this is
483   clear.
484</t>
485<t>
486   Due to the parsing rules defined in &message-body;, definitions of HTTP
487   methods cannot prohibit the presence of a message-body on either the request
488   or the response message (with responses to HEAD requests being the single
489   exception). Definitions of new methods cannot change this rule, but they can
490   specify that only zero-length bodies (as opposed to absent bodies) are allowed.
491</t>
492<t>
493   New method definitions need to indicate whether they are safe (<xref
494   target="safe.methods"/>), what semantics (if any) the request body has,
495   and whether they are idempotent (<xref target="idempotent.methods"/>).
496   They also need to state whether they can be cached (&caching;); in
497   particular what conditions a cache may store the response, and under what
498   conditions such a stored response may be used to satisfy a subsequent
499   request.
500</t>
501</section>
502
503</section>
504</section>
505
506<section title="Header Fields" anchor="header.fields">
507<t>
508   Header fields are key value pairs that can be used to communicate data about
509   the message, its payload, the target resource, or about the connection
510   itself (i.e., control data).  See &header-fields; for a general definition
511   of their syntax.
512</t>
513
514<section title="Considerations for Creating Header Fields" anchor="considerations.for.creating.header.fields">
515<t>
516   New header fields are registered using the procedures described in
517   <xref target="RFC3864"/>.
518</t>
519<t>
520   The requirements for header field names are defined in
521   <xref target="RFC3864" x:fmt="of" x:sec="4.1"/>.  Authors of specifications
522   defining new fields are advised to keep the name as short as practical, and
523   not to prefix them with "X-" if they are to be registered (either
524   immediately or in the future).
525</t>
526<t>
527   New header field values typically have their syntax defined using ABNF
528   (<xref target="RFC5234"/>), using the extension defined in &abnf-extension;
529   as necessary, and are usually constrained to the range of ASCII characters.
530   Header fields needing a greater range of characters can use an encoding
531   such as the one defined in <xref target="RFC5987"/>.
532</t>
533<t>
534   Because commas (",") are used as a generic delimiter between field-values,
535   they need to be treated with care if they are allowed in the field-value's
536   payload. Typically, components that might contain a comma are protected with
537   double-quotes using the quoted-string ABNF production (&field-components;).
538</t>
539<t>
540   For example, a textual date and a URI (either of which might contain a comma)
541   could be safely carried in field-values like these:
542</t>
543<figure><artwork type="example">
544  Example-URI-Field: "http://example.com/a.html,foo",
545                     "http://without-a-comma.example.com/"
546  Example-Date-Field: "Sat, 04 May 1996", "Wed, 14 Sep 2005"
547</artwork></figure>
548<t>
549   Note that double quote delimiters almost always are used with the
550   quoted-string production; using a different syntax inside double quotes
551   will likely cause unnecessary confusion.
552</t>
553<t>
554   Many header fields use a format including (case-insensitively) named
555   parameters (for instance, Content-Type, defined in &header-content-type;).
556   Allowing both unquoted (token) and quoted (quoted-string) syntax for the
557   parameter value enables recipients to use existing parser components. When
558   allowing both forms, the meaning of a parameter value ought to be
559   independent of the syntax used for it (for an example, see the notes on
560   parameter handling for media types in &media-types;).
561</t>
562<t>
563   Authors of specifications defining new header fields are advised to consider
564   documenting:
565  <list style="symbols">
566    <x:lt>
567      <t>Whether the field is a single value, or whether it can be a list
568      (delimited by commas; see &header-fields;).</t>
569      <t>If it does not use the list syntax, document how to treat messages
570      where the header field occurs multiple times (a sensible default would
571      be to ignore the header field, but this might not always be the right
572      choice).</t>
573      <t>Note that intermediaries and software libraries might combine
574      multiple header field instances into a single one, despite the header
575      field not allowing this. A robust format enables recipients to discover
576      these situations (good example: "Content-Type", as the comma can only
577      appear inside quoted strings; bad example: "Location", as a comma can
578      occur inside a URI).</t>
579    </x:lt>
580    <x:lt><t>Under what conditions the header field can be used; e.g., only in
581    responses or requests, in all messages, only on responses to a particular
582    request method.</t></x:lt>
583    <x:lt><t>Whether it is appropriate to list the field-name in the Connection header
584    (i.e., if the header is to be hop-by-hop, see &header-connection;).</t></x:lt>
585    <x:lt><t>Under what conditions intermediaries are allowed to modify the header
586    field's value, insert or delete it.</t></x:lt>
587    <x:lt><t>How the header might interact with caching (see <xref target="Part6"/>).</t></x:lt>
588    <x:lt><t>Whether the header field is useful or allowable in trailers (see
589    &chunked-encoding;).</t></x:lt>
590    <x:lt><t>Whether the header field should be preserved across redirects.</t></x:lt>
591  </list>
592</t>
593</section>
594
595<section title="Request Header Fields" anchor="request.header.fields">
596  <x:anchor-alias value="request-header"/>
597<t>
598   The request header fields allow the client to pass additional
599   information about the request, and about the client itself, to the
600   server. These fields act as request modifiers, with semantics
601   equivalent to the parameters on a programming language method
602   invocation.
603</t>
604<texttable align="left">
605  <ttcol>Header Field Name</ttcol>
606  <ttcol>Defined in...</ttcol>
607
608  <c>Accept</c> <c>&header-accept;</c>
609  <c>Accept-Charset</c> <c>&header-accept-charset;</c>
610  <c>Accept-Encoding</c> <c>&header-accept-encoding;</c>
611  <c>Accept-Language</c> <c>&header-accept-language;</c>
612  <c>Authorization</c> <c>&header-authorization;</c>
613  <c>Expect</c> <c><xref target="header.expect"/></c>
614  <c>From</c> <c><xref target="header.from"/></c>
615  <c>Host</c> <c>&header-host;</c>
616  <c>If-Match</c> <c>&header-if-match;</c>
617  <c>If-Modified-Since</c> <c>&header-if-modified-since;</c>
618  <c>If-None-Match</c> <c>&header-if-none-match;</c>
619  <c>If-Range</c> <c>&header-if-range;</c>
620  <c>If-Unmodified-Since</c> <c>&header-if-unmodified-since;</c>
621  <c>Max-Forwards</c> <c><xref target="header.max-forwards"/></c>
622  <c>Proxy-Authorization</c> <c>&header-proxy-authorization;</c>
623  <c>Range</c> <c>&header-range;</c>
624  <c>Referer</c> <c><xref target="header.referer"/></c>
625  <c>TE</c> <c>&header-te;</c>
626  <c>User-Agent</c> <c><xref target="header.user-agent"/></c>
627</texttable>
628</section>
629
630<section title="Response Header Fields" anchor="response.header.fields">
631  <x:anchor-alias value="response-header"/>
632<t>
633   The response header fields allow the server to pass additional
634   information about the response which cannot be placed in the Status-Line.
635   These header fields give information about the server and about
636   further access to the target resource (&effective-request-uri;).
637</t>
638<texttable align="left">
639  <ttcol>Header Field Name</ttcol><ttcol>Defined in...</ttcol>
640
641  <c>Accept-Ranges</c> <c>&header-accept-ranges;</c>
642  <c>Age</c> <c>&header-age;</c>
643  <c>Allow</c> <c><xref target="header.allow"/></c>
644  <c>Date</c> <c><xref target="header.date"/></c>
645  <c>ETag</c> <c>&header-etag;</c>
646  <c>Location</c> <c><xref target="header.location"/></c>
647  <c>Proxy-Authenticate</c> <c>&header-proxy-authenticate;</c>
648  <c>Retry-After</c> <c><xref target="header.retry-after"/></c>
649  <c>Server</c> <c><xref target="header.server"/></c>
650  <c>Vary</c> <c>&header-vary;</c>
651  <c>WWW-Authenticate</c> <c>&header-www-authenticate;</c>
652</texttable>
653</section>
654
655</section>
656
657<section title="Status Code and Reason Phrase" anchor="status.code.and.reason.phrase">
658  <x:anchor-alias value="Reason-Phrase"/>
659  <x:anchor-alias value="Status-Code"/>
660  <x:anchor-alias value="extension-code"/>
661<t>
662   The Status-Code element is a 3-digit integer result code of the attempt to
663   understand and satisfy the request.
664</t>
665<t>
666   The Reason-Phrase is intended to give a short textual description of the
667   Status-Code and is intended for a human user. The client does not need
668   to examine or display the Reason-Phrase.
669</t>
670<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Status-Code"/><iref primary="true" item="Grammar" subitem="extension-code"/><iref primary="true" item="Grammar" subitem="Reason-Phrase"/>
671  <x:ref>Status-Code</x:ref>    = 3<x:ref>DIGIT</x:ref>
672  <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> )
673</artwork></figure>
674<t>
675   HTTP status codes are extensible. HTTP applications are not required
676   to understand the meaning of all registered status codes, though such
677   understanding is obviously desirable. However, applications &MUST;
678   understand the class of any status code, as indicated by the first
679   digit, and treat any unrecognized response as being equivalent to the
680   x00 status code of that class, with the exception that an
681   unrecognized response &MUST-NOT; be cached. For example, if an
682   unrecognized status code of 431 is received by the client, it can
683   safely assume that there was something wrong with its request and
684   treat the response as if it had received a 400 status code. In such
685   cases, user agents &SHOULD; present to the user the representation enclosed
686   with the response, since that representation is likely to include human-readable
687   information which will explain the unusual status.
688</t>
689
690<section title="Overview of Status Codes" anchor="overview.of.status.codes">
691<t> 
692   The status codes listed below are defined in <xref target="status.codes"/>
693   of this specification, &p4-status-codes;, &p5-status-codes;, and &p7-status-codes;.
694   The reason phrases listed here are only recommendations &mdash; they can be
695   replaced by local equivalents without affecting the protocol.
696</t>
697<texttable align="left">
698  <ttcol>Status-Code</ttcol>
699  <ttcol>Reason-Phrase</ttcol>
700  <ttcol>Defined in...</ttcol>
701 
702  <c>100</c> <c>Continue</c> <c><xref target="status.100"/></c>
703  <c>101</c> <c>Switching Protocols</c> <c><xref target="status.101"/></c>
704
705  <c>200</c> <c>OK</c> <c><xref target="status.200"/></c>
706  <c>201</c> <c>Created</c> <c><xref target="status.201"/></c>
707  <c>202</c> <c>Accepted</c> <c><xref target="status.202"/></c>
708  <c>203</c> <c>Non-Authoritative Information</c> <c><xref target="status.203"/></c>
709  <c>204</c> <c>No Content</c> <c><xref target="status.204"/></c>
710  <c>205</c> <c>Reset Content</c> <c><xref target="status.205"/></c>
711  <c>206</c> <c>Partial Content</c> <c anchor="status.206">&status-206;</c>
712
713  <c>300</c> <c>Multiple Choices</c> <c><xref target="status.300"/></c>
714  <c>301</c> <c>Moved Permanently</c> <c><xref target="status.301"/></c>
715  <c>302</c> <c>Found</c> <c><xref target="status.302"/></c>
716  <c>303</c> <c>See Other</c> <c><xref target="status.303"/></c>
717  <c>304</c> <c>Not Modified</c> <c anchor="status.304">&status-304;</c>
718  <c>305</c> <c>Use Proxy</c> <c><xref target="status.305"/></c>
719  <c>307</c> <c>Temporary Redirect</c> <c><xref target="status.307"/></c>
720
721  <c>400</c> <c>Bad Request</c> <c><xref target="status.400"/></c>
722  <c>401</c> <c>Unauthorized</c> <c anchor="status.401">&status-401;</c>
723  <c>402</c> <c>Payment Required</c> <c><xref target="status.402"/></c>
724  <c>403</c> <c>Forbidden</c> <c><xref target="status.403"/></c>
725  <c>404</c> <c>Not Found</c> <c><xref target="status.404"/></c>
726  <c>405</c> <c>Method Not Allowed</c> <c><xref target="status.405"/></c>
727  <c>406</c> <c>Not Acceptable</c> <c><xref target="status.406"/></c>
728  <c>407</c> <c>Proxy Authentication Required</c> <c anchor="status.407">&status-407;</c>
729  <c>408</c> <c>Request Time-out</c> <c><xref target="status.408"/></c>
730  <c>409</c> <c>Conflict</c> <c><xref target="status.409"/></c>
731  <c>410</c> <c>Gone</c> <c><xref target="status.410"/></c>
732  <c>411</c> <c>Length Required</c> <c><xref target="status.411"/></c>
733  <c>412</c> <c>Precondition Failed</c> <c anchor="status.412">&status-412;</c>
734  <c>413</c> <c>Request Representation Too Large</c> <c><xref target="status.413"/></c>
735  <c>414</c> <c>URI Too Long</c> <c><xref target="status.414"/></c>
736  <c>415</c> <c>Unsupported Media Type</c> <c><xref target="status.415"/></c>
737  <c>416</c> <c>Requested range not satisfiable</c> <c anchor="status.416">&status-416;</c>
738  <c>417</c> <c>Expectation Failed</c> <c><xref target="status.417"/></c>
739  <c>426</c> <c>Upgrade Required</c> <c><xref target="status.426"/></c>
740
741  <c>500</c> <c>Internal Server Error</c> <c><xref target="status.500"/></c>
742  <c>501</c> <c>Not Implemented</c> <c><xref target="status.501"/></c>
743  <c>502</c> <c>Bad Gateway</c> <c><xref target="status.502"/></c>
744  <c>503</c> <c>Service Unavailable</c> <c><xref target="status.503"/></c>
745  <c>504</c> <c>Gateway Time-out</c> <c><xref target="status.504"/></c>
746  <c>505</c> <c>HTTP Version not supported</c> <c><xref target="status.505"/></c>
747</texttable>
748<t>
749   Note that this list is not exhaustive &mdash; it does not include
750   extension status codes defined in other specifications.
751</t>
752</section>
753
754<section title="Status Code Registry" anchor="status.code.registry">
755<t>
756  The HTTP Status Code Registry defines the name space for the Status-Code
757  token in the Status-Line of an HTTP response.
758</t>
759<t>
760  Values to be added to this name space are subject to IETF review
761  (<xref target="RFC5226" x:fmt="," x:sec="4.1"/>).
762</t>
763<t>
764  The registry itself is maintained at <eref target="http://www.iana.org/assignments/http-status-codes"/>.
765</t>
766
767<section title="Considerations for New Status Codes" anchor="considerations.for.new.status.codes">
768<t>
769   When it is necessary to express new semantics for a HTTP response that
770   aren't specific to a single application or media type, and currently defined
771   status codes are inadequate, a new status code can be registered.
772</t>
773<t>
774   HTTP status codes are generic; that is, they are potentially applicable to
775   any resource, not just one particular media type, "type" of resource, or
776   application. As such, it is preferred that new HTTP status codes be
777   registered in a document that isn't specific to a single application, so
778   that this is clear.
779</t>
780<t>
781   Definitions of new HTTP status codes typically explain the request
782   conditions that produce a response containing the status code (e.g.,
783   combinations of request headers and/or method(s)), along with any
784   interactions with response headers (e.g., those that are required, those
785   that modify the semantics of the response).
786</t>
787<t>
788   New HTTP status codes are required to fall under one of the categories
789   defined in <xref target="status.codes"/>. To allow existing parsers to
790   properly handle them, new status codes cannot disallow a response body,
791   although they can mandate a zero-length response body. They can require the
792   presence of one or more particular HTTP response header(s).
793</t>
794<t>
795   Likewise, their definitions can specify that caches are allowed to use
796   heuristics to determine their freshness (see &caching;; by default, it is
797   not allowed), and can define how to determine the resource which they
798   carry a representation for (see <xref
799   target="identifying.response.associated.with.representation"/>; by default,
800   it is anonymous).
801</t>
802</section>
803
804</section>
805
806</section>
807
808<section title="Representation" anchor="representation">
809<t>
810   Request and Response messages &MAY; transfer a representation if not otherwise
811   restricted by the request method or response status code. A representation
812   consists of metadata (representation header fields) and data (representation
813   body).  When a complete or partial representation is enclosed in an HTTP message,
814   it is referred to as the payload of the message. HTTP representations
815   are defined in &payload;.
816</t>
817<t>
818   A representation body is only present in a message when a message-body is
819   present, as described in &message-body;. The representation body is obtained
820   from the message-body by decoding any Transfer-Encoding that might
821   have been applied to ensure safe and proper transfer of the message.
822</t>
823
824<section title="Identifying the Resource Associated with a Representation" anchor="identifying.response.associated.with.representation">
825<t>
826   It is sometimes necessary to determine an identifier for the resource
827   associated with a representation.
828</t>
829<t>
830   An HTTP request representation, when present, is always associated with an
831   anonymous (i.e., unidentified) resource.
832</t>
833<t>
834   In the common case, an HTTP response is a representation of the target
835   resource (see &effective-request-uri;). However, this is not always the
836   case. To determine the URI of the resource a response is associated with,
837   the following rules are used (with the first applicable one being selected):
838</t>
839<t><list style="numbers">
840   <t>If the response status code is 200 or 203 and the request method was GET,
841   the response payload is a representation of the target resource.</t>
842   <t>If the response status code is 204, 206, or 304 and the request method was GET
843   or HEAD, the response payload is a partial representation of the target
844   resource.</t>
845   <t>If the response has a Content-Location header field, and that URI is the same
846   as the effective request URI, the response payload is a representation of the
847   target resource.</t>
848   <t>If the response has a Content-Location header field, and that URI is not the
849   same as the effective request URI, then the response asserts that its
850   payload is a representation of the resource identified by the
851   Content-Location URI. However, such an assertion cannot be trusted unless
852   it can be verified by other means (not defined by HTTP).</t>
853   <t>Otherwise, the response is a representation of an anonymous (i.e.,
854   unidentified) resource.</t>
855</list></t>
856<t>
857  <cref anchor="TODO-req-uri">
858   The comparison function is going to have to be defined somewhere,
859   because we already need to compare URIs for things like cache invalidation.</cref>
860</t>
861</section>
862
863</section>
864
865
866<section title="Method Definitions" anchor="method.definitions">
867<t>
868   The set of common request methods for HTTP/1.1 is defined below. Although
869   this set can be expanded, additional methods cannot be assumed to
870   share the same semantics for separately extended clients and servers.
871</t>
872
873<section title="Safe and Idempotent Methods" anchor="safe.and.idempotent">
874
875<section title="Safe Methods" anchor="safe.methods">
876<iref item="Safe Methods" primary="true"/>
877<t>
878   Implementors need to be aware that the software represents the user in
879   their interactions over the Internet, and need to allow
880   the user to be aware of any actions they take which might have an
881   unexpected significance to themselves or others.
882</t>
883<t>
884   In particular, the convention has been established that the GET, HEAD,
885   OPTIONS, and TRACE request methods &SHOULD-NOT; have the significance
886   of taking an action other than retrieval. These request methods ought
887   to be considered "<x:dfn anchor="safe">safe</x:dfn>".
888   This allows user agents to represent other methods, such as POST, PUT
889   and DELETE, in a special way, so that the user is made aware of the
890   fact that a possibly unsafe action is being requested.
891</t>
892<t>
893   Naturally, it is not possible to ensure that the server does not
894   generate side-effects as a result of performing a GET request; in
895   fact, some dynamic resources consider that a feature. The important
896   distinction here is that the user did not request the side-effects,
897   so therefore cannot be held accountable for them.
898</t>
899</section>
900
901<section title="Idempotent Methods" anchor="idempotent.methods">
902<iref item="Idempotent Methods" primary="true"/>
903<t>
904   Request methods can also have the property of "idempotence" in that,
905   aside from error or expiration issues, the intended effect of multiple
906   identical requests is the same as for a single request.
907   PUT, DELETE, and all safe request methods are idempotent.
908   It is important to note that idempotence refers only to changes
909   requested by the client: a server is free to change its state due
910   to multiple requests for the purpose of tracking those requests,
911   versioning of results, etc.
912</t>
913</section>
914</section>
915
916<section title="OPTIONS" anchor="OPTIONS">
917  <rdf:Description>
918    <safe xmlns="urn:ietf:id:draft-ietf-httpbis-p2-semantics#">yes</safe>
919  </rdf:Description>
920  <iref primary="true" item="OPTIONS method" x:for-anchor=""/>
921  <iref primary="true" item="Methods" subitem="OPTIONS" x:for-anchor=""/>
922<t>
923   The OPTIONS method requests information about the
924   communication options available on the request/response chain
925   identified by the effective request URI. This method allows a client to
926   determine the options and/or requirements associated with a resource,
927   or the capabilities of a server, without implying a resource action
928   or initiating a resource retrieval.
929</t>
930<t>
931   Responses to the OPTIONS method are not cacheable.
932</t>
933<t>
934   If the OPTIONS request includes a message-body (as indicated by the
935   presence of Content-Length or Transfer-Encoding), then the media type
936   &MUST; be indicated by a Content-Type field. Although this
937   specification does not define any use for such a body, future
938   extensions to HTTP might use the OPTIONS body to make more detailed
939   queries on the server.
940</t>
941<t>
942   If the request-target is an asterisk ("*"), the OPTIONS request is
943   intended to apply to the server in general rather than to a specific
944   resource. Since a server's communication options typically depend on
945   the resource, the "*" request is only useful as a "ping" or "no-op"
946   type of method; it does nothing beyond allowing the client to test
947   the capabilities of the server. For example, this can be used to test
948   a proxy for HTTP/1.1 conformance (or lack thereof).
949</t>
950<t>
951   If the request-target is not an asterisk, the OPTIONS request applies
952   only to the options that are available when communicating with that
953   resource.
954</t>
955<t>
956   A 200 response &SHOULD; include any header fields that indicate
957   optional features implemented by the server and applicable to that
958   resource (e.g., Allow), possibly including extensions not defined by
959   this specification. The response body, if any, &SHOULD; also include
960   information about the communication options. The format for such a
961   body is not defined by this specification, but might be defined by
962   future extensions to HTTP. Content negotiation &MAY; be used to select
963   the appropriate response format. If no response body is included, the
964   response &MUST; include a Content-Length field with a field-value of
965   "0".
966</t>
967<t>
968   The Max-Forwards header field &MAY; be used to target a
969   specific proxy in the request chain (see <xref target="header.max-forwards"/>).
970   If no Max-Forwards field is present in the request, then the forwarded
971   request &MUST-NOT; include a Max-Forwards field.
972</t>
973</section>
974
975<section title="GET" anchor="GET">
976  <rdf:Description>
977    <safe xmlns="urn:ietf:id:draft-ietf-httpbis-p2-semantics#">yes</safe>
978  </rdf:Description>
979  <iref primary="true" item="GET method" x:for-anchor=""/>
980  <iref primary="true" item="Methods" subitem="GET" x:for-anchor=""/>
981<t>
982   The GET method requests transfer of a current representation of
983   the target resource.
984</t>
985<t>   
986   If the target resource is a data-producing process, it is the
987   produced data which shall be returned as the representation in the response and not
988   the source text of the process, unless that text happens to be the output of
989   the process.
990</t>
991<t>
992   The semantics of the GET method change to a "conditional GET" if the
993   request message includes an If-Modified-Since, If-Unmodified-Since,
994   If-Match, If-None-Match, or If-Range header field. A conditional GET
995   requests that the representation be transferred only under the
996   circumstances described by the conditional header field(s). The
997   conditional GET request is intended to reduce unnecessary network
998   usage by allowing cached representations to be refreshed without requiring
999   multiple requests or transferring data already held by the client.
1000</t>
1001<t>
1002   The semantics of the GET method change to a "partial GET" if the
1003   request message includes a Range header field. A partial GET requests
1004   that only part of the representation be transferred, as described in &header-range;.
1005   The partial GET request is intended to reduce unnecessary
1006   network usage by allowing partially-retrieved representations to be
1007   completed without transferring data already held by the client.
1008</t>
1009<t>
1010   Bodies on GET requests have no defined semantics. Note that sending a body
1011   on a GET request might cause some existing implementations to reject the
1012   request.
1013</t>
1014<t>
1015   The response to a GET request is cacheable and &MAY; be used to satisfy
1016   subsequent GET and HEAD requests (see &caching;).
1017</t>
1018<t>
1019   See <xref target="encoding.sensitive.information.in.uris"/> for security considerations when used for forms.
1020</t>
1021</section>
1022
1023<section title="HEAD" anchor="HEAD">
1024  <rdf:Description>
1025    <safe xmlns="urn:ietf:id:draft-ietf-httpbis-p2-semantics#">yes</safe>
1026  </rdf:Description>
1027  <iref primary="true" item="HEAD method" x:for-anchor=""/>
1028  <iref primary="true" item="Methods" subitem="HEAD" x:for-anchor=""/>
1029<t>
1030   The HEAD method is identical to GET except that the server &MUST-NOT;
1031   return a message-body in the response. The metadata contained
1032   in the HTTP header fields in response to a HEAD request &SHOULD; be identical
1033   to the information sent in response to a GET request. This method can
1034   be used for obtaining metadata about the representation implied by the
1035   request without transferring the representation body. This method is
1036   often used for testing hypertext links for validity, accessibility,
1037   and recent modification.
1038</t>
1039<t>
1040   The response to a HEAD request is cacheable and &MAY; be used to satisfy
1041   a subsequent HEAD request; see &caching;. It also &MAY; be used to update a previously cached
1042   representation from that resource; if the new field values
1043   indicate that the cached representation differs from the current representation (as
1044   would be indicated by a change in Content-Length, ETag
1045   or Last-Modified), then the cache &MUST; treat the cache entry as
1046   stale.
1047</t>
1048<t>
1049   Bodies on HEAD requests have no defined semantics. Note that sending a body
1050   on a HEAD request might cause some existing implementations to reject the
1051   request.
1052</t>
1053</section>
1054
1055<section title="POST" anchor="POST">
1056  <iref primary="true" item="POST method" x:for-anchor=""/>
1057  <iref primary="true" item="Methods" subitem="POST" x:for-anchor=""/>
1058<t>
1059   The POST method requests that the origin server accept the
1060   representation enclosed in the request as data to be processed by the
1061   target resource. POST is designed to allow a uniform method to cover the
1062   following functions:
1063  <list style="symbols">
1064    <t>
1065      Annotation of existing resources;
1066    </t>
1067    <t>
1068        Posting a message to a bulletin board, newsgroup, mailing list,
1069        or similar group of articles;
1070    </t>
1071    <t>
1072        Providing a block of data, such as the result of submitting a
1073        form, to a data-handling process;
1074    </t>
1075    <t>
1076        Extending a database through an append operation.
1077    </t>
1078  </list>
1079</t>
1080<t>
1081   The actual function performed by the POST method is determined by the
1082   server and is usually dependent on the effective request URI.
1083</t>
1084<t>
1085   The action performed by the POST method might not result in a
1086   resource that can be identified by a URI. In this case, either 200
1087   (OK) or 204 (No Content) is the appropriate response status code,
1088   depending on whether or not the response includes a representation that
1089   describes the result.
1090</t>
1091<t>
1092   If a resource has been created on the origin server, the response
1093   &SHOULD; be 201 (Created) and contain a representation which describes the
1094   status of the request and refers to the new resource, and a Location
1095   header field (see <xref target="header.location"/>).
1096</t>
1097<t>
1098   Responses to POST requests are only cacheable when they
1099   include explicit freshness information (see &p6-explicit;). A
1100   cached POST response with a Content-Location header field
1101   (see &header-content-location;) whose value is the effective
1102   Request URI &MAY; be used to satisfy subsequent GET and HEAD requests.
1103</t>
1104<t>
1105   Note that POST caching is not widely implemented.
1106   However, the 303 (See Other) response can be used to direct the
1107   user agent to retrieve a cacheable resource.
1108</t>
1109</section>
1110
1111<section title="PUT" anchor="PUT">
1112  <iref primary="true" item="PUT method" x:for-anchor=""/>
1113  <iref primary="true" item="Methods" subitem="PUT" x:for-anchor=""/>
1114<t>
1115   The PUT method requests that the state of the target resource
1116   be created or replaced with the state defined by the representation
1117   enclosed in the request message payload.  A successful PUT of a given
1118   representation would suggest that a subsequent GET on that same target
1119   resource will result in an equivalent representation being returned in
1120   a 200 (OK) response.  However, there is no guarantee that such a state
1121   change will be observable, since the target resource might be acted
1122   upon by other user agents in parallel, or might be subject to dynamic
1123   processing by the origin server, before any subsequent GET is received.
1124   A successful response only implies that the user agent's intent was
1125   achieved at the time of its processing by the origin server.
1126</t>
1127<t>   
1128   If the target resource does not have a current representation and
1129   the PUT successfully creates one, then the origin server &MUST; inform
1130   the user agent by sending a 201 (Created) response.  If the target
1131   resource does have a current representation and that representation is
1132   successfully modified in accordance with the state of the enclosed
1133   representation, then either a 200 (OK) or 204 (No Content) response
1134   &SHOULD; be sent to indicate successful completion of the request.
1135</t>
1136<t>
1137   Unrecognized header fields &SHOULD; be ignored (i.e., not saved
1138   as part of the resource state).
1139</t>
1140<t>
1141   An origin server &SHOULD; verify that the PUT representation is
1142   consistent with any constraints which the server has for the target
1143   resource that cannot or will not be changed by the PUT.  This is
1144   particularly important when the origin server uses internal
1145   configuration information related to the URI in order to set the
1146   values for representation metadata on GET responses.  When a PUT
1147   representation is inconsistent with the target resource, the origin
1148   server &SHOULD; either make them consistent, by transforming the
1149   representation or changing the resource configuration, or respond
1150   with an appropriate error message containing sufficient information
1151   to explain why the representation is unsuitable.  The 409 (Conflict)
1152   or 415 (Unsupported Media Type) status codes are suggested, with the
1153   latter being specific to constraints on Content-Type values.
1154</t>
1155<t>
1156   For example, if the target resource is configured to always have a
1157   Content-Type of "text/html" and the representation being PUT has a
1158   Content-Type of "image/jpeg", then the origin server &SHOULD; do one of:
1159   (a) reconfigure the target resource to reflect the new media type;
1160   (b) transform the PUT representation to a format consistent with that
1161   of the resource before saving it as the new resource state; or,
1162   (c) reject the request with a 415 response indicating that the target
1163   resource is limited to "text/html", perhaps including a link to a
1164   different resource that would be a suitable target for the new
1165   representation.
1166</t>
1167<t>
1168   HTTP does not define exactly how a PUT method affects the state
1169   of an origin server beyond what can be expressed by the intent of
1170   the user agent request and the semantics of the origin server response.
1171   It does not define what a resource might be, in any sense of that
1172   word, beyond the interface provided via HTTP.  It does not define
1173   how resource state is "stored", nor how such storage might change
1174   as a result of a change in resource state, nor how the origin server
1175   translates resource state into representations.  Generally speaking,
1176   all implementation details behind the resource interface are
1177   intentionally hidden by the server.
1178</t>
1179<t>
1180   The fundamental difference between the POST and PUT methods is
1181   highlighted by the different intent for the target resource.
1182   The target resource in a POST request is intended to handle the
1183   enclosed representation as a data-accepting process, such as for
1184   a gateway to some other protocol or a document that accepts annotations.
1185   In contrast, the target resource in a PUT request is intended to
1186   take the enclosed representation as a new or replacement value.
1187   Hence, the intent of PUT is idempotent and visible to intermediaries,
1188   even though the exact effect is only known by the origin server.
1189</t>
1190<t>
1191   Proper interpretation of a PUT request presumes that the user agent
1192   knows what target resource is desired.  A service that is intended
1193   to select a proper URI on behalf of the client, after receiving
1194   a state-changing request, &SHOULD; be implemented using the POST
1195   method rather than PUT.  If the origin server will not make the
1196   requested PUT state change to the target resource and instead
1197   wishes to have it applied to a different resource, such as when the
1198   resource has been moved to a different URI, then the origin server
1199   &MUST; send a 301 (Moved Permanently) response; the user agent &MAY;
1200   then make its own decision regarding whether or not to redirect the
1201   request.
1202</t>
1203<t>
1204   A PUT request applied to the target resource &MAY; have side-effects
1205   on other resources.  For example, an article might have a URI for
1206   identifying "the current version" (a resource) which is separate
1207   from the URIs identifying each particular version (different
1208   resources that at one point shared the same state as the current version
1209   resource).  A successful PUT request on "the current version" URI might
1210   therefore create a new version resource in addition to changing the
1211   state of the target resource, and might also cause links to be added
1212   between the related resources.
1213</t>
1214<t>
1215   An origin server &SHOULD; reject any PUT request that contains a
1216   Content-Range header field, since it might be misinterpreted as
1217   partial content (or might be partial content that is being mistakenly
1218   PUT as a full representation).  Partial content updates are
1219   possible by targeting a separately identified resource with state
1220   that overlaps a portion of the larger resource, or by using a
1221   different method that has been specifically defined for partial
1222   updates (for example, the PATCH method defined in
1223   <xref target="RFC5789"/>).
1224</t>
1225<t>
1226   Responses to the PUT method are not cacheable. If a PUT request passes
1227   through a cache that has one or more stored responses for the effective
1228   request URI, those stored responses will be invalidated (see
1229   &p6-invalid;).
1230</t>
1231</section>
1232
1233<section title="DELETE" anchor="DELETE">
1234  <iref primary="true" item="DELETE method" x:for-anchor=""/>
1235  <iref primary="true" item="Methods" subitem="DELETE" x:for-anchor=""/>
1236<t>
1237   The DELETE method requests that the origin server delete the target
1238   resource. This method &MAY; be overridden by
1239   human intervention (or other means) on the origin server. The client cannot
1240   be guaranteed that the operation has been carried out, even if the
1241   status code returned from the origin server indicates that the action
1242   has been completed successfully. However, the server &SHOULD-NOT; 
1243   indicate success unless, at the time the response is given, it
1244   intends to delete the resource or move it to an inaccessible
1245   location.
1246</t>
1247<t>
1248   A successful response &SHOULD; be 200 (OK) if the response includes an
1249   representation describing the status, 202 (Accepted) if the action has not
1250   yet been enacted, or 204 (No Content) if the action has been enacted
1251   but the response does not include a representation.
1252</t>
1253<t>
1254   Bodies on DELETE requests have no defined semantics. Note that sending a body
1255   on a DELETE request might cause some existing implementations to reject the
1256   request.
1257</t>
1258<t>
1259   Responses to the DELETE method are not cacheable. If a DELETE request
1260   passes through a cache that has one or more stored responses for the
1261   effective request URI, those stored responses will be invalidated (see
1262   &p6-invalid;).
1263</t>
1264</section>
1265
1266<section title="TRACE" anchor="TRACE">
1267  <rdf:Description>
1268    <safe xmlns="urn:ietf:id:draft-ietf-httpbis-p2-semantics#">yes</safe>
1269  </rdf:Description>
1270  <iref primary="true" item="TRACE method" x:for-anchor=""/>
1271  <iref primary="true" item="Methods" subitem="TRACE" x:for-anchor=""/>
1272<t>
1273   The TRACE method requests a remote, application-layer loop-back
1274   of the request message. The final recipient of the request
1275   &SHOULD; reflect the message received back to the client as the
1276   message-body of a 200 (OK) response. The final recipient is either the
1277   origin server or the first proxy to receive a Max-Forwards
1278   value of zero (0) in the request (see <xref target="header.max-forwards"/>).
1279   A TRACE request &MUST-NOT; include a message-body.
1280</t>
1281<t>
1282   TRACE allows the client to see what is being received at the other
1283   end of the request chain and use that data for testing or diagnostic
1284   information. The value of the Via header field (&header-via;) is of
1285   particular interest, since it acts as a trace of the request chain.
1286   Use of the Max-Forwards header field allows the client to limit the
1287   length of the request chain, which is useful for testing a chain of
1288   proxies forwarding messages in an infinite loop.
1289</t>
1290<t>
1291   If the request is valid, the response &SHOULD; have a Content-Type of
1292   "message/http" (see &media-type-message-http;) and contain a message-body
1293   that encloses a copy of the entire request message.
1294   Responses to the TRACE method are not cacheable.
1295</t>
1296</section>
1297
1298<section title="CONNECT" anchor="CONNECT">
1299  <iref primary="true" item="CONNECT method" x:for-anchor=""/>
1300  <iref primary="true" item="Methods" subitem="CONNECT" x:for-anchor=""/>
1301<t>
1302   The CONNECT method requests that the proxy establish a tunnel
1303   to the request-target and then restrict its behavior to blind
1304   forwarding of packets until the connection is closed.
1305</t>
1306<t>
1307   When using CONNECT, the request-target &MUST; use the authority form
1308   (&request-target;); i.e., the request-target consists of only the
1309   host name and port number of the tunnel destination, separated by a colon.
1310   For example,
1311</t>
1312<figure><artwork type="message/http; msgtype=&#34;request&#34;" x:indent-with="  ">
1313CONNECT server.example.com:80 HTTP/1.1
1314Host: server.example.com:80
1315
1316</artwork></figure>
1317<t>
1318   Other HTTP mechanisms can be used normally with the CONNECT method &mdash;
1319   except end-to-end protocol Upgrade requests, since the
1320   tunnel must be established first.
1321</t>
1322<t>
1323   For example, proxy authentication might be used to establish the
1324   authority to create a tunnel:
1325</t>
1326<figure><artwork type="message/http; msgtype=&#34;request&#34;" x:indent-with="  ">
1327CONNECT server.example.com:80 HTTP/1.1
1328Host: server.example.com:80
1329Proxy-Authorization: basic aGVsbG86d29ybGQ=
1330
1331</artwork></figure>
1332<t>
1333   Bodies on CONNECT requests have no defined semantics. Note that sending a body
1334   on a CONNECT request might cause some existing implementations to reject the
1335   request.
1336</t>
1337<t>
1338   Like any other pipelined HTTP/1.1 request, data to be tunnel may be
1339   sent immediately after the blank line. The usual caveats also apply:
1340   data may be discarded if the eventual response is negative, and the
1341   connection may be reset with no response if more than one TCP segment
1342   is outstanding.
1343</t>
1344
1345<section title="Establishing a Tunnel with CONNECT">
1346<t>
1347   Any successful (2xx) response to a CONNECT request indicates that the
1348   proxy has established a connection to the requested host and port,
1349   and has switched to tunneling the current connection to that server
1350   connection.
1351</t>
1352<t>
1353   It may be the case that the proxy itself can only reach the requested
1354   origin server through another proxy.  In this case, the first proxy
1355   &SHOULD; make a CONNECT request of that next proxy, requesting a tunnel
1356   to the authority.  A proxy &MUST-NOT; respond with any 2xx status code
1357   unless it has either a direct or tunnel connection established to the
1358   authority.
1359</t>
1360<t>
1361   An origin server which receives a CONNECT request for itself &MAY;
1362   respond with a 2xx status code to indicate that a connection is
1363   established.
1364</t>
1365<t>
1366   If at any point either one of the peers gets disconnected, any
1367   outstanding data that came from that peer will be passed to the other
1368   one, and after that also the other connection will be terminated by
1369   the proxy. If there is outstanding data to that peer undelivered,
1370   that data will be discarded.
1371</t>
1372
1373</section>
1374</section>
1375</section>
1376
1377
1378<section title="Status Code Definitions" anchor="status.codes">
1379<t>
1380   The first digit of the Status-Code defines the class of response. The
1381   last two digits do not have any categorization role. There are 5
1382   values for the first digit:
1383  <list style="symbols">
1384    <t>
1385      1xx: Informational - Request received, continuing process
1386    </t>
1387    <t>
1388      2xx: Success - The action was successfully received,
1389        understood, and accepted
1390    </t>
1391    <t>
1392      3xx: Redirection - Further action must be taken in order to
1393        complete the request
1394    </t>
1395    <t>
1396      4xx: Client Error - The request contains bad syntax or cannot
1397        be fulfilled
1398    </t>
1399    <t>
1400      5xx: Server Error - The server failed to fulfill an apparently
1401        valid request
1402    </t>
1403  </list>
1404</t>
1405<t>
1406   Each Status-Code is described below, including any metadata required
1407   in the response.
1408</t>
1409<t>
1410   For most status codes the response can carry a payload, in which case a
1411   Content-Type header field indicates the payload's media type
1412   (&header-content-type;).
1413</t>
1414
1415<section title="Informational 1xx" anchor="status.1xx">
1416<t>
1417   This class of status code indicates a provisional response,
1418   consisting only of the Status-Line and optional header fields, and is
1419   terminated by an empty line. There are no required header fields for this
1420   class of status code. Since HTTP/1.0 did not define any 1xx status
1421   codes, servers &MUST-NOT; send a 1xx response to an HTTP/1.0 client
1422   except under experimental conditions.
1423</t>
1424<t>
1425   A client &MUST; be prepared to accept one or more 1xx status responses
1426   prior to a regular response, even if the client does not expect a 100
1427   (Continue) status message. Unexpected 1xx status responses &MAY; be
1428   ignored by a user agent.
1429</t>
1430<t>
1431   Proxies &MUST; forward 1xx responses, unless the connection between the
1432   proxy and its client has been closed, or unless the proxy itself
1433   requested the generation of the 1xx response. (For example, if a
1434   proxy adds a "Expect: 100-continue" field when it forwards a request,
1435   then it need not forward the corresponding 100 (Continue)
1436   response(s).)
1437</t>
1438
1439<section title="100 Continue" anchor="status.100">
1440  <iref primary="true" item="100 Continue (status code)" x:for-anchor=""/>
1441  <iref primary="true" item="Status Codes" subitem="100 Continue" x:for-anchor=""/>
1442<t>
1443   The client &SHOULD; continue with its request. This interim response is
1444   used to inform the client that the initial part of the request has
1445   been received and has not yet been rejected by the server. The client
1446   &SHOULD; continue by sending the remainder of the request or, if the
1447   request has already been completed, ignore this response. The server
1448   &MUST; send a final response after the request has been completed. See
1449   &use100; for detailed discussion of the use and handling of this
1450   status code.
1451</t>
1452</section>
1453
1454<section title="101 Switching Protocols" anchor="status.101">
1455  <iref primary="true" item="101 Switching Protocols (status code)" x:for-anchor=""/>
1456  <iref primary="true" item="Status Codes" subitem="101 Switching Protocols" x:for-anchor=""/>
1457<t>
1458   The server understands and is willing to comply with the client's
1459   request, via the Upgrade message header field (&header-upgrade;), for a
1460   change in the application protocol being used on this connection. The
1461   server will switch protocols to those defined by the response's
1462   Upgrade header field immediately after the empty line which
1463   terminates the 101 response.
1464</t>
1465<t>
1466   The protocol &SHOULD; be switched only when it is advantageous to do
1467   so. For example, switching to a newer version of HTTP is advantageous
1468   over older versions, and switching to a real-time, synchronous
1469   protocol might be advantageous when delivering resources that use
1470   such features.
1471</t>
1472</section>
1473</section>
1474
1475<section title="Successful 2xx" anchor="status.2xx">
1476<t>
1477   This class of status code indicates that the client's request was
1478   successfully received, understood, and accepted.
1479</t>
1480
1481<section title="200 OK" anchor="status.200">
1482  <iref primary="true" item="200 OK (status code)" x:for-anchor=""/>
1483  <iref primary="true" item="Status Codes" subitem="200 OK" x:for-anchor=""/>
1484<t>
1485   The request has succeeded. The payload returned with the response
1486   is dependent on the method used in the request, for example:
1487  <list style="hanging">
1488    <t hangText="GET">
1489      a representation of the target resource is sent in the response;
1490    </t>
1491    <t hangText="HEAD">
1492      the same representation as GET, except without the message-body;
1493    </t>
1494    <t hangText="POST">
1495      a representation describing or containing the result of the action;
1496    </t>
1497    <t hangText="TRACE">
1498      a representation containing the request message as received by the
1499      end server.
1500    </t>
1501  </list>
1502</t>
1503<t>
1504   Caches &MAY; use a heuristic (see &p6-heuristic;) to determine
1505   freshness for 200 responses.
1506</t>
1507</section>
1508
1509<section title="201 Created" anchor="status.201">
1510  <iref primary="true" item="201 Created (status code)" x:for-anchor=""/>
1511  <iref primary="true" item="Status Codes" subitem="201 Created" x:for-anchor=""/>
1512<t>
1513   The request has been fulfilled and has resulted in a new resource being
1514   created. The newly created resource can be referenced by the URI(s)
1515   returned in the payload of the response, with the most specific URI
1516   for the resource given by a Location header field. The response
1517   can include a payload containing a list of resource
1518   characteristics and location(s) from which the user or user agent can
1519   choose the one most appropriate.
1520</t>
1521<t>
1522   The origin server &MUST; create the resource before returning the 201 status
1523   code. If the action cannot be carried out immediately, the server &SHOULD;
1524   respond with 202 (Accepted) response instead.
1525</t>
1526<t>
1527   A 201 response &MAY; contain an ETag response header field indicating
1528   the current value of the entity-tag for the representation of the resource
1529   just created (see &header-etag;).
1530</t>
1531</section>
1532
1533<section title="202 Accepted" anchor="status.202">
1534  <iref primary="true" item="202 Accepted (status code)" x:for-anchor=""/>
1535  <iref primary="true" item="Status Codes" subitem="202 Accepted" x:for-anchor=""/>
1536<t>
1537   The request has been accepted for processing, but the processing has
1538   not been completed.  The request might or might not eventually be
1539   acted upon, as it might be disallowed when processing actually takes
1540   place. There is no facility for re-sending a status code from an
1541   asynchronous operation such as this.
1542</t>
1543<t>
1544   The 202 response is intentionally non-committal. Its purpose is to
1545   allow a server to accept a request for some other process (perhaps a
1546   batch-oriented process that is only run once per day) without
1547   requiring that the user agent's connection to the server persist
1548   until the process is completed. The representation returned with this
1549   response &SHOULD; include an indication of the request's current status
1550   and either a pointer to a status monitor or some estimate of when the
1551   user can expect the request to be fulfilled.
1552</t>
1553</section>
1554
1555<section title="203 Non-Authoritative Information" anchor="status.203">
1556  <iref primary="true" item="203 Non-Authoritative Information (status code)" x:for-anchor=""/>
1557  <iref primary="true" item="Status Codes" subitem="203 Non-Authoritative Information" x:for-anchor=""/>
1558<t>
1559   The representation in the response has been transformed or otherwise
1560   modified by a transforming proxy (&intermediaries;).  Note that the
1561   behavior of transforming intermediaries is controlled by the no-transform
1562   Cache-Control directive (&header-cache-control;).
1563</t>
1564<t>
1565   This status code is only appropriate when the response status code would
1566   have been 200 (OK) otherwise. When the status code before transformation
1567   would have been different, the 214 Transformation Applied warn-code
1568   (&header-warning;) is appropriate.
1569</t>
1570<t>
1571   Caches &MAY; use a heuristic (see &p6-heuristic;) to determine
1572   freshness for 203 responses.
1573</t>
1574</section>
1575
1576<section title="204 No Content" anchor="status.204">
1577  <iref primary="true" item="204 No Content (status code)" x:for-anchor=""/>
1578  <iref primary="true" item="Status Codes" subitem="204 No Content" x:for-anchor=""/>
1579<t>
1580   The 204 (No Content) status code indicates that the server has
1581   successfully fulfilled the request and that there is no additional
1582   content to return in the response payload body.  Metadata in the
1583   response header fields refer to the target resource and its current
1584   representation after the requested action.
1585</t>
1586<t>
1587   For example, if a 204 status code is received in response to a PUT
1588   request and the response contains an ETag header field, then the PUT
1589   was successful and the ETag field-value contains the entity-tag for
1590   the new representation of that target resource.
1591</t>
1592<t>
1593   The 204 response allows a server to indicate that the action has been
1594   successfully applied to the target resource while implying that the
1595   user agent &SHOULD-NOT; traverse away from its current "document view"
1596   (if any).  The server assumes that the user agent will provide some
1597   indication of the success to its user, in accord with its own interface,
1598   and apply any new or updated metadata in the response to the active
1599   representation.
1600</t>
1601<t>
1602   For example, a 204 status code is commonly used with document editing
1603   interfaces corresponding to a "save" action, such that the document
1604   being saved remains available to the user for editing. It is also
1605   frequently used with interfaces that expect automated data transfers
1606   to be prevalent, such as within distributed version control systems.
1607</t>
1608<t>
1609   The 204 response &MUST-NOT; include a message-body, and thus is always
1610   terminated by the first empty line after the header fields.
1611</t>
1612</section>
1613
1614<section title="205 Reset Content" anchor="status.205">
1615  <iref primary="true" item="205 Reset Content (status code)" x:for-anchor=""/>
1616  <iref primary="true" item="Status Codes" subitem="205 Reset Content" x:for-anchor=""/>
1617<t>
1618   The server has fulfilled the request and the user agent &SHOULD; reset
1619   the document view which caused the request to be sent. This response
1620   is primarily intended to allow input for actions to take place via
1621   user input, followed by a clearing of the form in which the input is
1622   given so that the user can easily initiate another input action.
1623</t>
1624<t>   
1625   The message-body included with the response &MUST; be empty. Note that
1626   receivers still need to parse the response according to the algorithm defined
1627   in &message-body;.
1628</t>
1629</section>
1630</section>
1631
1632<section title="Redirection 3xx" anchor="status.3xx">
1633<t>
1634   This class of status code indicates that further action needs to be
1635   taken by the user agent in order to fulfill the request.  If the required
1636   action involves a subsequent HTTP request, it &MAY; be carried out by the
1637   user agent without interaction with the user if and only if the method used
1638   in the second request is known to be "safe", as defined in
1639   <xref target="safe.methods"/>.
1640</t>
1641<t>
1642   There are several types of redirects:
1643   <list style="numbers">
1644      <x:lt>
1645        <t>
1646          Redirects of the request to another URI, either temporarily or
1647          permanently. The new URI is specified in the Location header field.
1648          In this specification, the status codes 301 (Moved Permanently),
1649          302 (Found), and 307 (Temporary Redirect) fall under this category.
1650        </t>
1651      </x:lt>
1652      <x:lt>
1653        <t>
1654          Redirection to a new location that represents an indirect response to
1655          the request, such as the result of a POST operation to be retrieved
1656          with a subsequent GET request. This is status code 303 (See Other).
1657        </t>
1658      </x:lt>
1659      <x:lt>
1660        <t>
1661          Redirection offering a choice of matching resources for use by
1662          agent-driven content negotiation (&agent-driven-negotiation;). This
1663          is status code 300 (Multiple Choices).
1664        </t>
1665      </x:lt>
1666      <x:lt>
1667        <t>
1668          Other kinds of redirection, such as to a cached result (status code 304
1669          (Not Modified), see &status-304;).
1670        </t>
1671      </x:lt>
1672   </list>
1673</t>
1674<x:note>
1675  <t>
1676    <x:h>Note:</x:h> In HTTP/1.0, only the status codes 301 (Moved Permanently)
1677    and 302 (Found) were defined for the first type of redirect, and the second
1678    type did not exist at all (<xref target="RFC1945" x:fmt="," x:sec="9.3"/>).
1679    However it turned out that web forms using POST expected redirects to change
1680    the operation for the subsequent request to retrieval (GET). To address this
1681    use case, HTTP/1.1 introduced the second type of redirect with the status
1682    code 303 (See Other) (<xref target="RFC2068" x:fmt="," x:sec="10.3.4"/>).
1683    As user agents did not change their behavior to maintain backwards
1684    compatibility, the first revision of HTTP/1.1 added yet another status code,
1685    307 (Temporary Redirect), for which the backwards compatibility problems did
1686    not apply (<xref target="RFC2616" x:fmt="," x:sec="10.3.8"/>).
1687    Over 10 years later, most user agents still do method rewriting for
1688    status codes 301 and 302, therefore this specification makes that behavior
1689    conformant in case the original request was POST.
1690  </t>
1691</x:note>
1692<t>
1693   A Location header field on a 3xx response indicates that a client &MAY;
1694   automatically redirect to the URI provided; see <xref target="header.location"/>.
1695</t>
1696<t>
1697   Clients &SHOULD; detect and intervene in cyclical redirections (i.e.,
1698   "infinite" redirection loops).
1699</t>
1700<x:note>
1701  <t>
1702    <x:h>Note:</x:h> An earlier version of this specification recommended a
1703    maximum of five redirections (<xref target="RFC2068" x:fmt="," x:sec="10.3"/>).
1704    Content developers need to be aware that some clients might
1705    implement such a fixed limitation.
1706  </t>
1707</x:note>
1708
1709<section title="300 Multiple Choices" anchor="status.300">
1710  <iref primary="true" item="300 Multiple Choices (status code)" x:for-anchor=""/>
1711  <iref primary="true" item="Status Codes" subitem="300 Multiple Choices" x:for-anchor=""/>
1712<t>
1713   The target resource has more than one
1714   representation, each with its own specific location, and agent-driven
1715   negotiation information (&content-negotiation;) is being provided so that
1716   the user (or user agent) can select a preferred representation by
1717   redirecting its request to that location.
1718</t>
1719<t>
1720   Unless it was a HEAD request, the response &SHOULD; include a representation
1721   containing a list of representation metadata and location(s) from
1722   which the user or user agent can choose the one most appropriate. Depending
1723   upon the format and the capabilities of
1724   the user agent, selection of the most appropriate choice &MAY; be
1725   performed automatically. However, this specification does not define
1726   any standard for such automatic selection.
1727</t>
1728<t>
1729   If the server has a preferred choice of representation, it &SHOULD;
1730   include the specific URI for that representation in the Location
1731   field; user agents &MAY; use the Location field value for automatic
1732   redirection.
1733</t>
1734<t>
1735   Caches &MAY; use a heuristic (see &p6-heuristic;) to determine
1736   freshness for 300 responses.
1737</t>
1738
1739</section>
1740
1741<section title="301 Moved Permanently" anchor="status.301">
1742  <iref primary="true" item="301 Moved Permanently (status code)" x:for-anchor=""/>
1743  <iref primary="true" item="Status Codes" subitem="301 Moved Permanently" x:for-anchor=""/>
1744<t>
1745   The target resource has been assigned a new permanent URI and any
1746   future references to this resource &SHOULD; use one of the returned
1747   URIs.  Clients with link editing capabilities ought to automatically
1748   re-link references to the effective request URI to one or more of the new
1749   references returned by the server, where possible.
1750</t>
1751<t>
1752   Caches &MAY; use a heuristic (see &p6-heuristic;) to determine
1753   freshness for 301 responses.
1754</t>
1755<t>
1756   The new permanent URI &SHOULD; be given by the Location field in the
1757   response. A response payload can contain a short hypertext note with a
1758   hyperlink to the new URI(s).
1759</t>
1760<t>
1761   If the 301 status code is received in response to a request method
1762   that is known to be "safe", as defined in <xref target="safe.methods"/>,
1763   then the request &MAY; be automatically redirected by the user agent without
1764   confirmation.  Otherwise, the user agent &MUST-NOT; automatically redirect the
1765   request unless it can be confirmed by the user, since this might
1766   change the conditions under which the request was issued.
1767</t>
1768<x:note>
1769  <t>
1770    <x:h>Note:</x:h> For historic reasons, user agents &MAY; change the
1771    request method from POST to GET for the subsequent request. If this
1772    behavior is undesired, status code 307 (Temporary Redirect) can be used
1773    instead.
1774  </t>
1775</x:note>
1776</section>
1777
1778<section title="302 Found" anchor="status.302">
1779  <iref primary="true" item="302 Found (status code)" x:for-anchor=""/>
1780  <iref primary="true" item="Status Codes" subitem="302 Found" x:for-anchor=""/>
1781<t>
1782   The target resource resides temporarily under a different URI.
1783   Since the redirection might be altered on occasion, the client &SHOULD;
1784   continue to use the effective request URI for future requests.
1785</t>
1786<t>
1787   The temporary URI &SHOULD; be given by the Location field in the
1788   response. A response payload can contain a short hypertext note with a
1789   hyperlink to the new URI(s).
1790</t>
1791<t>
1792   If the 302 status code is received in response to a request method
1793   that is known to be "safe", as defined in <xref target="safe.methods"/>,
1794   then the request &MAY; be automatically redirected by the user agent without
1795   confirmation.  Otherwise, the user agent &MUST-NOT; automatically redirect the
1796   request unless it can be confirmed by the user, since this might
1797   change the conditions under which the request was issued.
1798</t>
1799<x:note>
1800  <t>
1801    <x:h>Note:</x:h> For historic reasons, user agents &MAY; change the
1802    request method from POST to GET for the subsequent request. If this
1803    behavior is undesired, status code 307 (Temporary Redirect) can be used
1804    instead.
1805  </t>
1806</x:note>
1807</section>
1808
1809<section title="303 See Other" anchor="status.303">
1810  <iref primary="true" item="303 See Other (status code)" x:for-anchor=""/>
1811  <iref primary="true" item="Status Codes" subitem="303 See Other" x:for-anchor=""/>
1812<t>
1813   The 303 status code indicates that the server is redirecting the
1814   user agent to a different resource, as indicated by a URI in the
1815   Location header field, that is intended to provide an indirect
1816   response to the original request.  In order to satisfy the original
1817   request, a user agent &SHOULD; perform a retrieval request using the
1818   Location URI (a GET or HEAD request if using HTTP), which
1819   may itself be redirected further, and present the eventual result as an
1820   answer to the original request.
1821   Note that the new URI in the Location header field is not considered
1822   equivalent to the effective request URI.
1823</t>
1824<t>
1825   This status code is generally applicable to any HTTP method.  It is
1826   primarily used to allow the output of a POST action to redirect
1827   the user agent to a selected resource, since doing so provides the
1828   information corresponding to the POST response in a form that
1829   can be separately identified, bookmarked, and cached independent
1830   of the original request.
1831</t>
1832<t>
1833   A 303 response to a GET request indicates that the requested
1834   resource does not have a representation of its own that can be
1835   transferred by the server over HTTP.  The Location URI indicates a
1836   resource that is descriptive of the target resource, such that the
1837   follow-on representation might be useful to recipients without
1838   implying that it adequately represents the target resource.
1839   Note that answers to the questions of what can be represented, what
1840   representations are adequate, and what might be a useful description
1841   are outside the scope of HTTP and thus entirely determined by the
1842   URI owner(s).
1843</t>
1844<t>
1845   Except for responses to a HEAD request, the representation of a 303
1846   response &SHOULD; contain a short hypertext note with a hyperlink
1847   to the Location URI.
1848</t>
1849</section>
1850
1851<section title="305 Use Proxy" anchor="status.305">
1852  <iref primary="true" item="305 Use Proxy (status code)" x:for-anchor=""/>
1853  <iref primary="true" item="Status Codes" subitem="305 Use Proxy" x:for-anchor=""/>
1854<t>
1855   The 305 status code was defined in a previous version of this specification
1856   (see <xref target="changes.from.rfc.2616"/>), and is now deprecated.
1857</t>
1858</section>
1859
1860<section title="306 (Unused)" anchor="status.306">
1861  <iref primary="true" item="306 (Unused) (status code)" x:for-anchor=""/>
1862  <iref primary="true" item="Status Codes" subitem="306 (Unused)" x:for-anchor=""/>
1863<t>
1864   The 306 status code was used in a previous version of the
1865   specification, is no longer used, and the code is reserved.
1866</t>
1867</section>
1868
1869<section title="307 Temporary Redirect" anchor="status.307">
1870  <iref primary="true" item="307 Temporary Redirect (status code)" x:for-anchor=""/>
1871  <iref primary="true" item="Status Codes" subitem="307 Temporary Redirect" x:for-anchor=""/>
1872<t>
1873   The target resource resides temporarily under a different URI.
1874   Since the redirection can change over time, the client &SHOULD;
1875   continue to use the effective request URI for future requests.
1876</t>
1877<t>
1878   The temporary URI &SHOULD; be given by the Location field in the
1879   response. A response payload can contain a short hypertext note with a
1880   hyperlink to the new URI(s).
1881</t>
1882<t>
1883   If the 307 status code is received in response to a request method
1884   that is known to be "safe", as defined in <xref target="safe.methods"/>,
1885   then the request &MAY; be automatically redirected by the user agent without
1886   confirmation.  Otherwise, the user agent &MUST-NOT; automatically redirect the
1887   request unless it can be confirmed by the user, since this might
1888   change the conditions under which the request was issued.
1889</t>
1890<x:note>
1891  <t>
1892    <x:h>Note:</x:h> This status code is similar to 302 Found, except that
1893    it does not allow rewriting the request method from POST to GET. This
1894    specification defines no equivalent counterpart for 301 Moved Permanently.
1895  </t>
1896</x:note>
1897</section>
1898</section>
1899
1900<section title="Client Error 4xx" anchor="status.4xx">
1901<t>
1902   The 4xx class of status code is intended for cases in which the
1903   client seems to have erred. Except when responding to a HEAD request,
1904   the server &SHOULD; include a representation containing an explanation of the
1905   error situation, and whether it is a temporary or permanent
1906   condition. These status codes are applicable to any request method.
1907   User agents &SHOULD; display any included representation to the user.
1908</t>
1909<t>
1910   If the client is sending data, a server implementation using TCP
1911   &SHOULD; be careful to ensure that the client acknowledges receipt of
1912   the packet(s) containing the response, before the server closes the
1913   input connection. If the client continues sending data to the server
1914   after the close, the server's TCP stack will send a reset packet to
1915   the client, which might erase the client's unacknowledged input buffers
1916   before they can be read and interpreted by the HTTP application.
1917</t>
1918
1919<section title="400 Bad Request" anchor="status.400">
1920  <iref primary="true" item="400 Bad Request (status code)" x:for-anchor=""/>
1921  <iref primary="true" item="Status Codes" subitem="400 Bad Request" x:for-anchor=""/>
1922<t>
1923   The server cannot or will not process the request, due to a client error (e.g.,
1924   malformed syntax).
1925</t>
1926</section>
1927
1928<section title="402 Payment Required" anchor="status.402">
1929  <iref primary="true" item="402 Payment Required (status code)" x:for-anchor=""/>
1930  <iref primary="true" item="Status Codes" subitem="402 Payment Required" x:for-anchor=""/>
1931<t>
1932   This code is reserved for future use.
1933</t>
1934</section>
1935
1936<section title="403 Forbidden" anchor="status.403">
1937  <iref primary="true" item="403 Forbidden (status code)" x:for-anchor=""/>
1938  <iref primary="true" item="Status Codes" subitem="403 Forbidden" x:for-anchor=""/>
1939<t>
1940   The server understood the request, but refuses to authorize it. Providing
1941   different user authentication credentials might be successful, but any
1942   credentials that were provided in the request are insufficient. The request
1943   &SHOULD-NOT; be repeated with the same credentials.
1944</t>
1945<t>
1946   If the request method was not HEAD and the server wishes to make
1947   public why the request has not been fulfilled, it &SHOULD; describe the
1948   reason for the refusal in the representation.  If the server does not wish to
1949   make this information available to the client, the status code 404
1950   (Not Found) &MAY; be used instead.
1951</t>
1952</section>
1953
1954<section title="404 Not Found" anchor="status.404">
1955  <iref primary="true" item="404 Not Found (status code)" x:for-anchor=""/>
1956  <iref primary="true" item="Status Codes" subitem="404 Not Found" x:for-anchor=""/>
1957<t>
1958   The server has not found anything matching the effective request URI. No
1959   indication is given of whether the condition is temporary or
1960   permanent. The 410 (Gone) status code &SHOULD; be used if the server
1961   knows, through some internally configurable mechanism, that an old
1962   resource is permanently unavailable and has no forwarding address.
1963   This status code is commonly used when the server does not wish to
1964   reveal exactly why the request has been refused, or when no other
1965   response is applicable.
1966</t>
1967</section>
1968
1969<section title="405 Method Not Allowed" anchor="status.405">
1970  <iref primary="true" item="405 Method Not Allowed (status code)" x:for-anchor=""/>
1971  <iref primary="true" item="Status Codes" subitem="405 Method Not Allowed" x:for-anchor=""/>
1972<t>
1973   The method specified in the Request-Line is not allowed for the target
1974   resource. The response &MUST; include an Allow header field containing a
1975   list of valid methods for the requested resource.
1976</t>
1977</section>
1978
1979<section title="406 Not Acceptable" anchor="status.406">
1980  <iref primary="true" item="406 Not Acceptable (status code)" x:for-anchor=""/>
1981  <iref primary="true" item="Status Codes" subitem="406 Not Acceptable" x:for-anchor=""/>
1982<t>
1983   The resource identified by the request is only capable of generating
1984   response representations which have content characteristics not acceptable
1985   according to the Accept and Accept-* header fields sent in the request
1986   (see &p3-header-fields;).
1987</t>
1988<t>
1989   Unless it was a HEAD request, the response &SHOULD; include a representation
1990   containing a list of available representation characteristics and location(s)
1991   from which the user or user agent can choose the one most
1992   appropriate. Depending upon the format and the
1993   capabilities of the user agent, selection of the most appropriate
1994   choice &MAY; be performed automatically. However, this specification
1995   does not define any standard for such automatic selection.
1996</t>
1997<x:note>
1998  <t>
1999    <x:h>Note:</x:h> HTTP/1.1 servers are allowed to return responses which are
2000    not acceptable according to the accept header fields sent in the
2001    request. In some cases, this might even be preferable to sending a
2002    406 response. User agents are encouraged to inspect the header fields of
2003    an incoming response to determine if it is acceptable.
2004  </t>
2005</x:note>
2006<t>
2007   If the response could be unacceptable, a user agent &SHOULD;
2008   temporarily stop receipt of more data and query the user for a
2009   decision on further actions.
2010</t>
2011</section>
2012
2013<section title="408 Request Timeout" anchor="status.408">
2014  <iref primary="true" item="408 Request Timeout (status code)" x:for-anchor=""/>
2015  <iref primary="true" item="Status Codes" subitem="408 Request Timeout" x:for-anchor=""/>
2016<t>
2017   The client did not produce a request within the time that the server
2018   was prepared to wait. The client &MAY; repeat the request without
2019   modifications at any later time.
2020</t>
2021</section>
2022
2023<section title="409 Conflict" anchor="status.409">
2024  <iref primary="true" item="409 Conflict (status code)" x:for-anchor=""/>
2025  <iref primary="true" item="Status Codes" subitem="409 Conflict" x:for-anchor=""/>
2026<t>
2027   The request could not be completed due to a conflict with the current
2028   state of the resource. This code is only allowed in situations where
2029   it is expected that the user might be able to resolve the conflict
2030   and resubmit the request. The response body &SHOULD; include enough
2031   information for the user to recognize the source of the conflict.
2032   Ideally, the response representation would include enough information for the
2033   user or user agent to fix the problem; however, that might not be
2034   possible and is not required.
2035</t>
2036<t>
2037   Conflicts are most likely to occur in response to a PUT request. For
2038   example, if versioning were being used and the representation being PUT
2039   included changes to a resource which conflict with those made by an
2040   earlier (third-party) request, the server might use the 409 response
2041   to indicate that it can't complete the request. In this case, the
2042   response representation would likely contain a list of the differences
2043   between the two versions.
2044</t>
2045</section>
2046
2047<section title="410 Gone" anchor="status.410">
2048  <iref primary="true" item="410 Gone (status code)" x:for-anchor=""/>
2049  <iref primary="true" item="Status Codes" subitem="410 Gone" x:for-anchor=""/>
2050<t>
2051   The target resource is no longer available at the server and no
2052   forwarding address is known. This condition is expected to be
2053   considered permanent. Clients with link editing capabilities &SHOULD;
2054   delete references to the effective request URI after user approval. If the
2055   server does not know, or has no facility to determine, whether or not
2056   the condition is permanent, the status code 404 (Not Found) &SHOULD; be
2057   used instead.
2058</t>
2059<t>
2060   The 410 response is primarily intended to assist the task of web
2061   maintenance by notifying the recipient that the resource is
2062   intentionally unavailable and that the server owners desire that
2063   remote links to that resource be removed. Such an event is common for
2064   limited-time, promotional services and for resources belonging to
2065   individuals no longer working at the server's site. It is not
2066   necessary to mark all permanently unavailable resources as "gone" or
2067   to keep the mark for any length of time &mdash; that is left to the
2068   discretion of the server owner.
2069</t>
2070<t>
2071   Caches &MAY; use a heuristic (see &p6-heuristic;) to determine freshness
2072   for 410 responses.
2073</t>
2074</section>
2075
2076<section title="411 Length Required" anchor="status.411">
2077  <iref primary="true" item="411 Length Required (status code)" x:for-anchor=""/>
2078  <iref primary="true" item="Status Codes" subitem="411 Length Required" x:for-anchor=""/>
2079<t>
2080   The server refuses to accept the request without a defined Content-Length.
2081   The client &MAY; repeat the request if it adds a valid
2082   Content-Length header field containing the length of the message-body
2083   in the request message.
2084</t>
2085</section>
2086
2087<section title="413 Request Representation Too Large" anchor="status.413">
2088  <iref primary="true" item="413 Request Representation Too Large (status code)" x:for-anchor=""/>
2089  <iref primary="true" item="Status Codes" subitem="413 Request Representation Too Large" x:for-anchor=""/>
2090<t>
2091   The server is refusing to process a request because the request
2092   representation is larger than the server is willing or able to process. The
2093   server &MAY; close the connection to prevent the client from continuing
2094   the request.
2095</t>
2096<t>
2097   If the condition is temporary, the server &SHOULD; include a Retry-After
2098   header field to indicate that it is temporary and after what
2099   time the client &MAY; try again.
2100</t>
2101</section>
2102
2103<section title="414 URI Too Long" anchor="status.414">
2104  <iref primary="true" item="414 URI Too Long (status code)" x:for-anchor=""/>
2105  <iref primary="true" item="Status Codes" subitem="414 URI Too Long" x:for-anchor=""/>
2106<t>
2107   The server is refusing to service the request because the effective request URI
2108   is longer than the server is willing to interpret. This rare
2109   condition is only likely to occur when a client has improperly
2110   converted a POST request to a GET request with long query
2111   information, when the client has descended into a URI "black hole" of
2112   redirection (e.g., a redirected URI prefix that points to a suffix of
2113   itself), or when the server is under attack by a client attempting to
2114   exploit security holes present in some servers using fixed-length
2115   buffers for reading or manipulating the effective request URI.
2116</t>
2117</section>
2118
2119<section title="415 Unsupported Media Type" anchor="status.415">
2120  <iref primary="true" item="415 Unsupported Media Type (status code)" x:for-anchor=""/>
2121  <iref primary="true" item="Status Codes" subitem="415 Unsupported Media Type" x:for-anchor=""/>
2122<t>
2123   The server is refusing to service the request because the request
2124   payload is in a format not supported by this request method on the
2125   target resource.
2126</t>
2127</section>
2128
2129<section title="417 Expectation Failed" anchor="status.417">
2130  <iref primary="true" item="417 Expectation Failed (status code)" x:for-anchor=""/>
2131  <iref primary="true" item="Status Codes" subitem="417 Expectation Failed" x:for-anchor=""/>
2132<t>
2133   The expectation given in an Expect header field (see <xref target="header.expect"/>)
2134   could not be met by this server, or, if the server is a proxy,
2135   the server has unambiguous evidence that the request could not be met
2136   by the next-hop server.
2137</t>
2138</section>
2139
2140<section title="426 Upgrade Required" anchor="status.426">
2141  <iref primary="true" item="426 Upgrade Required (status code)" x:for-anchor=""/>
2142  <iref primary="true" item="Status Codes" subitem="426 Upgrade Required" x:for-anchor=""/>
2143<t>
2144   The request can not be completed without a prior protocol upgrade. This
2145   response &MUST; include an Upgrade header field (&header-upgrade;)
2146   specifying the required protocols.
2147</t>
2148<figure>
2149<preamble>Example:</preamble>
2150<artwork type="message/http; msgtype=&#34;response&#34;" x:indent-with="  ">
2151HTTP/1.1 426 Upgrade Required
2152Upgrade: HTTP/3.0
2153Connection: Upgrade
2154Content-Length: <x:length-of target="s426body"/>
2155Content-Type: text/plain
2156
2157<x:span anchor="s426body">This service requires use of the HTTP/3.0 protocol.
2158</x:span></artwork></figure>
2159<t>
2160   The server &SHOULD; include a message body in the 426 response which
2161   indicates in human readable form the reason for the error and describes any
2162   alternative courses which may be available to the user.
2163</t>
2164</section>
2165</section>
2166
2167<section title="Server Error 5xx" anchor="status.5xx">
2168<t>
2169   Response status codes beginning with the digit "5" indicate cases in
2170   which the server is aware that it has erred or is incapable of
2171   performing the request. Except when responding to a HEAD request, the
2172   server &SHOULD; include a representation containing an explanation of the
2173   error situation, and whether it is a temporary or permanent
2174   condition. User agents &SHOULD; display any included representation to the
2175   user. These response codes are applicable to any request method.
2176</t>
2177
2178<section title="500 Internal Server Error" anchor="status.500">
2179  <iref primary="true" item="500 Internal Server Error (status code)" x:for-anchor=""/>
2180  <iref primary="true" item="Status Codes" subitem="500 Internal Server Error" x:for-anchor=""/>
2181<t>
2182   The server encountered an unexpected condition which prevented it
2183   from fulfilling the request.
2184</t>
2185</section>
2186
2187<section title="501 Not Implemented" anchor="status.501">
2188  <iref primary="true" item="501 Not Implemented (status code)" x:for-anchor=""/>
2189  <iref primary="true" item="Status Codes" subitem="501 Not Implemented" x:for-anchor=""/>
2190<t>
2191   The server does not support the functionality required to fulfill the
2192   request. This is the appropriate response when the server does not
2193   recognize the request method and is not capable of supporting it for
2194   any resource.
2195</t>
2196</section>
2197
2198<section title="502 Bad Gateway" anchor="status.502">
2199  <iref primary="true" item="502 Bad Gateway (status code)" x:for-anchor=""/>
2200  <iref primary="true" item="Status Codes" subitem="502 Bad Gateway" x:for-anchor=""/>
2201<t>
2202   The server, while acting as a gateway or proxy, received an invalid
2203   response from the upstream server it accessed in attempting to
2204   fulfill the request.
2205</t>
2206</section>
2207
2208<section title="503 Service Unavailable" anchor="status.503">
2209  <iref primary="true" item="503 Service Unavailable (status code)" x:for-anchor=""/>
2210  <iref primary="true" item="Status Codes" subitem="503 Service Unavailable" x:for-anchor=""/>
2211<t>
2212   The server is currently unable to handle the request due to a
2213   temporary overloading or maintenance of the server.
2214</t>
2215<t>
2216   The implication is that this is a temporary condition which will be
2217   alleviated after some delay. If known, the length of the delay &MAY; be
2218   indicated in a Retry-After header field (<xref target="header.retry-after"/>).
2219   If no Retry-After is given, the client &SHOULD; handle the response as it
2220   would for a 500 response.
2221</t>
2222<x:note>
2223  <t>
2224    <x:h>Note:</x:h> The existence of the 503 status code does not imply that a
2225    server must use it when becoming overloaded. Some servers might wish
2226    to simply refuse the connection.
2227  </t>
2228</x:note>
2229</section>
2230
2231<section title="504 Gateway Timeout" anchor="status.504">
2232  <iref primary="true" item="504 Gateway Timeout (status code)" x:for-anchor=""/>
2233  <iref primary="true" item="Status Codes" subitem="504 Gateway Timeout" x:for-anchor=""/>
2234<t>
2235   The server, while acting as a gateway or proxy, did not receive a
2236   timely response from the upstream server specified by the URI (e.g.,
2237   HTTP, FTP, LDAP) or some other auxiliary server (e.g., DNS) it needed
2238   to access in attempting to complete the request.
2239</t>
2240<x:note>
2241  <t>
2242    <x:h>Note</x:h> to implementors: some deployed proxies are known to
2243    return 400 or 500 when DNS lookups time out.
2244  </t>
2245</x:note>
2246</section>
2247
2248<section title="505 HTTP Version Not Supported" anchor="status.505">
2249  <iref primary="true" item="505 HTTP Version Not Supported (status code)" x:for-anchor=""/>
2250  <iref primary="true" item="Status Codes" subitem="505 HTTP Version Not Supported" x:for-anchor=""/>
2251<t>
2252   The server does not support, or refuses to support, the protocol
2253   version that was used in the request message. The server is
2254   indicating that it is unable or unwilling to complete the request
2255   using the same major version as the client, as described in &http-version;,
2256   other than with this error message. The response &SHOULD; contain
2257   a representation describing why that version is not supported and what other
2258   protocols are supported by that server.
2259</t>
2260
2261</section>
2262</section>
2263</section>
2264
2265
2266<section title="Date/Time Formats" anchor="http.date">
2267  <x:anchor-alias value="HTTP-date"/>
2268<t>
2269   HTTP applications have historically allowed three different formats
2270   for date/time stamps. However, the preferred format is a fixed-length subset
2271   of that defined by <xref target="RFC1123"/>:
2272</t>
2273<figure><artwork type="example" x:indent-with="  ">
2274Sun, 06 Nov 1994 08:49:37 GMT  ; RFC 1123
2275</artwork></figure>
2276<t>
2277   The other formats are described here only for compatibility with obsolete
2278   implementations.
2279</t>
2280<figure><artwork type="example" x:indent-with="  ">
2281Sunday, 06-Nov-94 08:49:37 GMT ; obsolete RFC 850 format
2282Sun Nov  6 08:49:37 1994       ; ANSI C's asctime() format
2283</artwork></figure>
2284<t>
2285   HTTP/1.1 clients and servers that parse a date value &MUST; accept
2286   all three formats (for compatibility with HTTP/1.0), though they &MUST;
2287   only generate the RFC 1123 format for representing HTTP-date values
2288   in header fields.
2289</t>
2290<t>
2291   All HTTP date/time stamps &MUST; be represented in Greenwich Mean Time
2292   (GMT), without exception. For the purposes of HTTP, GMT is exactly
2293   equal to UTC (Coordinated Universal Time). This is indicated in the
2294   first two formats by the inclusion of "GMT" as the three-letter
2295   abbreviation for time zone, and &MUST; be assumed when reading the
2296   asctime format. HTTP-date is case sensitive and &MUST-NOT; include
2297   additional whitespace beyond that specifically included as SP in the
2298   grammar.
2299</t>
2300<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="HTTP-date"/>
2301  <x:ref>HTTP-date</x:ref>    = <x:ref>rfc1123-date</x:ref> / <x:ref>obs-date</x:ref>
2302</artwork></figure>
2303<t anchor="preferred.date.format">
2304  <x:anchor-alias value="rfc1123-date"/>
2305  <x:anchor-alias value="time-of-day"/>
2306  <x:anchor-alias value="hour"/>
2307  <x:anchor-alias value="minute"/>
2308  <x:anchor-alias value="second"/>
2309  <x:anchor-alias value="day-name"/>
2310  <x:anchor-alias value="day"/>
2311  <x:anchor-alias value="month"/>
2312  <x:anchor-alias value="year"/>
2313  <x:anchor-alias value="GMT"/>
2314  Preferred format:
2315</t>
2316<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="rfc1123-date"/><iref primary="true" item="Grammar" subitem="date1"/><iref primary="true" item="Grammar" subitem="time-of-day"/><iref primary="true" item="Grammar" subitem="hour"/><iref primary="true" item="Grammar" subitem="minute"/><iref primary="true" item="Grammar" subitem="second"/><iref primary="true" item="Grammar" subitem="day-name"/><iref primary="true" item="Grammar" subitem="day-name-l"/><iref primary="true" item="Grammar" subitem="day"/><iref primary="true" item="Grammar" subitem="month"/><iref primary="true" item="Grammar" subitem="year"/><iref primary="true" item="Grammar" subitem="GMT"/>
2317  <x:ref>rfc1123-date</x:ref> = <x:ref>day-name</x:ref> "," <x:ref>SP</x:ref> date1 <x:ref>SP</x:ref> <x:ref>time-of-day</x:ref> <x:ref>SP</x:ref> <x:ref>GMT</x:ref>
2318  ; fixed length subset of the format defined in
2319  ; <xref target="RFC1123" x:fmt="of" x:sec="5.2.14"/>
2320 
2321  <x:ref>day-name</x:ref>     = <x:abnf-char-sequence>"Mon"</x:abnf-char-sequence> ; "Mon", case-sensitive
2322               / <x:abnf-char-sequence>"Tue"</x:abnf-char-sequence> ; "Tue", case-sensitive
2323               / <x:abnf-char-sequence>"Wed"</x:abnf-char-sequence> ; "Wed", case-sensitive
2324               / <x:abnf-char-sequence>"Thu"</x:abnf-char-sequence> ; "Thu", case-sensitive
2325               / <x:abnf-char-sequence>"Fri"</x:abnf-char-sequence> ; "Fri", case-sensitive
2326               / <x:abnf-char-sequence>"Sat"</x:abnf-char-sequence> ; "Sat", case-sensitive
2327               / <x:abnf-char-sequence>"Sun"</x:abnf-char-sequence> ; "Sun", case-sensitive
2328               
2329  <x:ref>date1</x:ref>        = <x:ref>day</x:ref> <x:ref>SP</x:ref> <x:ref>month</x:ref> <x:ref>SP</x:ref> <x:ref>year</x:ref>
2330               ; e.g., 02 Jun 1982
2331
2332  <x:ref>day</x:ref>          = 2<x:ref>DIGIT</x:ref>
2333  <x:ref>month</x:ref>        = <x:abnf-char-sequence>"Jan"</x:abnf-char-sequence> ; "Jan", case-sensitive
2334               / <x:abnf-char-sequence>"Feb"</x:abnf-char-sequence> ; "Feb", case-sensitive
2335               / <x:abnf-char-sequence>"Mar"</x:abnf-char-sequence> ; "Mar", case-sensitive
2336               / <x:abnf-char-sequence>"Apr"</x:abnf-char-sequence> ; "Apr", case-sensitive
2337               / <x:abnf-char-sequence>"May"</x:abnf-char-sequence> ; "May", case-sensitive
2338               / <x:abnf-char-sequence>"Jun"</x:abnf-char-sequence> ; "Jun", case-sensitive
2339               / <x:abnf-char-sequence>"Jul"</x:abnf-char-sequence> ; "Jul", case-sensitive
2340               / <x:abnf-char-sequence>"Aug"</x:abnf-char-sequence> ; "Aug", case-sensitive
2341               / <x:abnf-char-sequence>"Sep"</x:abnf-char-sequence> ; "Sep", case-sensitive
2342               / <x:abnf-char-sequence>"Oct"</x:abnf-char-sequence> ; "Oct", case-sensitive
2343               / <x:abnf-char-sequence>"Nov"</x:abnf-char-sequence> ; "Nov", case-sensitive
2344               / <x:abnf-char-sequence>"Dec"</x:abnf-char-sequence> ; "Dec", case-sensitive
2345  <x:ref>year</x:ref>         = 4<x:ref>DIGIT</x:ref>
2346
2347  <x:ref>GMT</x:ref>   = <x:abnf-char-sequence>"GMT"</x:abnf-char-sequence> ; "GMT", case-sensitive
2348
2349  <x:ref>time-of-day</x:ref>  = <x:ref>hour</x:ref> ":" <x:ref>minute</x:ref> ":" <x:ref>second</x:ref>
2350                 ; 00:00:00 - 23:59:59
2351                 
2352  <x:ref>hour</x:ref>         = 2<x:ref>DIGIT</x:ref>               
2353  <x:ref>minute</x:ref>       = 2<x:ref>DIGIT</x:ref>               
2354  <x:ref>second</x:ref>       = 2<x:ref>DIGIT</x:ref>               
2355</artwork></figure>
2356<t>
2357  The semantics of <x:ref>day-name</x:ref>, <x:ref>day</x:ref>,
2358  <x:ref>month</x:ref>, <x:ref>year</x:ref>, and <x:ref>time-of-day</x:ref> are the
2359  same as those defined for the RFC 5322 constructs
2360  with the corresponding name (<xref target="RFC5322" x:fmt="," x:sec="3.3"/>).
2361</t>
2362<t anchor="obsolete.date.formats">
2363  <x:anchor-alias value="obs-date"/>
2364  <x:anchor-alias value="rfc850-date"/>
2365  <x:anchor-alias value="asctime-date"/>
2366  <x:anchor-alias value="date1"/>
2367  <x:anchor-alias value="date2"/>
2368  <x:anchor-alias value="date3"/>
2369  <x:anchor-alias value="rfc1123-date"/>
2370  <x:anchor-alias value="day-name-l"/>
2371  Obsolete formats:
2372</t>
2373<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="obs-date"/>
2374  <x:ref>obs-date</x:ref>     = <x:ref>rfc850-date</x:ref> / <x:ref>asctime-date</x:ref> 
2375</artwork></figure>
2376<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="rfc850-date"/>
2377  <x:ref>rfc850-date</x:ref>  = <x:ref>day-name-l</x:ref> "," <x:ref>SP</x:ref> <x:ref>date2</x:ref> <x:ref>SP</x:ref> <x:ref>time-of-day</x:ref> <x:ref>SP</x:ref> <x:ref>GMT</x:ref>
2378  <x:ref>date2</x:ref>        = <x:ref>day</x:ref> "-" <x:ref>month</x:ref> "-" 2<x:ref>DIGIT</x:ref>
2379                 ; day-month-year (e.g., 02-Jun-82)
2380
2381  <x:ref>day-name-l</x:ref>   = <x:abnf-char-sequence>"Monday"</x:abnf-char-sequence> ; "Monday", case-sensitive
2382         / <x:abnf-char-sequence>"Tuesday"</x:abnf-char-sequence> ; "Tuesday", case-sensitive
2383         / <x:abnf-char-sequence>"Wednesday"</x:abnf-char-sequence> ; "Wednesday", case-sensitive
2384         / <x:abnf-char-sequence>"Thursday"</x:abnf-char-sequence> ; "Thursday", case-sensitive
2385         / <x:abnf-char-sequence>"Friday"</x:abnf-char-sequence> ; "Friday", case-sensitive
2386         / <x:abnf-char-sequence>"Saturday"</x:abnf-char-sequence> ; "Saturday", case-sensitive
2387         / <x:abnf-char-sequence>"Sunday"</x:abnf-char-sequence> ; "Sunday", case-sensitive
2388</artwork></figure>
2389<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="asctime-date"/>
2390  <x:ref>asctime-date</x:ref> = <x:ref>day-name</x:ref> <x:ref>SP</x:ref> <x:ref>date3</x:ref> <x:ref>SP</x:ref> <x:ref>time-of-day</x:ref> <x:ref>SP</x:ref> <x:ref>year</x:ref>
2391  <x:ref>date3</x:ref>        = <x:ref>month</x:ref> <x:ref>SP</x:ref> ( 2<x:ref>DIGIT</x:ref> / ( <x:ref>SP</x:ref> 1<x:ref>DIGIT</x:ref> ))
2392                 ; month day (e.g., Jun  2)
2393</artwork></figure>
2394<x:note>
2395  <t>
2396    <x:h>Note:</x:h> Recipients of date values are encouraged to be robust in
2397    accepting date values that might have been sent by non-HTTP
2398    applications, as is sometimes the case when retrieving or posting
2399    messages via proxies/gateways to SMTP or NNTP.
2400  </t>
2401</x:note>
2402<x:note>
2403  <t>
2404    <x:h>Note:</x:h> HTTP requirements for the date/time stamp format apply only
2405    to their usage within the protocol stream. Clients and servers are
2406    not required to use these formats for user presentation, request
2407    logging, etc.
2408  </t>
2409</x:note>
2410</section>
2411
2412
2413<section title="Header Field Definitions" anchor="header.field.definitions">
2414<t>
2415   This section defines the syntax and semantics of HTTP/1.1 header fields
2416   related to request and response semantics.
2417</t>
2418
2419<section title="Allow" anchor="header.allow">
2420  <iref primary="true" item="Allow header field" x:for-anchor=""/>
2421  <iref primary="true" item="Header Fields" subitem="Allow" x:for-anchor=""/>
2422  <x:anchor-alias value="Allow"/>
2423<t>
2424   The "Allow" header field lists the set of methods advertised as
2425   supported by the target resource. The purpose of this field is strictly to
2426   inform the recipient of valid request methods associated with the resource.
2427</t>
2428<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Allow"/>
2429  <x:ref>Allow</x:ref> = #<x:ref>Method</x:ref>
2430</artwork></figure>
2431<t>
2432   Example of use:
2433</t>
2434<figure><artwork type="example">
2435  Allow: GET, HEAD, PUT
2436</artwork></figure>
2437<t>
2438   The actual set of allowed methods is defined by the origin server at the
2439   time of each request.
2440</t>
2441<t>
2442   A proxy &MUST-NOT; modify the Allow header field &mdash; it does not need to
2443   understand all the methods specified in order to handle them according to
2444   the generic message handling rules.
2445</t>
2446</section>
2447
2448<section title="Date" anchor="header.date">
2449  <iref primary="true" item="Date header field" x:for-anchor=""/>
2450  <iref primary="true" item="Header Fields" subitem="Date" x:for-anchor=""/>
2451  <x:anchor-alias value="Date"/>
2452<t>
2453   The "Date" header field represents the date and time at which
2454   the message was originated, having the same semantics as the Origination
2455   Date Field (orig-date) defined in <xref target="RFC5322" x:fmt="of" x:sec="3.6.1"/>.
2456   The field value is an HTTP-date, as defined in <xref target="http.date"/>;
2457   it &MUST; be sent in rfc1123-date format.
2458</t>
2459<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Date"/>
2460  <x:ref>Date</x:ref> = <x:ref>HTTP-date</x:ref>
2461</artwork></figure>
2462<t>
2463   An example is
2464</t>
2465<figure><artwork type="example">
2466  Date: Tue, 15 Nov 1994 08:12:31 GMT
2467</artwork></figure>
2468<t>
2469   Origin servers &MUST; include a Date header field in all responses,
2470   except in these cases:
2471  <list style="numbers">
2472      <t>If the response status code is 100 (Continue) or 101 (Switching
2473         Protocols), the response &MAY; include a Date header field, at
2474         the server's option.</t>
2475
2476      <t>If the response status code conveys a server error, e.g., 500
2477         (Internal Server Error) or 503 (Service Unavailable), and it is
2478         inconvenient or impossible to generate a valid Date.</t>
2479
2480      <t>If the server does not have a clock that can provide a
2481         reasonable approximation of the current time, its responses
2482         &MUST-NOT; include a Date header field.</t>
2483  </list>
2484</t>
2485<t>
2486   A received message that does not have a Date header field &MUST; be
2487   assigned one by the recipient if the message will be cached by that
2488   recipient.
2489</t>
2490<t>
2491   Clients can use the Date header field as well; in order to keep request
2492   messages small, they are advised not to include it when it doesn't convey
2493   any useful information (as is usually the case for requests that do not
2494   contain a payload).
2495</t>
2496<t>
2497   The HTTP-date sent in a Date header field &SHOULD-NOT; represent a date and
2498   time subsequent to the generation of the message. It &SHOULD; represent
2499   the best available approximation of the date and time of message
2500   generation, unless the implementation has no means of generating a
2501   reasonably accurate date and time. In theory, the date ought to
2502   represent the moment just before the payload is generated. In
2503   practice, the date can be generated at any time during the message
2504   origination without affecting its semantic value.
2505</t>
2506</section>
2507
2508<section title="Expect" anchor="header.expect">
2509  <iref primary="true" item="Expect header field" x:for-anchor=""/>
2510  <iref primary="true" item="Header Fields" subitem="Expect" x:for-anchor=""/>
2511  <x:anchor-alias value="Expect"/>
2512  <x:anchor-alias value="expectation"/>
2513  <x:anchor-alias value="expect-param"/>
2514  <x:anchor-alias value="expect-name"/>
2515  <x:anchor-alias value="expect-value"/>
2516<t>
2517   The "Expect" header field is used to indicate that particular
2518   server behaviors are required by the client.
2519</t>
2520<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Expect"/><iref primary="true" item="Grammar" subitem="expectation"/><iref primary="true" item="Grammar" subitem="expect-param"/><iref primary="true" item="Grammar" subitem="expect-value"/><iref primary="true" item="Grammar" subitem="expect-name"/>
2521  <x:ref>Expect</x:ref>       = 1#<x:ref>expectation</x:ref>
2522 
2523  <x:ref>expectation</x:ref>  = <x:ref>expect-name</x:ref> [ <x:ref>BWS</x:ref> "=" <x:ref>BWS</x:ref> <x:ref>expect-value</x:ref> ]
2524                             *( <x:ref>OWS</x:ref> ";" [ <x:ref>OWS</x:ref> <x:ref>expect-param</x:ref> ] )
2525  <x:ref>expect-param</x:ref> = <x:ref>expect-name</x:ref> [ <x:ref>BWS</x:ref> "=" <x:ref>BWS</x:ref> <x:ref>expect-value</x:ref> ]
2526 
2527  <x:ref>expect-name</x:ref>  = <x:ref>token</x:ref>
2528  <x:ref>expect-value</x:ref> = <x:ref>token</x:ref> / <x:ref>quoted-string</x:ref>
2529</artwork></figure>
2530<t>
2531   If all received Expect header field(s) are syntactically valid but contain
2532   an expectation that the recipient does not understand or cannot comply with,
2533   the recipient &MUST; respond with a 417 (Expectation Failed) status code. A
2534   recipient of a syntactically invalid Expectation header field &MUST; respond
2535   with a 4xx status code other than 417.
2536</t>
2537<t>
2538   The only expectation defined by this specification is:
2539</t>
2540<t><iref primary="true" item="100-continue (expect value)"/><iref primary="true" item="Expect Values" subitem="100-continue"/>
2541  100-continue
2542   <list>
2543      <t>
2544        The "100-continue" expectation is defined &use100;. It does not support
2545        any expect-params.
2546      </t>
2547   </list>
2548</t>
2549<t>
2550   Comparison is case-insensitive for names (expect-name), and case-sensitive
2551   for values (expect-value).
2552</t>
2553<t>
2554   The Expect mechanism is hop-by-hop: the above requirements apply to any
2555   server, including proxies. However, the Expect header field itself is
2556   end-to-end; it &MUST; be forwarded if the request is forwarded.
2557</t>
2558<t>
2559   Many older HTTP/1.0 and HTTP/1.1 applications do not understand the Expect
2560   header field.
2561</t>
2562</section>
2563
2564<section title="From" anchor="header.from">
2565  <iref primary="true" item="From header field" x:for-anchor=""/>
2566  <iref primary="true" item="Header Fields" subitem="From" x:for-anchor=""/>
2567  <x:anchor-alias value="From"/>
2568  <x:anchor-alias value="mailbox"/>
2569<t>
2570   The "From" header field, if given, &SHOULD; contain an Internet
2571   e-mail address for the human user who controls the requesting user
2572   agent. The address &SHOULD; be machine-usable, as defined by "mailbox"
2573   in <xref x:sec="3.4" x:fmt="of" target="RFC5322"/>:
2574</t>
2575<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="From"/>
2576  <x:ref>From</x:ref>    = <x:ref>mailbox</x:ref>
2577 
2578  <x:ref>mailbox</x:ref> = &lt;mailbox, defined in <xref x:sec="3.4" x:fmt="," target="RFC5322"/>&gt;
2579</artwork></figure>
2580<t>
2581   An example is:
2582</t>
2583<figure><artwork type="example">
2584  From: webmaster@example.org
2585</artwork></figure>
2586<t>
2587   This header field &MAY; be used for logging purposes and as a means for
2588   identifying the source of invalid or unwanted requests. It &SHOULD-NOT; 
2589   be used as an insecure form of access protection. The interpretation
2590   of this field is that the request is being performed on behalf of the
2591   person given, who accepts responsibility for the method performed. In
2592   particular, robot agents &SHOULD; include this header field so that the
2593   person responsible for running the robot can be contacted if problems
2594   occur on the receiving end.
2595</t>
2596<t>
2597   The Internet e-mail address in this field &MAY; be separate from the
2598   Internet host which issued the request. For example, when a request
2599   is passed through a proxy the original issuer's address &SHOULD; be
2600   used.
2601</t>
2602<t>
2603   The client &SHOULD-NOT;  send the From header field without the user's
2604   approval, as it might conflict with the user's privacy interests or
2605   their site's security policy. It is strongly recommended that the
2606   user be able to disable, enable, and modify the value of this field
2607   at any time prior to a request.
2608</t>
2609</section>
2610
2611<section title="Location" anchor="header.location">
2612  <iref primary="true" item="Location header field" x:for-anchor=""/>
2613  <iref primary="true" item="Header Fields" subitem="Location" x:for-anchor=""/>
2614  <x:anchor-alias value="Location"/>
2615<t>
2616   The "Location" header field is used to identify a newly created
2617   resource, or to redirect the recipient to a different location for
2618   completion of the request.
2619</t>
2620<t>
2621   For 201 (Created) responses, the Location is the URI of the new resource
2622   which was created by the request. For 3xx responses, the location &SHOULD;
2623   indicate the server's preferred URI for automatic redirection to the
2624   resource.
2625</t>
2626<t>
2627   The field value consists of a single URI-reference. When it has the form
2628   of a relative reference (<xref target="RFC3986" x:fmt="," x:sec="4.2"/>),
2629   the final value is computed by resolving it against the effective request
2630   URI (<xref target="RFC3986" x:fmt="," x:sec="5"/>).
2631</t>
2632<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Location"/>
2633  <x:ref>Location</x:ref> = <x:ref>URI-reference</x:ref>
2634</artwork></figure>
2635<figure>
2636<preamble>Examples are:</preamble><!--DO NOT DARE changing the vertical spacing below, it's necessary this way for xml2rfc-->
2637<artwork type="example">
2638  Location: http://www.example.org/pub/WWW/People.html#tim
2639</artwork></figure><figure><artwork type="example">  Location: /index.html
2640</artwork></figure>
2641<x:note>
2642  <t>
2643    <x:h>Note:</x:h> Some recipients attempt to recover from Location fields
2644    that are not valid URI references. This specification does not mandate or
2645    define such processing, but does allow it (see <xref target="intro.conformance.and.error.handling"/>).
2646  </t>
2647</x:note>
2648<t>
2649   There are circumstances in which a fragment identifier in a Location URI
2650   would not be appropriate. For instance, when it appears in a 201 Created
2651   response, where the Location header field specifies the URI for the entire
2652   created resource.
2653</t>
2654<x:note>
2655  <t>
2656    <x:h>Note:</x:h> This specification does not define precedence rules
2657    for the case where the original URI, as navigated to by the user
2658    agent, and the Location header field value both contain fragment
2659    identifiers. Thus be aware that including fragment identifiers might
2660    inconvenience anyone relying on the semantics of the original URI's
2661    fragment identifier.
2662  </t>
2663</x:note>
2664<x:note>
2665  <t>
2666    <x:h>Note:</x:h> The Content-Location header field (&header-content-location;) differs
2667    from Location in that the Content-Location identifies the most specific
2668    resource corresponding to the enclosed representation.
2669    It is therefore possible for a response to contain header fields for
2670    both Location and Content-Location.
2671  </t>
2672</x:note>
2673</section>
2674
2675<section title="Max-Forwards" anchor="header.max-forwards">
2676  <iref primary="true" item="Max-Forwards header field" x:for-anchor=""/>
2677  <iref primary="true" item="Header Fields" subitem="Max-Forwards" x:for-anchor=""/>
2678  <x:anchor-alias value="Max-Forwards"/>
2679<t>
2680   The "Max-Forwards" header field provides a mechanism with the
2681   TRACE (<xref target="TRACE"/>) and OPTIONS (<xref target="OPTIONS"/>)
2682   methods to limit the number of times that the request is forwarded by
2683   proxies. This can be useful when the client is attempting to
2684   trace a request which appears to be failing or looping mid-chain.
2685</t>
2686<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Max-Forwards"/>
2687  <x:ref>Max-Forwards</x:ref> = 1*<x:ref>DIGIT</x:ref>
2688</artwork></figure>
2689<t>
2690   The Max-Forwards value is a decimal integer indicating the remaining
2691   number of times this request message can be forwarded.
2692</t>
2693<t>
2694   Each recipient of a TRACE or OPTIONS request
2695   containing a Max-Forwards header field &MUST; check and update its
2696   value prior to forwarding the request. If the received value is zero
2697   (0), the recipient &MUST-NOT; forward the request; instead, it &MUST;
2698   respond as the final recipient. If the received Max-Forwards value is
2699   greater than zero, then the forwarded message &MUST; contain an updated
2700   Max-Forwards field with a value decremented by one (1).
2701</t>
2702<t>
2703   The Max-Forwards header field &MAY; be ignored for all other request
2704   methods.
2705</t>
2706</section>
2707
2708<section title="Referer" anchor="header.referer">
2709  <iref primary="true" item="Referer header field" x:for-anchor=""/>
2710  <iref primary="true" item="Header Fields" subitem="Referer" x:for-anchor=""/>
2711  <x:anchor-alias value="Referer"/>
2712<t>
2713   The "Referer" [sic] header field allows the client to specify the
2714   URI of the resource from which the effective request URI was obtained (the
2715   "referrer", although the header field is misspelled.).
2716</t>
2717<t>
2718   The Referer header field allows servers to generate lists of back-links to
2719   resources for interest, logging, optimized caching, etc. It also allows
2720   obsolete or mistyped links to be traced for maintenance. Some servers use
2721   Referer as a means of controlling where they allow links from (so-called
2722   "deep linking"), but legitimate requests do not always
2723   contain a Referer header field.
2724</t>
2725<t>
2726   If the effective request URI was obtained from a source that does not have its own
2727   URI (e.g., input from the user keyboard), the Referer field &MUST; either be
2728   sent with the value "about:blank", or not be sent at all. Note that this
2729   requirement does not apply to sources with non-HTTP URIs (e.g., FTP).
2730</t>
2731<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Referer"/>
2732  <x:ref>Referer</x:ref> = <x:ref>absolute-URI</x:ref> / <x:ref>partial-URI</x:ref>
2733</artwork></figure>
2734<t>
2735   Example:
2736</t>
2737<figure><artwork type="example">
2738  Referer: http://www.example.org/hypertext/Overview.html
2739</artwork></figure>
2740<t>
2741   If the field value is a relative URI, it &SHOULD; be interpreted
2742   relative to the effective request URI. The URI &MUST-NOT; include a fragment. See
2743   <xref target="encoding.sensitive.information.in.uris"/> for security considerations.
2744</t>
2745</section>
2746
2747<section title="Retry-After" anchor="header.retry-after">
2748  <iref primary="true" item="Retry-After header field" x:for-anchor=""/>
2749  <iref primary="true" item="Header Fields" subitem="Retry-After" x:for-anchor=""/>
2750  <x:anchor-alias value="Retry-After"/>
2751<t>
2752   The header "Retry-After" field can be used with a 503 (Service
2753   Unavailable) response to indicate how long the service is expected to
2754   be unavailable to the requesting client. This field &MAY; also be used
2755   with any 3xx (Redirection) response to indicate the minimum time the
2756   user-agent is asked to wait before issuing the redirected request.
2757</t>
2758<t>
2759   The value of this field can be either an HTTP-date or an integer number
2760   of seconds (in decimal) after the time of the response.
2761</t>
2762<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Retry-After"/>
2763  <x:ref>Retry-After</x:ref> = <x:ref>HTTP-date</x:ref> / <x:ref>delta-seconds</x:ref>
2764</artwork></figure>
2765<t anchor="rule.delta-seconds">
2766  <x:anchor-alias value="delta-seconds"/>
2767   Time spans are non-negative decimal integers, representing time in
2768   seconds.
2769</t>
2770<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="delta-seconds"/>
2771  <x:ref>delta-seconds</x:ref>  = 1*<x:ref>DIGIT</x:ref>
2772</artwork></figure>
2773<t>
2774   Two examples of its use are
2775</t>
2776<figure><artwork type="example">
2777  Retry-After: Fri, 31 Dec 1999 23:59:59 GMT
2778  Retry-After: 120
2779</artwork></figure>
2780<t>
2781   In the latter example, the delay is 2 minutes.
2782</t>
2783</section>
2784
2785<section title="Server" anchor="header.server">
2786  <iref primary="true" item="Server header field" x:for-anchor=""/>
2787  <iref primary="true" item="Header Fields" subitem="Server" x:for-anchor=""/>
2788  <x:anchor-alias value="Server"/>
2789<t>
2790   The "Server" header field contains information about the
2791   software used by the origin server to handle the request.
2792</t>
2793<t>
2794   The field can contain multiple product tokens (&product-tokens;) and
2795   comments (&header-fields;) identifying the server and any significant
2796   subproducts. The product tokens are listed in order of their significance
2797   for identifying the application.
2798</t>
2799<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Server"/>
2800  <x:ref>Server</x:ref> = <x:ref>product</x:ref> *( <x:ref>RWS</x:ref> ( <x:ref>product</x:ref> / <x:ref>comment</x:ref> ) )
2801</artwork></figure>
2802<t>
2803   Example:
2804</t>
2805<figure><artwork type="example">
2806  Server: CERN/3.0 libwww/2.17
2807</artwork></figure>
2808<t>
2809   If the response is being forwarded through a proxy, the proxy
2810   application &MUST-NOT; modify the Server header field. Instead, it
2811   &MUST; include a Via field (as described in &header-via;).
2812</t>
2813<x:note>
2814  <t>
2815    <x:h>Note:</x:h> Revealing the specific software version of the server might
2816    allow the server machine to become more vulnerable to attacks
2817    against software that is known to contain security holes. Server
2818    implementors are encouraged to make this field a configurable
2819    option.
2820  </t>
2821</x:note>
2822</section>
2823
2824<section title="User-Agent" anchor="header.user-agent">
2825  <iref primary="true" item="User-Agent header field" x:for-anchor=""/>
2826  <iref primary="true" item="Header Fields" subitem="User-Agent" x:for-anchor=""/>
2827  <x:anchor-alias value="User-Agent"/>
2828<t>
2829   The "User-Agent" header field contains information about the user
2830   agent originating the request. User agents &SHOULD; include this field with
2831   requests.
2832</t>
2833<t>
2834   Typically, it is used for statistical purposes, the tracing of protocol
2835   violations, and tailoring responses to avoid particular user agent
2836   limitations.
2837</t>
2838<t>
2839   The field can contain multiple product tokens (&product-tokens;)
2840   and comments (&header-fields;) identifying the agent and its
2841   significant subproducts. By convention, the product tokens are listed in
2842   order of their significance for identifying the application.
2843</t>
2844<t>
2845   Because this field is usually sent on every request a user agent makes,
2846   implementations are encouraged not to include needlessly fine-grained
2847   detail, and to limit (or even prohibit) the addition of subproducts by third
2848   parties. Overly long and detailed User-Agent field values make requests
2849   larger and can also be used to identify ("fingerprint") the user against
2850   their wishes.
2851</t>
2852<t>
2853   Likewise, implementations are encouraged not to use the product tokens of
2854   other implementations in order to declare compatibility with them, as this
2855   circumvents the purpose of the field. Finally, they are encouraged not to
2856   use comments to identify products; doing so makes the field value more
2857   difficult to parse.
2858</t>
2859<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="User-Agent"/>
2860  <x:ref>User-Agent</x:ref> = <x:ref>product</x:ref> *( <x:ref>RWS</x:ref> ( <x:ref>product</x:ref> / <x:ref>comment</x:ref> ) )
2861</artwork></figure>
2862<t>
2863   Example:
2864</t>
2865<figure><artwork type="example">
2866  User-Agent: CERN-LineMode/2.15 libwww/2.17b3
2867</artwork></figure>
2868</section>
2869
2870</section>
2871
2872<section title="IANA Considerations" anchor="IANA.considerations">
2873
2874<section title="Method Registry" anchor="method.registration">
2875<t>
2876  The registration procedure for HTTP request methods is defined by
2877  <xref target="method.registry"/> of this document.
2878</t>
2879<t>
2880   The HTTP Method Registry shall be created at <eref target="http://www.iana.org/assignments/http-methods"/>
2881   and be populated with the registrations below:
2882</t>
2883<?BEGININC p2-semantics.iana-methods ?>
2884<!--AUTOGENERATED FROM extract-method-defs.xslt, do not edit manually-->
2885<texttable align="left" suppress-title="true" anchor="iana.method.registration.table">
2886   <ttcol>Method</ttcol>
2887   <ttcol>Safe</ttcol>
2888   <ttcol>Reference</ttcol>
2889   <c>CONNECT</c>
2890   <c>no</c>
2891   <c>
2892      <xref target="CONNECT"/>
2893   </c>
2894   <c>DELETE</c>
2895   <c>no</c>
2896   <c>
2897      <xref target="DELETE"/>
2898   </c>
2899   <c>GET</c>
2900   <c>yes</c>
2901   <c>
2902      <xref target="GET"/>
2903   </c>
2904   <c>HEAD</c>
2905   <c>yes</c>
2906   <c>
2907      <xref target="HEAD"/>
2908   </c>
2909   <c>OPTIONS</c>
2910   <c>yes</c>
2911   <c>
2912      <xref target="OPTIONS"/>
2913   </c>
2914   <c>POST</c>
2915   <c>no</c>
2916   <c>
2917      <xref target="POST"/>
2918   </c>
2919   <c>PUT</c>
2920   <c>no</c>
2921   <c>
2922      <xref target="PUT"/>
2923   </c>
2924   <c>TRACE</c>
2925   <c>yes</c>
2926   <c>
2927      <xref target="TRACE"/>
2928   </c>
2929</texttable>
2930<!--(END)-->
2931<?ENDINC p2-semantics.iana-methods ?>
2932</section>
2933
2934<section title="Status Code Registry" anchor="status.code.registration">
2935<t>
2936   The registration procedure for HTTP Status Codes &mdash; previously defined
2937   in <xref target="RFC2817" x:fmt="of" x:sec="7.1"/> &mdash; is now defined
2938   by <xref target="status.code.registry"/> of this document.
2939</t>
2940<t>
2941   The HTTP Status Code Registry located at <eref target="http://www.iana.org/assignments/http-status-codes"/>
2942   shall be updated with the registrations below:
2943</t>
2944<?BEGININC p2-semantics.iana-status-codes ?>
2945<!--AUTOGENERATED FROM extract-status-code-defs.xslt, do not edit manually-->
2946<texttable align="left" suppress-title="true" anchor="iana.status.code.registration.table">
2947   <ttcol>Value</ttcol>
2948   <ttcol>Description</ttcol>
2949   <ttcol>Reference</ttcol>
2950   <c>100</c>
2951   <c>Continue</c>
2952   <c>
2953      <xref target="status.100"/>
2954   </c>
2955   <c>101</c>
2956   <c>Switching Protocols</c>
2957   <c>
2958      <xref target="status.101"/>
2959   </c>
2960   <c>200</c>
2961   <c>OK</c>
2962   <c>
2963      <xref target="status.200"/>
2964   </c>
2965   <c>201</c>
2966   <c>Created</c>
2967   <c>
2968      <xref target="status.201"/>
2969   </c>
2970   <c>202</c>
2971   <c>Accepted</c>
2972   <c>
2973      <xref target="status.202"/>
2974   </c>
2975   <c>203</c>
2976   <c>Non-Authoritative Information</c>
2977   <c>
2978      <xref target="status.203"/>
2979   </c>
2980   <c>204</c>
2981   <c>No Content</c>
2982   <c>
2983      <xref target="status.204"/>
2984   </c>
2985   <c>205</c>
2986   <c>Reset Content</c>
2987   <c>
2988      <xref target="status.205"/>
2989   </c>
2990   <c>300</c>
2991   <c>Multiple Choices</c>
2992   <c>
2993      <xref target="status.300"/>
2994   </c>
2995   <c>301</c>
2996   <c>Moved Permanently</c>
2997   <c>
2998      <xref target="status.301"/>
2999   </c>
3000   <c>302</c>
3001   <c>Found</c>
3002   <c>
3003      <xref target="status.302"/>
3004   </c>
3005   <c>303</c>
3006   <c>See Other</c>
3007   <c>
3008      <xref target="status.303"/>
3009   </c>
3010   <c>305</c>
3011   <c>Use Proxy</c>
3012   <c>
3013      <xref target="status.305"/>
3014   </c>
3015   <c>306</c>
3016   <c>(Unused)</c>
3017   <c>
3018      <xref target="status.306"/>
3019   </c>
3020   <c>307</c>
3021   <c>Temporary Redirect</c>
3022   <c>
3023      <xref target="status.307"/>
3024   </c>
3025   <c>400</c>
3026   <c>Bad Request</c>
3027   <c>
3028      <xref target="status.400"/>
3029   </c>
3030   <c>402</c>
3031   <c>Payment Required</c>
3032   <c>
3033      <xref target="status.402"/>
3034   </c>
3035   <c>403</c>
3036   <c>Forbidden</c>
3037   <c>
3038      <xref target="status.403"/>
3039   </c>
3040   <c>404</c>
3041   <c>Not Found</c>
3042   <c>
3043      <xref target="status.404"/>
3044   </c>
3045   <c>405</c>
3046   <c>Method Not Allowed</c>
3047   <c>
3048      <xref target="status.405"/>
3049   </c>
3050   <c>406</c>
3051   <c>Not Acceptable</c>
3052   <c>
3053      <xref target="status.406"/>
3054   </c>
3055   <c>408</c>
3056   <c>Request Timeout</c>
3057   <c>
3058      <xref target="status.408"/>
3059   </c>
3060   <c>409</c>
3061   <c>Conflict</c>
3062   <c>
3063      <xref target="status.409"/>
3064   </c>
3065   <c>410</c>
3066   <c>Gone</c>
3067   <c>
3068      <xref target="status.410"/>
3069   </c>
3070   <c>411</c>
3071   <c>Length Required</c>
3072   <c>
3073      <xref target="status.411"/>
3074   </c>
3075   <c>413</c>
3076   <c>Request Representation Too Large</c>
3077   <c>
3078      <xref target="status.413"/>
3079   </c>
3080   <c>414</c>
3081   <c>URI Too Long</c>
3082   <c>
3083      <xref target="status.414"/>
3084   </c>
3085   <c>415</c>
3086   <c>Unsupported Media Type</c>
3087   <c>
3088      <xref target="status.415"/>
3089   </c>
3090   <c>417</c>
3091   <c>Expectation Failed</c>
3092   <c>
3093      <xref target="status.417"/>
3094   </c>
3095   <c>426</c>
3096   <c>Upgrade Required</c>
3097   <c>
3098      <xref target="status.426"/>
3099   </c>
3100   <c>500</c>
3101   <c>Internal Server Error</c>
3102   <c>
3103      <xref target="status.500"/>
3104   </c>
3105   <c>501</c>
3106   <c>Not Implemented</c>
3107   <c>
3108      <xref target="status.501"/>
3109   </c>
3110   <c>502</c>
3111   <c>Bad Gateway</c>
3112   <c>
3113      <xref target="status.502"/>
3114   </c>
3115   <c>503</c>
3116   <c>Service Unavailable</c>
3117   <c>
3118      <xref target="status.503"/>
3119   </c>
3120   <c>504</c>
3121   <c>Gateway Timeout</c>
3122   <c>
3123      <xref target="status.504"/>
3124   </c>
3125   <c>505</c>
3126   <c>HTTP Version Not Supported</c>
3127   <c>
3128      <xref target="status.505"/>
3129   </c>
3130</texttable>
3131<!--(END)-->
3132<?ENDINC p2-semantics.iana-status-codes ?>
3133</section>
3134<section title="Header Field Registration" anchor="header.field.registration">
3135<t>
3136   The Message Header Field Registry located at <eref target="http://www.iana.org/assignments/message-headers/message-header-index.html"/> shall be updated
3137   with the permanent registrations below (see <xref target="RFC3864"/>):
3138</t>
3139<?BEGININC p2-semantics.iana-headers ?>
3140<!--AUTOGENERATED FROM extract-header-defs.xslt, do not edit manually-->
3141<texttable align="left" suppress-title="true" anchor="iana.header.registration.table">
3142   <ttcol>Header Field Name</ttcol>
3143   <ttcol>Protocol</ttcol>
3144   <ttcol>Status</ttcol>
3145   <ttcol>Reference</ttcol>
3146
3147   <c>Allow</c>
3148   <c>http</c>
3149   <c>standard</c>
3150   <c>
3151      <xref target="header.allow"/>
3152   </c>
3153   <c>Date</c>
3154   <c>http</c>
3155   <c>standard</c>
3156   <c>
3157      <xref target="header.date"/>
3158   </c>
3159   <c>Expect</c>
3160   <c>http</c>
3161   <c>standard</c>
3162   <c>
3163      <xref target="header.expect"/>
3164   </c>
3165   <c>From</c>
3166   <c>http</c>
3167   <c>standard</c>
3168   <c>
3169      <xref target="header.from"/>
3170   </c>
3171   <c>Location</c>
3172   <c>http</c>
3173   <c>standard</c>
3174   <c>
3175      <xref target="header.location"/>
3176   </c>
3177   <c>Max-Forwards</c>
3178   <c>http</c>
3179   <c>standard</c>
3180   <c>
3181      <xref target="header.max-forwards"/>
3182   </c>
3183   <c>Referer</c>
3184   <c>http</c>
3185   <c>standard</c>
3186   <c>
3187      <xref target="header.referer"/>
3188   </c>
3189   <c>Retry-After</c>
3190   <c>http</c>
3191   <c>standard</c>
3192   <c>
3193      <xref target="header.retry-after"/>
3194   </c>
3195   <c>Server</c>
3196   <c>http</c>
3197   <c>standard</c>
3198   <c>
3199      <xref target="header.server"/>
3200   </c>
3201   <c>User-Agent</c>
3202   <c>http</c>
3203   <c>standard</c>
3204   <c>
3205      <xref target="header.user-agent"/>
3206   </c>
3207</texttable>
3208<!--(END)-->
3209<?ENDINC p2-semantics.iana-headers ?>
3210<t>
3211   The change controller is: "IETF (iesg@ietf.org) - Internet Engineering Task Force".
3212</t>
3213</section>
3214</section>
3215
3216<section title="Security Considerations" anchor="security.considerations">
3217<t>
3218   This section is meant to inform application developers, information
3219   providers, and users of the security limitations in HTTP/1.1 as
3220   described by this document. The discussion does not include
3221   definitive solutions to the problems revealed, though it does make
3222   some suggestions for reducing security risks.
3223</t>
3224
3225<section title="Transfer of Sensitive Information" anchor="security.sensitive">
3226<t>
3227   Like any generic data transfer protocol, HTTP cannot regulate the
3228   content of the data that is transferred, nor is there any a priori
3229   method of determining the sensitivity of any particular piece of
3230   information within the context of any given request. Therefore,
3231   applications &SHOULD; supply as much control over this information as
3232   possible to the provider of that information. Four header fields are
3233   worth special mention in this context: Server, Via, Referer and From.
3234</t>
3235<t>
3236   Revealing the specific software version of the server might allow the
3237   server machine to become more vulnerable to attacks against software
3238   that is known to contain security holes. Implementors &SHOULD; make the
3239   Server header field a configurable option.
3240</t>
3241<t>
3242   Proxies which serve as a portal through a network firewall &SHOULD;
3243   take special precautions regarding the transfer of header information
3244   that identifies the hosts behind the firewall. In particular, they
3245   &SHOULD; remove, or replace with sanitized versions, any Via fields
3246   generated behind the firewall.
3247</t>
3248<t>
3249   The Referer header field allows reading patterns to be studied and reverse
3250   links drawn. Although it can be very useful, its power can be abused
3251   if user details are not separated from the information contained in
3252   the Referer. Even when the personal information has been removed, the
3253   Referer header field might indicate a private document's URI whose
3254   publication would be inappropriate.
3255</t>
3256<t>
3257   The information sent in the From field might conflict with the user's
3258   privacy interests or their site's security policy, and hence it
3259   &SHOULD-NOT;  be transmitted without the user being able to disable,
3260   enable, and modify the contents of the field. The user &MUST; be able
3261   to set the contents of this field within a user preference or
3262   application defaults configuration.
3263</t>
3264<t>
3265   We suggest, though do not require, that a convenient toggle interface
3266   be provided for the user to enable or disable the sending of From and
3267   Referer information.
3268</t>
3269<t>
3270   The User-Agent (<xref target="header.user-agent"/>) or Server (<xref
3271   target="header.server"/>) header fields can sometimes be used to determine
3272   that a specific client or server has a particular security hole which might
3273   be exploited. Unfortunately, this same information is often used for other
3274   valuable purposes for which HTTP currently has no better mechanism.
3275</t>
3276<t>
3277   Furthermore, the User-Agent header field may contain enough entropy to be
3278   used, possibly in conjunction with other material, to uniquely identify the
3279   user.
3280</t>
3281<t>
3282   Some request methods, like TRACE (<xref target="TRACE"/>), expose information
3283   that was sent in request header fields within the body of their response.
3284   Clients &SHOULD; be careful with sensitive information, like Cookies,
3285   Authorization credentials, and other header fields that might be used to
3286   collect data from the client.
3287</t> 
3288</section>
3289
3290<section title="Encoding Sensitive Information in URIs" anchor="encoding.sensitive.information.in.uris">
3291<t>
3292   Because the source of a link might be private information or might
3293   reveal an otherwise private information source, it is strongly
3294   recommended that the user be able to select whether or not the
3295   Referer field is sent. For example, a browser client could have a
3296   toggle switch for browsing openly/anonymously, which would
3297   respectively enable/disable the sending of Referer and From
3298   information.
3299</t>
3300<t>
3301   Clients &SHOULD-NOT; include a Referer header field in a (non-secure)
3302   HTTP request if the referring page was transferred with a secure
3303   protocol.
3304</t>
3305<t>
3306   Authors of services &SHOULD-NOT; use GET-based forms for the submission of
3307   sensitive data because that data will be placed in the request-target. Many
3308   existing servers, proxies, and user agents log or display the request-target
3309   in places where it might be visible to third parties. Such services can
3310   use POST-based form submission instead.
3311</t>
3312</section>
3313
3314<section title="Location Headers and Spoofing" anchor="location.spoofing">
3315<t>
3316   If a single server supports multiple organizations that do not trust
3317   one another, then it &MUST; check the values of Location and Content-Location
3318   header fields in responses that are generated under control of
3319   said organizations to make sure that they do not attempt to
3320   invalidate resources over which they have no authority.
3321</t>
3322</section>
3323
3324<section title="Security Considerations for CONNECT">
3325<t>
3326   Since tunneled data is opaque to the proxy, there are additional
3327   risks to tunneling to other well-known or reserved ports.
3328   A HTTP client CONNECTing to port 25 could relay spam
3329   via SMTP, for example. As such, proxies &SHOULD; restrict CONNECT
3330   access to a small number of known ports.
3331</t>
3332</section>
3333
3334</section>
3335
3336<section title="Acknowledgments" anchor="acks">
3337<t>
3338  See &acks;.
3339</t>
3340</section>
3341</middle>
3342<back>
3343
3344<references title="Normative References">
3345
3346<reference anchor="Part1">
3347  <front>
3348    <title abbrev="HTTP/1.1">HTTP/1.1, part 1: URIs, Connections, and Message Parsing</title>
3349    <author initials="R." surname="Fielding" fullname="Roy T. Fielding" role="editor">
3350      <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
3351      <address><email>fielding@gbiv.com</email></address>
3352    </author>
3353    <author initials="J." surname="Gettys" fullname="Jim Gettys">
3354      <organization abbrev="Alcatel-Lucent">Alcatel-Lucent Bell Labs</organization>
3355      <address><email>jg@freedesktop.org</email></address>
3356    </author>
3357    <author initials="J." surname="Mogul" fullname="Jeffrey C. Mogul">
3358      <organization abbrev="HP">Hewlett-Packard Company</organization>
3359      <address><email>JeffMogul@acm.org</email></address>
3360    </author>
3361    <author initials="H." surname="Frystyk" fullname="Henrik Frystyk Nielsen">
3362      <organization abbrev="Microsoft">Microsoft Corporation</organization>
3363      <address><email>henrikn@microsoft.com</email></address>
3364    </author>
3365    <author initials="L." surname="Masinter" fullname="Larry Masinter">
3366      <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
3367      <address><email>LMM@acm.org</email></address>
3368    </author>
3369    <author initials="P." surname="Leach" fullname="Paul J. Leach">
3370      <organization abbrev="Microsoft">Microsoft Corporation</organization>
3371      <address><email>paulle@microsoft.com</email></address>
3372    </author>
3373    <author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
3374      <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
3375      <address><email>timbl@w3.org</email></address>
3376    </author>
3377    <author initials="Y." surname="Lafon" fullname="Yves Lafon" role="editor">
3378      <organization abbrev="W3C">World Wide Web Consortium</organization>
3379      <address><email>ylafon@w3.org</email></address>
3380    </author>
3381    <author initials="J. F." surname="Reschke" fullname="Julian F. Reschke" role="editor">
3382      <organization abbrev="greenbytes">greenbytes GmbH</organization>
3383      <address><email>julian.reschke@greenbytes.de</email></address>
3384    </author>
3385    <date month="&ID-MONTH;" year="&ID-YEAR;"/>
3386  </front>
3387  <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-p1-messaging-&ID-VERSION;"/>
3388  <x:source href="p1-messaging.xml" basename="p1-messaging"/>
3389</reference>
3390
3391<reference anchor="Part3">
3392  <front>
3393    <title abbrev="HTTP/1.1">HTTP/1.1, part 3: Message Payload and Content Negotiation</title>
3394    <author initials="R." surname="Fielding" fullname="Roy T. Fielding" role="editor">
3395      <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
3396      <address><email>fielding@gbiv.com</email></address>
3397    </author>
3398    <author initials="J." surname="Gettys" fullname="Jim Gettys">
3399      <organization abbrev="Alcatel-Lucent">Alcatel-Lucent Bell Labs</organization>
3400      <address><email>jg@freedesktop.org</email></address>
3401    </author>
3402    <author initials="J." surname="Mogul" fullname="Jeffrey C. Mogul">
3403      <organization abbrev="HP">Hewlett-Packard Company</organization>
3404      <address><email>JeffMogul@acm.org</email></address>
3405    </author>
3406    <author initials="H." surname="Frystyk" fullname="Henrik Frystyk Nielsen">
3407      <organization abbrev="Microsoft">Microsoft Corporation</organization>
3408      <address><email>henrikn@microsoft.com</email></address>
3409    </author>
3410    <author initials="L." surname="Masinter" fullname="Larry Masinter">
3411      <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
3412      <address><email>LMM@acm.org</email></address>
3413    </author>
3414    <author initials="P." surname="Leach" fullname="Paul J. Leach">
3415      <organization abbrev="Microsoft">Microsoft Corporation</organization>
3416      <address><email>paulle@microsoft.com</email></address>
3417    </author>
3418    <author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
3419      <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
3420      <address><email>timbl@w3.org</email></address>
3421    </author>
3422    <author initials="Y." surname="Lafon" fullname="Yves Lafon" role="editor">
3423      <organization abbrev="W3C">World Wide Web Consortium</organization>
3424      <address><email>ylafon@w3.org</email></address>
3425    </author>
3426    <author initials="J. F." surname="Reschke" fullname="Julian F. Reschke" role="editor">
3427      <organization abbrev="greenbytes">greenbytes GmbH</organization>
3428      <address><email>julian.reschke@greenbytes.de</email></address>
3429    </author>
3430    <date month="&ID-MONTH;" year="&ID-YEAR;"/>
3431  </front>
3432  <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-p3-payload-&ID-VERSION;"/>
3433  <x:source href="p3-payload.xml" basename="p3-payload"/>
3434</reference>
3435
3436<reference anchor="Part4">
3437  <front>
3438    <title abbrev="HTTP/1.1">HTTP/1.1, part 4: Conditional Requests</title>
3439    <author initials="R." surname="Fielding" fullname="Roy T. Fielding" role="editor">
3440      <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
3441      <address><email>fielding@gbiv.com</email></address>
3442    </author>
3443    <author initials="J." surname="Gettys" fullname="Jim Gettys">
3444      <organization abbrev="Alcatel-Lucent">Alcatel-Lucent Bell Labs</organization>
3445      <address><email>jg@freedesktop.org</email></address>
3446    </author>
3447    <author initials="J." surname="Mogul" fullname="Jeffrey C. Mogul">
3448      <organization abbrev="HP">Hewlett-Packard Company</organization>
3449      <address><email>JeffMogul@acm.org</email></address>
3450    </author>
3451    <author initials="H." surname="Frystyk" fullname="Henrik Frystyk Nielsen">
3452      <organization abbrev="Microsoft">Microsoft Corporation</organization>
3453      <address><email>henrikn@microsoft.com</email></address>
3454    </author>
3455    <author initials="L." surname="Masinter" fullname="Larry Masinter">
3456      <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
3457      <address><email>LMM@acm.org</email></address>
3458    </author>
3459    <author initials="P." surname="Leach" fullname="Paul J. Leach">
3460      <organization abbrev="Microsoft">Microsoft Corporation</organization>
3461      <address><email>paulle@microsoft.com</email></address>
3462    </author>
3463    <author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
3464      <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
3465      <address><email>timbl@w3.org</email></address>
3466    </author>
3467    <author initials="Y." surname="Lafon" fullname="Yves Lafon" role="editor">
3468      <organization abbrev="W3C">World Wide Web Consortium</organization>
3469      <address><email>ylafon@w3.org</email></address>
3470    </author>
3471    <author initials="J. F." surname="Reschke" fullname="Julian F. Reschke" role="editor">
3472      <organization abbrev="greenbytes">greenbytes GmbH</organization>
3473      <address><email>julian.reschke@greenbytes.de</email></address>
3474    </author>
3475    <date month="&ID-MONTH;" year="&ID-YEAR;"/>
3476  </front>
3477  <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-p4-conditional-&ID-VERSION;"/>
3478  <x:source href="p4-conditional.xml" basename="p4-conditional"/>
3479</reference>
3480
3481<reference anchor="Part5">
3482  <front>
3483    <title abbrev="HTTP/1.1">HTTP/1.1, part 5: Range Requests and Partial Responses</title>
3484    <author initials="R." surname="Fielding" fullname="Roy T. Fielding" role="editor">
3485      <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
3486      <address><email>fielding@gbiv.com</email></address>
3487    </author>
3488    <author initials="J." surname="Gettys" fullname="Jim Gettys">
3489      <organization abbrev="Alcatel-Lucent">Alcatel-Lucent Bell Labs</organization>
3490      <address><email>jg@freedesktop.org</email></address>
3491    </author>
3492    <author initials="J." surname="Mogul" fullname="Jeffrey C. Mogul">
3493      <organization abbrev="HP">Hewlett-Packard Company</organization>
3494      <address><email>JeffMogul@acm.org</email></address>
3495    </author>
3496    <author initials="H." surname="Frystyk" fullname="Henrik Frystyk Nielsen">
3497      <organization abbrev="Microsoft">Microsoft Corporation</organization>
3498      <address><email>henrikn@microsoft.com</email></address>
3499    </author>
3500    <author initials="L." surname="Masinter" fullname="Larry Masinter">
3501      <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
3502      <address><email>LMM@acm.org</email></address>
3503    </author>
3504    <author initials="P." surname="Leach" fullname="Paul J. Leach">
3505      <organization abbrev="Microsoft">Microsoft Corporation</organization>
3506      <address><email>paulle@microsoft.com</email></address>
3507    </author>
3508    <author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
3509      <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
3510      <address><email>timbl@w3.org</email></address>
3511    </author>
3512    <author initials="Y." surname="Lafon" fullname="Yves Lafon" role="editor">
3513      <organization abbrev="W3C">World Wide Web Consortium</organization>
3514      <address><email>ylafon@w3.org</email></address>
3515    </author>
3516    <author initials="J. F." surname="Reschke" fullname="Julian F. Reschke" role="editor">
3517      <organization abbrev="greenbytes">greenbytes GmbH</organization>
3518      <address><email>julian.reschke@greenbytes.de</email></address>
3519    </author>
3520    <date month="&ID-MONTH;" year="&ID-YEAR;"/>
3521  </front>
3522  <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-p5-range-&ID-VERSION;"/>
3523  <x:source href="p5-range.xml" basename="p5-range"/>
3524</reference>
3525
3526<reference anchor="Part6">
3527  <front>
3528    <title abbrev="HTTP/1.1">HTTP/1.1, part 6: Caching</title>
3529    <author initials="R." surname="Fielding" fullname="Roy T. Fielding" role="editor">
3530      <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
3531      <address><email>fielding@gbiv.com</email></address>
3532    </author>
3533    <author initials="J." surname="Gettys" fullname="Jim Gettys">
3534      <organization abbrev="Alcatel-Lucent">Alcatel-Lucent Bell Labs</organization>
3535      <address><email>jg@freedesktop.org</email></address>
3536    </author>
3537    <author initials="J." surname="Mogul" fullname="Jeffrey C. Mogul">
3538      <organization abbrev="HP">Hewlett-Packard Company</organization>
3539      <address><email>JeffMogul@acm.org</email></address>
3540    </author>
3541    <author initials="H." surname="Frystyk" fullname="Henrik Frystyk Nielsen">
3542      <organization abbrev="Microsoft">Microsoft Corporation</organization>
3543      <address><email>henrikn@microsoft.com</email></address>
3544    </author>
3545    <author initials="L." surname="Masinter" fullname="Larry Masinter">
3546      <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
3547      <address><email>LMM@acm.org</email></address>
3548    </author>
3549    <author initials="P." surname="Leach" fullname="Paul J. Leach">
3550      <organization abbrev="Microsoft">Microsoft Corporation</organization>
3551      <address><email>paulle@microsoft.com</email></address>
3552    </author>
3553    <author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
3554      <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
3555      <address><email>timbl@w3.org</email></address>
3556    </author>
3557    <author initials="Y." surname="Lafon" fullname="Yves Lafon" role="editor">
3558      <organization abbrev="W3C">World Wide Web Consortium</organization>
3559      <address><email>ylafon@w3.org</email></address>
3560    </author>
3561    <author initials="M." surname="Nottingham" fullname="Mark Nottingham" role="editor">
3562      <organization>Rackspace</organization>
3563      <address><email>mnot@mnot.net</email></address>
3564    </author>
3565    <author initials="J. F." surname="Reschke" fullname="Julian F. Reschke" role="editor">
3566      <organization abbrev="greenbytes">greenbytes GmbH</organization>
3567      <address><email>julian.reschke@greenbytes.de</email></address>
3568    </author>
3569    <date month="&ID-MONTH;" year="&ID-YEAR;"/>
3570  </front>
3571  <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-p6-cache-&ID-VERSION;"/>
3572  <x:source href="p6-cache.xml" basename="p6-cache"/>
3573</reference>
3574
3575<reference anchor="Part7">
3576  <front>
3577    <title abbrev="HTTP/1.1">HTTP/1.1, part 7: Authentication</title>
3578    <author initials="R." surname="Fielding" fullname="Roy T. Fielding" role="editor">
3579      <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
3580      <address><email>fielding@gbiv.com</email></address>
3581    </author>
3582    <author initials="J." surname="Gettys" fullname="Jim Gettys">
3583      <organization abbrev="Alcatel-Lucent">Alcatel-Lucent Bell Labs</organization>
3584      <address><email>jg@freedesktop.org</email></address>
3585    </author>
3586    <author initials="J." surname="Mogul" fullname="Jeffrey C. Mogul">
3587      <organization abbrev="HP">Hewlett-Packard Company</organization>
3588      <address><email>JeffMogul@acm.org</email></address>
3589    </author>
3590    <author initials="H." surname="Frystyk" fullname="Henrik Frystyk Nielsen">
3591      <organization abbrev="Microsoft">Microsoft Corporation</organization>
3592      <address><email>henrikn@microsoft.com</email></address>
3593    </author>
3594    <author initials="L." surname="Masinter" fullname="Larry Masinter">
3595      <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
3596      <address><email>LMM@acm.org</email></address>
3597    </author>
3598    <author initials="P." surname="Leach" fullname="Paul J. Leach">
3599      <organization abbrev="Microsoft">Microsoft Corporation</organization>
3600      <address><email>paulle@microsoft.com</email></address>
3601    </author>
3602    <author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
3603      <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
3604      <address><email>timbl@w3.org</email></address>
3605    </author>
3606    <author initials="Y." surname="Lafon" fullname="Yves Lafon" role="editor">
3607      <organization abbrev="W3C">World Wide Web Consortium</organization>
3608      <address><email>ylafon@w3.org</email></address>
3609    </author>
3610    <author initials="J. F." surname="Reschke" fullname="Julian F. Reschke" role="editor">
3611      <organization abbrev="greenbytes">greenbytes GmbH</organization>
3612      <address><email>julian.reschke@greenbytes.de</email></address>
3613    </author>
3614    <date month="&ID-MONTH;" year="&ID-YEAR;"/>
3615  </front>
3616  <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-p7-auth-&ID-VERSION;"/>
3617  <x:source href="p7-auth.xml" basename="p7-auth"/>
3618</reference>
3619
3620<reference anchor="RFC2119">
3621  <front>
3622    <title>Key words for use in RFCs to Indicate Requirement Levels</title>
3623    <author initials="S." surname="Bradner" fullname="Scott Bradner">
3624      <organization>Harvard University</organization>
3625      <address><email>sob@harvard.edu</email></address>
3626    </author>
3627    <date month="March" year="1997"/>
3628  </front>
3629  <seriesInfo name="BCP" value="14"/>
3630  <seriesInfo name="RFC" value="2119"/>
3631</reference>
3632
3633<reference anchor="RFC3986">
3634 <front>
3635  <title abbrev='URI Generic Syntax'>Uniform Resource Identifier (URI): Generic Syntax</title>
3636  <author initials='T.' surname='Berners-Lee' fullname='Tim Berners-Lee'>
3637    <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
3638    <address>
3639       <email>timbl@w3.org</email>
3640       <uri>http://www.w3.org/People/Berners-Lee/</uri>
3641    </address>
3642  </author>
3643  <author initials='R.' surname='Fielding' fullname='Roy T. Fielding'>
3644    <organization abbrev="Day Software">Day Software</organization>
3645    <address>
3646      <email>fielding@gbiv.com</email>
3647      <uri>http://roy.gbiv.com/</uri>
3648    </address>
3649  </author>
3650  <author initials='L.' surname='Masinter' fullname='Larry Masinter'>
3651    <organization abbrev="Adobe Systems">Adobe Systems Incorporated</organization>
3652    <address>
3653      <email>LMM@acm.org</email>
3654      <uri>http://larry.masinter.net/</uri>
3655    </address>
3656  </author>
3657  <date month='January' year='2005'></date>
3658 </front>
3659 <seriesInfo name="STD" value="66"/>
3660 <seriesInfo name="RFC" value="3986"/>
3661</reference>
3662
3663<reference anchor="RFC5234">
3664  <front>
3665    <title abbrev="ABNF for Syntax Specifications">Augmented BNF for Syntax Specifications: ABNF</title>
3666    <author initials="D." surname="Crocker" fullname="Dave Crocker" role="editor">
3667      <organization>Brandenburg InternetWorking</organization>
3668      <address>
3669        <email>dcrocker@bbiw.net</email>
3670      </address> 
3671    </author>
3672    <author initials="P." surname="Overell" fullname="Paul Overell">
3673      <organization>THUS plc.</organization>
3674      <address>
3675        <email>paul.overell@thus.net</email>
3676      </address>
3677    </author>
3678    <date month="January" year="2008"/>
3679  </front>
3680  <seriesInfo name="STD" value="68"/>
3681  <seriesInfo name="RFC" value="5234"/>
3682</reference>
3683
3684</references>
3685
3686<references title="Informative References">
3687
3688<reference anchor="RFC1123">
3689  <front>
3690    <title>Requirements for Internet Hosts - Application and Support</title>
3691    <author initials="R." surname="Braden" fullname="Robert Braden">
3692      <organization>University of Southern California (USC), Information Sciences Institute</organization>
3693      <address><email>Braden@ISI.EDU</email></address>
3694    </author>
3695    <date month="October" year="1989"/>
3696  </front>
3697  <seriesInfo name="STD" value="3"/>
3698  <seriesInfo name="RFC" value="1123"/>
3699</reference>
3700
3701<reference anchor="RFC1945">
3702  <front>
3703    <title abbrev="HTTP/1.0">Hypertext Transfer Protocol -- HTTP/1.0</title>
3704    <author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
3705      <organization>MIT, Laboratory for Computer Science</organization>
3706      <address><email>timbl@w3.org</email></address>
3707    </author>
3708    <author initials="R.T." surname="Fielding" fullname="Roy T. Fielding">
3709      <organization>University of California, Irvine, Department of Information and Computer Science</organization>
3710      <address><email>fielding@ics.uci.edu</email></address>
3711    </author>
3712    <author initials="H.F." surname="Nielsen" fullname="Henrik Frystyk Nielsen">
3713      <organization>W3 Consortium, MIT Laboratory for Computer Science</organization>
3714      <address><email>frystyk@w3.org</email></address>
3715    </author>
3716    <date month="May" year="1996"/>
3717  </front>
3718  <seriesInfo name="RFC" value="1945"/>
3719</reference>
3720
3721<reference anchor="RFC2068">
3722  <front>
3723    <title abbrev="HTTP/1.1">Hypertext Transfer Protocol -- HTTP/1.1</title>
3724    <author initials="R." surname="Fielding" fullname="Roy T. Fielding">
3725      <organization>University of California, Irvine, Department of Information and Computer Science</organization>
3726      <address><email>fielding@ics.uci.edu</email></address>
3727    </author>
3728    <author initials="J." surname="Gettys" fullname="Jim Gettys">
3729      <organization>MIT Laboratory for Computer Science</organization>
3730      <address><email>jg@w3.org</email></address>
3731    </author>
3732    <author initials="J." surname="Mogul" fullname="Jeffrey C. Mogul">
3733      <organization>Digital Equipment Corporation, Western Research Laboratory</organization>
3734      <address><email>mogul@wrl.dec.com</email></address>
3735    </author>
3736    <author initials="H." surname="Nielsen" fullname="Henrik Frystyk Nielsen">
3737      <organization>MIT Laboratory for Computer Science</organization>
3738      <address><email>frystyk@w3.org</email></address>
3739    </author>
3740    <author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
3741      <organization>MIT Laboratory for Computer Science</organization>
3742      <address><email>timbl@w3.org</email></address>
3743    </author>
3744    <date month="January" year="1997"/>
3745  </front>
3746  <seriesInfo name="RFC" value="2068"/>
3747</reference>
3748
3749<reference anchor="RFC2616">
3750  <front>
3751    <title>Hypertext Transfer Protocol -- HTTP/1.1</title>
3752    <author initials="R." surname="Fielding" fullname="R. Fielding">
3753      <organization>University of California, Irvine</organization>
3754      <address><email>fielding@ics.uci.edu</email></address>
3755    </author>
3756    <author initials="J." surname="Gettys" fullname="J. Gettys">
3757      <organization>W3C</organization>
3758      <address><email>jg@w3.org</email></address>
3759    </author>
3760    <author initials="J." surname="Mogul" fullname="J. Mogul">
3761      <organization>Compaq Computer Corporation</organization>
3762      <address><email>mogul@wrl.dec.com</email></address>
3763    </author>
3764    <author initials="H." surname="Frystyk" fullname="H. Frystyk">
3765      <organization>MIT Laboratory for Computer Science</organization>
3766      <address><email>frystyk@w3.org</email></address>
3767    </author>
3768    <author initials="L." surname="Masinter" fullname="L. Masinter">
3769      <organization>Xerox Corporation</organization>
3770      <address><email>masinter@parc.xerox.com</email></address>
3771    </author>
3772    <author initials="P." surname="Leach" fullname="P. Leach">
3773      <organization>Microsoft Corporation</organization>
3774      <address><email>paulle@microsoft.com</email></address>
3775    </author>
3776    <author initials="T." surname="Berners-Lee" fullname="T. Berners-Lee">
3777      <organization>W3C</organization>
3778      <address><email>timbl@w3.org</email></address>
3779    </author>
3780    <date month="June" year="1999"/>
3781  </front>
3782  <seriesInfo name="RFC" value="2616"/>
3783</reference>
3784
3785<reference anchor='RFC2817'>
3786  <front>
3787    <title>Upgrading to TLS Within HTTP/1.1</title>
3788    <author initials='R.' surname='Khare' fullname='R. Khare'>
3789      <organization>4K Associates / UC Irvine</organization>
3790      <address><email>rohit@4K-associates.com</email></address>
3791    </author>
3792    <author initials='S.' surname='Lawrence' fullname='S. Lawrence'>
3793      <organization>Agranat Systems, Inc.</organization>
3794      <address><email>lawrence@agranat.com</email></address>
3795    </author>
3796    <date year='2000' month='May' />
3797  </front>
3798  <seriesInfo name='RFC' value='2817' />
3799</reference>
3800
3801<reference anchor='RFC3864'>
3802  <front>
3803    <title>Registration Procedures for Message Header Fields</title>
3804    <author initials='G.' surname='Klyne' fullname='G. Klyne'>
3805      <organization>Nine by Nine</organization>
3806      <address><email>GK-IETF@ninebynine.org</email></address>
3807    </author>
3808    <author initials='M.' surname='Nottingham' fullname='M. Nottingham'>
3809      <organization>BEA Systems</organization>
3810      <address><email>mnot@pobox.com</email></address>
3811    </author>
3812    <author initials='J.' surname='Mogul' fullname='J. Mogul'>
3813      <organization>HP Labs</organization>
3814      <address><email>JeffMogul@acm.org</email></address>
3815    </author>
3816    <date year='2004' month='September' />
3817  </front>
3818  <seriesInfo name='BCP' value='90' />
3819  <seriesInfo name='RFC' value='3864' />
3820</reference>
3821
3822<reference anchor='RFC5226'>
3823  <front>
3824    <title>Guidelines for Writing an IANA Considerations Section in RFCs</title>
3825    <author initials='T.' surname='Narten' fullname='T. Narten'>
3826      <organization>IBM</organization>
3827      <address><email>narten@us.ibm.com</email></address>
3828    </author>
3829    <author initials='H.' surname='Alvestrand' fullname='H. Alvestrand'>
3830      <organization>Google</organization>
3831      <address><email>Harald@Alvestrand.no</email></address>
3832    </author>
3833    <date year='2008' month='May' />
3834  </front>
3835  <seriesInfo name='BCP' value='26' />
3836  <seriesInfo name='RFC' value='5226' />
3837</reference>
3838
3839<reference anchor="RFC5322">
3840  <front>
3841    <title>Internet Message Format</title>
3842    <author initials="P." surname="Resnick" fullname="P. Resnick">
3843      <organization>Qualcomm Incorporated</organization>
3844    </author>
3845    <date year="2008" month="October"/>
3846  </front> 
3847  <seriesInfo name="RFC" value="5322"/>
3848</reference>
3849
3850<reference anchor='RFC5789'>
3851  <front>
3852    <title>PATCH Method for HTTP</title>
3853    <author initials='L.' surname='Dusseault' fullname='L. Dusseault'>
3854      <organization>Linden Lab</organization>
3855    </author>
3856    <author initials='J.' surname='Snell' fullname='J. Snell' />
3857    <date year='2010' month='March' />
3858  </front>
3859  <seriesInfo name='RFC' value='5789' />
3860</reference>
3861
3862<reference anchor="RFC5987">
3863        <front>
3864    <title>Character Set and Language Encoding for Hypertext Transfer Protocol (HTTP) Header Field Parameters</title>
3865    <author initials="J. F." surname="Reschke" fullname="Julian F. Reschke">
3866      <organization abbrev="greenbytes">greenbytes GmbH</organization>
3867      <address>
3868        <postal>
3869          <street>Hafenweg 16</street>
3870          <city>Muenster</city><region>NW</region><code>48155</code>
3871          <country>Germany</country>
3872        </postal>
3873        <email>julian.reschke@greenbytes.de</email>     
3874        <uri>http://greenbytes.de/tech/webdav/</uri>   
3875      </address>
3876    </author>
3877    <date month="August" year="2010"/>
3878  </front>
3879  <seriesInfo name="RFC" value="5987"/>
3880</reference>
3881
3882</references>
3883
3884<section title="Changes from RFC 2616" anchor="changes.from.rfc.2616">
3885<t>
3886  This document takes over the Status Code Registry, previously defined
3887  in <xref target="RFC2817" x:fmt="of" x:sec="7.1"/>.
3888  (<xref target="status.code.registry"/>)
3889</t>
3890<t>
3891  Clarify definition of POST.
3892  (<xref target="POST"/>)
3893</t>
3894<t>
3895  Remove requirement to handle all Content-* header fields; ban use of
3896  Content-Range with PUT.
3897  (<xref target="PUT"/>)
3898</t>
3899<t>
3900  Take over definition of CONNECT method from <xref target="RFC2817"/>.
3901  (<xref target="CONNECT"/>)
3902</t>
3903<t>
3904  Broadened the definition of 203 (Non-Authoritative Information) to include
3905  cases of payload transformations as well.
3906  (<xref target="status.203"/>)
3907</t>
3908<t>
3909  Removed the normative requirements on response payloads for status codes
3910  301, 302, and 307.
3911  (<xref target="status.3xx"/>)
3912</t>
3913<t>
3914  Failed to consider that there are many other request methods that are safe
3915  to automatically redirect, and further that the user agent is able to make
3916  that determination based on the request method semantics.
3917  Furthermore, allow user agents to rewrite the method from POST to GET
3918  for status codes 301 and 302.
3919  (Sections <xref format="counter" target="status.301"/>,
3920  <xref format="counter" target="status.302"/> and
3921  <xref format="counter" target="status.307"/>)
3922</t>
3923<t>
3924  Deprecate 305 Use Proxy status code, because user agents did not implement it.
3925  It used to indicate that the target resource must be accessed through the
3926  proxy given by the Location field. The Location field gave the URI of the
3927  proxy. The recipient was expected to repeat this single request via the proxy.
3928  (<xref target="status.305"/>)
3929</t>
3930<t>
3931  Define status 426 (Upgrade Required) (this was incorporated from
3932  <xref target="RFC2817"/>).
3933  (<xref target="status.426"/>)
3934</t>
3935<t>
3936  Change ABNF productions for header fields to only define the field value.
3937  (<xref target="header.field.definitions"/>)
3938</t>
3939<t>
3940  Reclassify "Allow" as response header field, removing the option to
3941  specify it in a PUT request.
3942  Relax the server requirement on the contents of the Allow header field and
3943  remove requirement on clients to always trust the header field value.
3944  (<xref target="header.allow"/>)
3945</t>
3946<t>
3947  The ABNF for the Expect header field has been both fixed (allowing parameters
3948  for value-less expectations as well) and simplified (allowing trailing
3949  semicolons after "100-continue" when they were invalid before).
3950  (<xref target="header.expect"/>)
3951</t>
3952<t>
3953  Correct syntax of Location header field to allow URI references (including
3954  relative references and fragments), as referred symbol "absoluteURI" wasn't
3955  what was expected, and add some clarifications as to when use of fragments
3956  would not be appropriate.
3957  (<xref target="header.location"/>)
3958</t>
3959<t>
3960  Restrict Max-Forwards header field to OPTIONS and TRACE (previously,
3961  extension methods could have used it as well).
3962  (<xref target="header.max-forwards"/>)
3963</t>
3964<t>
3965  Allow Referer field value of "about:blank" as alternative to not specifying it.
3966  (<xref target="header.referer"/>)
3967</t>
3968<t>
3969  In the description of the Server header field, the Via field
3970  was described as a SHOULD. The requirement was and is stated
3971  correctly in the description of the Via header field in &header-via;.
3972  (<xref target="header.server"/>)
3973</t>
3974</section>
3975
3976<?BEGININC p2-semantics.abnf-appendix ?>
3977<section xmlns:x="http://purl.org/net/xml2rfc/ext" title="Collected ABNF" anchor="collected.abnf">
3978<figure>
3979<artwork type="abnf" name="p2-semantics.parsed-abnf">
3980<x:ref>Allow</x:ref> = [ ( "," / Method ) *( OWS "," [ OWS Method ] ) ]
3981
3982<x:ref>BWS</x:ref> = &lt;BWS, defined in [Part1], Section 3.2.1&gt;
3983
3984<x:ref>Date</x:ref> = HTTP-date
3985
3986<x:ref>Expect</x:ref> = *( "," OWS ) expectation *( OWS "," [ OWS expectation ] )
3987
3988<x:ref>From</x:ref> = mailbox
3989
3990<x:ref>GMT</x:ref> = %x47.4D.54 ; GMT
3991
3992<x:ref>HTTP-date</x:ref> = rfc1123-date / obs-date
3993
3994<x:ref>Location</x:ref> = URI-reference
3995
3996<x:ref>Max-Forwards</x:ref> = 1*DIGIT
3997<x:ref>Method</x:ref> = token
3998
3999<x:ref>OWS</x:ref> = &lt;OWS, defined in [Part1], Section 3.2.1&gt;
4000
4001<x:ref>RWS</x:ref> = &lt;RWS, defined in [Part1], Section 3.2.1&gt;
4002<x:ref>Reason-Phrase</x:ref> = *( HTAB / SP / VCHAR / obs-text )
4003<x:ref>Referer</x:ref> = absolute-URI / partial-URI
4004<x:ref>Retry-After</x:ref> = HTTP-date / delta-seconds
4005
4006<x:ref>Server</x:ref> = product *( RWS ( product / comment ) )
4007<x:ref>Status-Code</x:ref> = 3DIGIT
4008
4009<x:ref>URI-reference</x:ref> = &lt;URI-reference, defined in [Part1], Section 2.7&gt;
4010<x:ref>User-Agent</x:ref> = product *( RWS ( product / comment ) )
4011
4012<x:ref>absolute-URI</x:ref> = &lt;absolute-URI, defined in [Part1], Section 2.7&gt;
4013<x:ref>asctime-date</x:ref> = day-name SP date3 SP time-of-day SP year
4014
4015<x:ref>comment</x:ref> = &lt;comment, defined in [Part1], Section 3.2.4&gt;
4016
4017<x:ref>date1</x:ref> = day SP month SP year
4018<x:ref>date2</x:ref> = day "-" month "-" 2DIGIT
4019<x:ref>date3</x:ref> = month SP ( 2DIGIT / ( SP DIGIT ) )
4020<x:ref>day</x:ref> = 2DIGIT
4021<x:ref>day-name</x:ref> = %x4D.6F.6E ; Mon
4022 / %x54.75.65 ; Tue
4023 / %x57.65.64 ; Wed
4024 / %x54.68.75 ; Thu
4025 / %x46.72.69 ; Fri
4026 / %x53.61.74 ; Sat
4027 / %x53.75.6E ; Sun
4028<x:ref>day-name-l</x:ref> = %x4D.6F.6E.64.61.79 ; Monday
4029 / %x54.75.65.73.64.61.79 ; Tuesday
4030 / %x57.65.64.6E.65.73.64.61.79 ; Wednesday
4031 / %x54.68.75.72.73.64.61.79 ; Thursday
4032 / %x46.72.69.64.61.79 ; Friday
4033 / %x53.61.74.75.72.64.61.79 ; Saturday
4034 / %x53.75.6E.64.61.79 ; Sunday
4035<x:ref>delta-seconds</x:ref> = 1*DIGIT
4036
4037<x:ref>expect-name</x:ref> = token
4038<x:ref>expect-param</x:ref> = expect-name [ BWS "=" BWS expect-value ]
4039<x:ref>expect-value</x:ref> = token / quoted-string
4040<x:ref>expectation</x:ref> = expect-name [ BWS "=" BWS expect-value ] *( OWS ";" [
4041 OWS expect-param ] )
4042
4043<x:ref>hour</x:ref> = 2DIGIT
4044
4045<x:ref>mailbox</x:ref> = &lt;mailbox, defined in [RFC5322], Section 3.4&gt;
4046<x:ref>minute</x:ref> = 2DIGIT
4047<x:ref>month</x:ref> = %x4A.61.6E ; Jan
4048 / %x46.65.62 ; Feb
4049 / %x4D.61.72 ; Mar
4050 / %x41.70.72 ; Apr
4051 / %x4D.61.79 ; May
4052 / %x4A.75.6E ; Jun
4053 / %x4A.75.6C ; Jul
4054 / %x41.75.67 ; Aug
4055 / %x53.65.70 ; Sep
4056 / %x4F.63.74 ; Oct
4057 / %x4E.6F.76 ; Nov
4058 / %x44.65.63 ; Dec
4059
4060<x:ref>obs-date</x:ref> = rfc850-date / asctime-date
4061<x:ref>obs-text</x:ref> = &lt;obs-text, defined in [Part1], Section 3.2.4&gt;
4062
4063<x:ref>partial-URI</x:ref> = &lt;partial-URI, defined in [Part1], Section 2.7&gt;
4064<x:ref>product</x:ref> = &lt;product, defined in [Part1], Section 5.2&gt;
4065
4066<x:ref>quoted-string</x:ref> = &lt;quoted-string, defined in [Part1], Section 3.2.4&gt;
4067
4068<x:ref>rfc1123-date</x:ref> = day-name "," SP date1 SP time-of-day SP GMT
4069<x:ref>rfc850-date</x:ref> = day-name-l "," SP date2 SP time-of-day SP GMT
4070
4071<x:ref>second</x:ref> = 2DIGIT
4072
4073<x:ref>time-of-day</x:ref> = hour ":" minute ":" second
4074<x:ref>token</x:ref> = &lt;token, defined in [Part1], Section 3.2.4&gt;
4075
4076<x:ref>year</x:ref> = 4DIGIT
4077</artwork>
4078</figure>
4079<figure><preamble>ABNF diagnostics:</preamble><artwork type="inline">
4080; Allow defined but not used
4081; Date defined but not used
4082; Expect defined but not used
4083; From defined but not used
4084; Location defined but not used
4085; Max-Forwards defined but not used
4086; Reason-Phrase defined but not used
4087; Referer defined but not used
4088; Retry-After defined but not used
4089; Server defined but not used
4090; Status-Code defined but not used
4091; User-Agent defined but not used
4092</artwork></figure></section>
4093<?ENDINC p2-semantics.abnf-appendix ?>
4094
4095<section title="Change Log (to be removed by RFC Editor before publication)" anchor="change.log">
4096
4097<section title="Since RFC 2616">
4098<t>
4099  Extracted relevant partitions from <xref target="RFC2616"/>.
4100</t>
4101</section>
4102
4103<section title="Since draft-ietf-httpbis-p2-semantics-00">
4104<t>
4105  Closed issues:
4106  <list style="symbols"> 
4107    <t>
4108      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/5"/>:
4109      "Via is a MUST"
4110      (<eref target="http://purl.org/NET/http-errata#via-must"/>)
4111    </t>
4112    <t>
4113      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/6"/>:
4114      "Fragments allowed in Location"
4115      (<eref target="http://purl.org/NET/http-errata#location-fragments"/>)
4116    </t>
4117    <t>
4118      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/10"/>:
4119      "Safe Methods vs Redirection"
4120      (<eref target="http://purl.org/NET/http-errata#saferedirect"/>)
4121    </t>
4122    <t>
4123      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/17"/>:
4124      "Revise description of the POST method"
4125      (<eref target="http://purl.org/NET/http-errata#post"/>)
4126    </t>
4127    <t>
4128      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/35"/>:
4129      "Normative and Informative references"
4130    </t>
4131    <t>
4132      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/42"/>:
4133      "RFC2606 Compliance"
4134    </t>
4135    <t>
4136      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/65"/>:
4137      "Informative references"
4138    </t>
4139    <t>
4140      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/84"/>:
4141      "Redundant cross-references"
4142    </t>
4143  </list>
4144</t>
4145<t>
4146  Other changes:
4147  <list style="symbols"> 
4148    <t>
4149      Move definitions of 304 and 412 condition codes to <xref target="Part4"/>
4150    </t>
4151  </list>
4152</t>
4153</section>
4154
4155<section title="Since draft-ietf-httpbis-p2-semantics-01">
4156<t>
4157  Closed issues:
4158  <list style="symbols"> 
4159    <t>
4160      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/21"/>:
4161      "PUT side effects"
4162    </t>
4163    <t>
4164      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/91"/>:
4165      "Duplicate Host header requirements"
4166    </t>
4167  </list>
4168</t>
4169<t>
4170  Ongoing work on ABNF conversion (<eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/36"/>):
4171  <list style="symbols"> 
4172    <t>
4173      Move "Product Tokens" section (back) into Part 1, as "token" is used
4174      in the definition of the Upgrade header field.
4175    </t>
4176    <t>
4177      Add explicit references to BNF syntax and rules imported from other parts of the specification.
4178    </t>
4179    <t>
4180      Copy definition of delta-seconds from Part6 instead of referencing it.
4181    </t>
4182  </list>
4183</t>
4184</section>
4185
4186<section title="Since draft-ietf-httpbis-p2-semantics-02" anchor="changes.since.02">
4187<t>
4188  Closed issues:
4189  <list style="symbols"> 
4190    <t>
4191      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/24"/>:
4192      "Requiring Allow in 405 responses"
4193    </t>
4194    <t>
4195      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/59"/>:
4196      "Status Code Registry"
4197    </t>
4198    <t>
4199      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/61"/>:
4200      "Redirection vs. Location"
4201    </t>
4202    <t>
4203      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/70"/>:
4204      "Cacheability of 303 response"
4205    </t>
4206    <t>
4207      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/76"/>:
4208      "305 Use Proxy"
4209    </t>
4210    <t>
4211      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/105"/>:
4212      "Classification for Allow header"
4213    </t>
4214    <t>
4215      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/112"/>:
4216      "PUT - 'store under' vs 'store at'"
4217    </t>
4218  </list>
4219</t>
4220<t>
4221  Ongoing work on IANA Message Header Field Registration (<eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/40"/>):
4222  <list style="symbols"> 
4223    <t>
4224      Reference RFC 3984, and update header field registrations for headers defined
4225      in this document.
4226    </t>
4227  </list>
4228</t>
4229<t>
4230  Ongoing work on ABNF conversion (<eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/36"/>):
4231  <list style="symbols"> 
4232    <t>
4233      Replace string literals when the string really is case-sensitive (method).
4234    </t>
4235  </list>
4236</t>
4237</section>
4238
4239<section title="Since draft-ietf-httpbis-p2-semantics-03" anchor="changes.since.03">
4240<t>
4241  Closed issues:
4242  <list style="symbols"> 
4243    <t>
4244      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/98"/>:
4245      "OPTIONS request bodies"
4246    </t>
4247    <t>
4248      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/119"/>:
4249      "Description of CONNECT should refer to RFC2817"
4250    </t>
4251    <t>
4252      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/125"/>:
4253      "Location Content-Location reference request/response mixup"
4254    </t>
4255  </list>
4256</t>
4257<t>
4258  Ongoing work on Method Registry (<eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/72"/>):
4259  <list style="symbols"> 
4260    <t>
4261      Added initial proposal for registration process, plus initial
4262      content (non-HTTP/1.1 methods to be added by a separate specification).
4263    </t>
4264  </list>
4265</t>
4266</section>
4267
4268<section title="Since draft-ietf-httpbis-p2-semantics-04" anchor="changes.since.04">
4269<t>
4270  Closed issues:
4271  <list style="symbols"> 
4272    <t>
4273      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/103"/>:
4274      "Content-*"
4275    </t>
4276    <t>
4277      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/132"/>:
4278      "RFC 2822 is updated by RFC 5322"
4279    </t>
4280  </list>
4281</t>
4282<t>
4283  Ongoing work on ABNF conversion (<eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/36"/>):
4284  <list style="symbols"> 
4285    <t>
4286      Use "/" instead of "|" for alternatives.
4287    </t>
4288    <t>
4289      Introduce new ABNF rules for "bad" whitespace ("BWS"), optional
4290      whitespace ("OWS") and required whitespace ("RWS").
4291    </t>
4292    <t>
4293      Rewrite ABNFs to spell out whitespace rules, factor out
4294      header field value format definitions.
4295    </t>
4296  </list>
4297</t>
4298</section>
4299
4300<section title="Since draft-ietf-httpbis-p2-semantics-05" anchor="changes.since.05">
4301<t>
4302  Closed issues:
4303  <list style="symbols"> 
4304    <t>
4305      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/94"/>:
4306      "Reason-Phrase BNF"
4307    </t>
4308  </list>
4309</t>
4310<t>
4311  Final work on ABNF conversion (<eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/36"/>):
4312  <list style="symbols"> 
4313    <t>
4314      Add appendix containing collected and expanded ABNF, reorganize ABNF introduction.
4315    </t>
4316  </list>
4317</t>
4318</section>
4319
4320<section title="Since draft-ietf-httpbis-p2-semantics-06" anchor="changes.since.06">
4321<t>
4322  Closed issues:
4323  <list style="symbols"> 
4324    <t>
4325      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/144"/>:
4326      "Clarify when Referer is sent"
4327    </t>
4328    <t>
4329      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/164"/>:
4330      "status codes vs methods"
4331    </t>
4332    <t>
4333      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/170"/>:
4334      "Do not require "updates" relation for specs that register status codes or method names"
4335    </t>
4336  </list>
4337</t>
4338</section>
4339
4340<section title="Since draft-ietf-httpbis-p2-semantics-07" anchor="changes.since.07">
4341<t>
4342  Closed issues:
4343  <list style="symbols"> 
4344    <t>
4345      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/27"/>:
4346      "Idempotency"
4347    </t>
4348    <t>
4349      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/33"/>:
4350      "TRACE security considerations"
4351    </t>
4352    <t>
4353      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/110"/>:
4354      "Clarify rules for determining what entities a response carries"
4355    </t>
4356    <t>
4357      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/140"/>:
4358      "update note citing RFC 1945 and 2068"
4359    </t>
4360    <t>
4361      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/182"/>:
4362      "update note about redirect limit"
4363    </t>
4364    <t>
4365      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/191"/>:
4366      "Location header ABNF should use 'URI'"
4367    </t>
4368    <t>
4369      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/192"/>:
4370      "fragments in Location vs status 303"
4371    </t>
4372    <t>
4373      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/198"/>:
4374      "move IANA registrations for optional status codes"
4375    </t>
4376  </list>
4377</t>
4378<t>
4379  Partly resolved issues:
4380  <list style="symbols"> 
4381    <t>
4382      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/171"/>:
4383      "Are OPTIONS and TRACE safe?"
4384    </t>
4385  </list>
4386</t>
4387</section>
4388
4389<section title="Since draft-ietf-httpbis-p2-semantics-08" anchor="changes.since.08">
4390<t>
4391  Closed issues:
4392  <list style="symbols"> 
4393    <t>
4394      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/10"/>:
4395      "Safe Methods vs Redirection" (we missed the introduction to the 3xx
4396      status codes when fixing this previously)
4397    </t>
4398  </list>
4399</t>
4400</section>
4401
4402<section title="Since draft-ietf-httpbis-p2-semantics-09" anchor="changes.since.09">
4403<t>
4404  Closed issues:
4405  <list style="symbols"> 
4406    <t>
4407      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/43"/>:
4408      "Fragment combination / precedence during redirects"
4409    </t>
4410  </list>
4411</t>
4412<t>
4413  Partly resolved issues:
4414  <list style="symbols"> 
4415    <t>
4416      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/185"/>:
4417      "Location header payload handling"
4418    </t>
4419    <t>
4420      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/196"/>:
4421      "Term for the requested resource's URI"
4422    </t>
4423  </list>
4424</t>
4425</section>
4426
4427<section title="Since draft-ietf-httpbis-p2-semantics-10" anchor="changes.since.10">
4428<t>
4429  Closed issues:
4430  <list style="symbols"> 
4431    <t>
4432      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/69"/>:
4433      "Clarify 'Requested Variant'"
4434    </t>
4435    <t>
4436      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/109"/>:
4437      "Clarify entity / representation / variant terminology"
4438    </t>
4439    <t>
4440      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/139"/>:
4441      "Methods and Caching"
4442    </t>
4443    <t>
4444      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/190"/>:
4445      "OPTIONS vs Max-Forwards"
4446    </t>
4447    <t>
4448      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/199"/>:
4449      "Status codes and caching"
4450    </t>
4451    <t>
4452      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/220"/>:
4453      "consider removing the 'changes from 2068' sections"
4454    </t>
4455  </list>
4456</t>
4457</section>
4458
4459<section title="Since draft-ietf-httpbis-p2-semantics-11" anchor="changes.since.11">
4460<t>
4461  Closed issues:
4462  <list style="symbols"> 
4463    <t>
4464      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/229"/>:
4465      "Considerations for new status codes"
4466    </t>
4467    <t>
4468      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/230"/>:
4469      "Considerations for new methods"
4470    </t>
4471    <t>
4472      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/232"/>:
4473      "User-Agent guidelines" (relating to the 'User-Agent' header field)
4474    </t>
4475  </list>
4476</t>
4477</section>
4478
4479<section title="Since draft-ietf-httpbis-p2-semantics-12" anchor="changes.since.12">
4480<t>
4481  Closed issues:
4482  <list style="symbols"> 
4483    <t>
4484      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/43"/>:
4485      "Fragment combination / precedence during redirects" (added warning
4486      about having a fragid on the redirect may cause inconvenience in
4487      some cases)
4488    </t>
4489    <t>
4490      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/79"/>:
4491      "Content-* vs. PUT"
4492    </t>
4493    <t>
4494      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/88"/>:
4495      "205 Bodies"
4496    </t>
4497    <t>
4498      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/102"/>:
4499      "Understanding Content-* on non-PUT requests"
4500    </t>
4501    <t>
4502      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/103"/>:
4503      "Content-*"
4504    </t>
4505    <t>
4506      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/104"/>:
4507      "Header type defaulting"
4508    </t>
4509    <t>
4510      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/112"/>:
4511      "PUT - 'store under' vs 'store at'"
4512    </t>
4513    <t>
4514      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/137"/>:
4515      "duplicate ABNF for Reason-Phrase"
4516    </t>
4517    <t>
4518      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/180"/>:
4519      "Note special status of Content-* prefix in header registration procedures"
4520    </t>
4521    <t>
4522      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/203"/>:
4523      "Max-Forwards vs extension methods"
4524    </t>
4525    <t>
4526      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/213"/>:
4527      "What is the value space of HTTP status codes?" (actually fixed in
4528      draft-ietf-httpbis-p2-semantics-11)
4529    </t>
4530    <t>
4531      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/224"/>:
4532      "Header Classification"
4533    </t>
4534    <t>
4535      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/225"/>:
4536      "PUT side effect: invalidation or just stale?"
4537    </t>
4538    <t>
4539      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/226"/>:
4540      "proxies not supporting certain methods"
4541    </t>
4542    <t>
4543      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/239"/>:
4544      "Migrate CONNECT from RFC2817 to p2"
4545    </t>
4546    <t>
4547      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/240"/>:
4548      "Migrate Upgrade details from RFC2817"
4549    </t>
4550    <t>
4551      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/267"/>:
4552      "clarify PUT semantics'"
4553    </t>
4554    <t>
4555      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/275"/>:
4556      "duplicate ABNF for 'Method'"
4557    </t>
4558    <t>
4559      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/276"/>:
4560      "untangle ABNFs for header fields"
4561    </t>
4562  </list>
4563</t>
4564</section>
4565
4566<section title="Since draft-ietf-httpbis-p2-semantics-13" anchor="changes.since.13">
4567<t>
4568  Closed issues:
4569  <list style="symbols"> 
4570    <t>
4571      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/276"/>:
4572      "untangle ABNFs for header fields"
4573    </t>
4574    <t>
4575      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/251"/>:
4576      "message-body in CONNECT request"
4577    </t>
4578  </list>
4579</t>
4580</section>
4581
4582<section title="Since draft-ietf-httpbis-p2-semantics-14" anchor="changes.since.14">
4583<t>
4584  Closed issues:
4585  <list style="symbols"> 
4586    <t>
4587      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/255"/>:
4588      "Clarify status code for rate limiting"
4589    </t>
4590    <t>
4591      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/294"/>:
4592      "clarify 403 forbidden"
4593    </t>
4594    <t>
4595      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/296"/>:
4596      "Clarify 203 Non-Authoritative Information"
4597    </t>
4598    <t>
4599      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/298"/>:
4600      "update default reason phrase for 413"
4601    </t>
4602  </list>
4603</t>
4604</section>
4605
4606<section title="Since draft-ietf-httpbis-p2-semantics-15" anchor="changes.since.15">
4607<t>
4608  Closed issues:
4609  <list style="symbols"> 
4610    <t>
4611      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/285"/>:
4612      "Strength of requirements on Accept re: 406"
4613    </t>
4614    <t>
4615      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/303"/>:
4616      "400 response isn't generic"
4617    </t>
4618  </list>
4619</t>
4620</section>
4621
4622<section title="Since draft-ietf-httpbis-p2-semantics-16" anchor="changes.since.16">
4623<t>
4624  Closed issues:
4625  <list style="symbols"> 
4626    <t>
4627      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/160"/>:
4628      "Redirects and non-GET methods"
4629    </t>
4630    <t>
4631      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/186"/>:
4632      "Document HTTP's error-handling philosophy"
4633    </t>
4634    <t>
4635      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/231"/>:
4636      "Considerations for new headers"
4637    </t>
4638    <t>
4639      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/310"/>:
4640      "clarify 303 redirect on HEAD"
4641    </t>
4642  </list>
4643</t>
4644</section>
4645
4646<section title="Since draft-ietf-httpbis-p2-semantics-17" anchor="changes.since.17">
4647<t>
4648  Closed issues:
4649  <list style="symbols"> 
4650    <t>
4651      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/185"/>:
4652      "Location header payload handling"
4653    </t>
4654    <t>
4655      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/255"/>:
4656      "Clarify status code for rate limiting" (change backed out because
4657      a new status code is being defined for this purpose)
4658    </t>
4659    <t>
4660      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/312"/>:
4661      "should there be a permanent variant of 307"
4662    </t>
4663    <t>
4664      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/325"/>:
4665      "When are Location's semantics triggered?"
4666    </t>
4667    <t>
4668      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/327"/>:
4669      "'expect' grammar missing OWS"
4670    </t>
4671    <t>
4672      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/329"/>:
4673      "header field considerations: quoted-string vs use of double quotes"
4674    </t>
4675  </list>
4676</t>
4677</section>
4678
4679<section title="Since draft-ietf-httpbis-p2-semantics-18" anchor="changes.since.18">
4680<t>
4681  Closed issues:
4682  <list style="symbols"> 
4683    <t>
4684      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/332"/>:
4685      "relax requirements on hypertext in 3/4/5xx error responses"
4686    </t>
4687    <t>
4688      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/333"/>:
4689      "example for 426 response should have a payload"
4690    </t>
4691    <t>
4692      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/336"/>:
4693      "drop indirection entries for status codes"
4694    </t>
4695  </list>
4696</t>
4697</section>
4698
4699</section>
4700
4701</back>
4702</rfc>
Note: See TracBrowser for help on using the repository browser.