1 | <!DOCTYPE html |
---|
2 | PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
---|
3 | <html lang="en"> |
---|
4 | <head profile="http://dublincore.org/documents/2008/08/04/dc-html/"> |
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
---|
6 | <title>HTTP/1.1, part 5: Range Requests and Partial Responses</title><style type="text/css" title="Xml2Rfc (sans serif)"> |
---|
7 | a { |
---|
8 | text-decoration: none; |
---|
9 | } |
---|
10 | a.smpl { |
---|
11 | color: black; |
---|
12 | } |
---|
13 | a:hover { |
---|
14 | text-decoration: underline; |
---|
15 | } |
---|
16 | a:active { |
---|
17 | text-decoration: underline; |
---|
18 | } |
---|
19 | address { |
---|
20 | margin-top: 1em; |
---|
21 | margin-left: 2em; |
---|
22 | font-style: normal; |
---|
23 | } |
---|
24 | body { |
---|
25 | color: black; |
---|
26 | font-family: cambria, helvetica, arial, sans-serif; |
---|
27 | font-size: 11pt; |
---|
28 | margin-right: 2em; |
---|
29 | } |
---|
30 | cite { |
---|
31 | font-style: normal; |
---|
32 | } |
---|
33 | div.note { |
---|
34 | margin-left: 2em; |
---|
35 | } |
---|
36 | dl { |
---|
37 | margin-left: 2em; |
---|
38 | } |
---|
39 | ul.empty { |
---|
40 | list-style-type: none; |
---|
41 | } |
---|
42 | ul.empty li { |
---|
43 | margin-top: .5em; |
---|
44 | } |
---|
45 | dl p { |
---|
46 | margin-left: 0em; |
---|
47 | } |
---|
48 | dt { |
---|
49 | margin-top: .5em; |
---|
50 | } |
---|
51 | h1 { |
---|
52 | font-size: 130%; |
---|
53 | line-height: 21pt; |
---|
54 | page-break-after: avoid; |
---|
55 | } |
---|
56 | h1.np { |
---|
57 | page-break-before: always; |
---|
58 | } |
---|
59 | h2 { |
---|
60 | font-size: 120%; |
---|
61 | line-height: 15pt; |
---|
62 | page-break-after: avoid; |
---|
63 | } |
---|
64 | h3 { |
---|
65 | font-size: 110%; |
---|
66 | page-break-after: avoid; |
---|
67 | } |
---|
68 | h4, h5, h6 { |
---|
69 | page-break-after: avoid; |
---|
70 | } |
---|
71 | h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { |
---|
72 | color: black; |
---|
73 | } |
---|
74 | img { |
---|
75 | margin-left: 3em; |
---|
76 | } |
---|
77 | li { |
---|
78 | margin-left: 2em; |
---|
79 | } |
---|
80 | ol { |
---|
81 | margin-left: 2em; |
---|
82 | } |
---|
83 | ol.la { |
---|
84 | list-style-type: lower-alpha; |
---|
85 | } |
---|
86 | ol.ua { |
---|
87 | list-style-type: upper-alpha; |
---|
88 | } |
---|
89 | ol p { |
---|
90 | margin-left: 0em; |
---|
91 | } |
---|
92 | p { |
---|
93 | margin-left: 2em; |
---|
94 | } |
---|
95 | pre { |
---|
96 | margin-left: 3em; |
---|
97 | background-color: lightyellow; |
---|
98 | padding: .25em; |
---|
99 | page-break-inside: avoid; |
---|
100 | } |
---|
101 | pre.text2 { |
---|
102 | border-style: dotted; |
---|
103 | border-width: 1px; |
---|
104 | background-color: #f0f0f0; |
---|
105 | width: 69em; |
---|
106 | } |
---|
107 | pre.inline { |
---|
108 | background-color: white; |
---|
109 | padding: 0em; |
---|
110 | } |
---|
111 | pre.text { |
---|
112 | border-style: dotted; |
---|
113 | border-width: 1px; |
---|
114 | background-color: #f8f8f8; |
---|
115 | width: 69em; |
---|
116 | } |
---|
117 | pre.drawing { |
---|
118 | border-style: solid; |
---|
119 | border-width: 1px; |
---|
120 | background-color: #f8f8f8; |
---|
121 | padding: 2em; |
---|
122 | } |
---|
123 | table { |
---|
124 | margin-left: 2em; |
---|
125 | } |
---|
126 | table.tt { |
---|
127 | vertical-align: top; |
---|
128 | border-color: gray; |
---|
129 | } |
---|
130 | table.tt th { |
---|
131 | border-color: gray; |
---|
132 | } |
---|
133 | table.tt td { |
---|
134 | border-color: gray; |
---|
135 | } |
---|
136 | table.all { |
---|
137 | border-style: solid; |
---|
138 | border-width: 2px; |
---|
139 | } |
---|
140 | table.full { |
---|
141 | border-style: solid; |
---|
142 | border-width: 2px; |
---|
143 | } |
---|
144 | table.tt td { |
---|
145 | vertical-align: top; |
---|
146 | } |
---|
147 | table.all td { |
---|
148 | border-style: solid; |
---|
149 | border-width: 1px; |
---|
150 | } |
---|
151 | table.full td { |
---|
152 | border-style: none solid; |
---|
153 | border-width: 1px; |
---|
154 | } |
---|
155 | table.tt th { |
---|
156 | vertical-align: top; |
---|
157 | } |
---|
158 | table.all th { |
---|
159 | border-style: solid; |
---|
160 | border-width: 1px; |
---|
161 | } |
---|
162 | table.full th { |
---|
163 | border-style: solid; |
---|
164 | border-width: 1px 1px 2px 1px; |
---|
165 | } |
---|
166 | table.headers th { |
---|
167 | border-style: none none solid none; |
---|
168 | border-width: 2px; |
---|
169 | } |
---|
170 | table.left { |
---|
171 | margin-right: auto; |
---|
172 | } |
---|
173 | table.right { |
---|
174 | margin-left: auto; |
---|
175 | } |
---|
176 | table.center { |
---|
177 | margin-left: auto; |
---|
178 | margin-right: auto; |
---|
179 | } |
---|
180 | caption { |
---|
181 | caption-side: bottom; |
---|
182 | font-weight: bold; |
---|
183 | font-size: 10pt; |
---|
184 | margin-top: .5em; |
---|
185 | } |
---|
186 | |
---|
187 | table.header { |
---|
188 | border-spacing: 1px; |
---|
189 | width: 95%; |
---|
190 | font-size: 11pt; |
---|
191 | color: white; |
---|
192 | } |
---|
193 | td.top { |
---|
194 | vertical-align: top; |
---|
195 | } |
---|
196 | td.topnowrap { |
---|
197 | vertical-align: top; |
---|
198 | white-space: nowrap; |
---|
199 | } |
---|
200 | table.header td { |
---|
201 | background-color: gray; |
---|
202 | width: 50%; |
---|
203 | } |
---|
204 | table.header a { |
---|
205 | color: white; |
---|
206 | } |
---|
207 | td.reference { |
---|
208 | vertical-align: top; |
---|
209 | white-space: nowrap; |
---|
210 | padding-right: 1em; |
---|
211 | } |
---|
212 | thead { |
---|
213 | display:table-header-group; |
---|
214 | } |
---|
215 | ul.toc, ul.toc ul { |
---|
216 | list-style: none; |
---|
217 | margin-left: 1.5em; |
---|
218 | padding-left: 0em; |
---|
219 | } |
---|
220 | ul.toc li { |
---|
221 | line-height: 150%; |
---|
222 | font-weight: bold; |
---|
223 | margin-left: 0em; |
---|
224 | } |
---|
225 | ul.toc li li { |
---|
226 | line-height: normal; |
---|
227 | font-weight: normal; |
---|
228 | font-size: 10pt; |
---|
229 | margin-left: 0em; |
---|
230 | } |
---|
231 | li.excluded { |
---|
232 | font-size: 0pt; |
---|
233 | } |
---|
234 | ul p { |
---|
235 | margin-left: 0em; |
---|
236 | } |
---|
237 | .title, .filename, h1, h2, h3, h4 { |
---|
238 | font-family: candara, helvetica, arial, sans-serif; |
---|
239 | } |
---|
240 | samp, tt, code, pre { |
---|
241 | font: consolas, monospace; |
---|
242 | } |
---|
243 | ul.ind, ul.ind ul { |
---|
244 | list-style: none; |
---|
245 | margin-left: 1.5em; |
---|
246 | padding-left: 0em; |
---|
247 | page-break-before: avoid; |
---|
248 | } |
---|
249 | ul.ind li { |
---|
250 | font-weight: bold; |
---|
251 | line-height: 200%; |
---|
252 | margin-left: 0em; |
---|
253 | } |
---|
254 | ul.ind li li { |
---|
255 | font-weight: normal; |
---|
256 | line-height: 150%; |
---|
257 | margin-left: 0em; |
---|
258 | } |
---|
259 | .avoidbreak { |
---|
260 | page-break-inside: avoid; |
---|
261 | } |
---|
262 | .bcp14 { |
---|
263 | font-style: normal; |
---|
264 | text-transform: lowercase; |
---|
265 | font-variant: small-caps; |
---|
266 | } |
---|
267 | .comment { |
---|
268 | background-color: yellow; |
---|
269 | } |
---|
270 | .center { |
---|
271 | text-align: center; |
---|
272 | } |
---|
273 | .error { |
---|
274 | color: red; |
---|
275 | font-style: italic; |
---|
276 | font-weight: bold; |
---|
277 | } |
---|
278 | .figure { |
---|
279 | font-weight: bold; |
---|
280 | text-align: center; |
---|
281 | font-size: 10pt; |
---|
282 | } |
---|
283 | .filename { |
---|
284 | color: #333333; |
---|
285 | font-size: 75%; |
---|
286 | font-weight: bold; |
---|
287 | line-height: 21pt; |
---|
288 | text-align: center; |
---|
289 | } |
---|
290 | .fn { |
---|
291 | font-weight: bold; |
---|
292 | } |
---|
293 | .left { |
---|
294 | text-align: left; |
---|
295 | } |
---|
296 | .right { |
---|
297 | text-align: right; |
---|
298 | } |
---|
299 | .title { |
---|
300 | color: green; |
---|
301 | font-size: 150%; |
---|
302 | line-height: 18pt; |
---|
303 | font-weight: bold; |
---|
304 | text-align: center; |
---|
305 | margin-top: 36pt; |
---|
306 | } |
---|
307 | .warning { |
---|
308 | font-size: 130%; |
---|
309 | background-color: yellow; |
---|
310 | } |
---|
311 | |
---|
312 | |
---|
313 | @media print { |
---|
314 | .noprint { |
---|
315 | display: none; |
---|
316 | } |
---|
317 | |
---|
318 | a { |
---|
319 | color: black; |
---|
320 | text-decoration: none; |
---|
321 | } |
---|
322 | |
---|
323 | table.header { |
---|
324 | width: 90%; |
---|
325 | } |
---|
326 | |
---|
327 | td.header { |
---|
328 | width: 50%; |
---|
329 | color: black; |
---|
330 | background-color: white; |
---|
331 | vertical-align: top; |
---|
332 | font-size: 110%; |
---|
333 | } |
---|
334 | |
---|
335 | ul.toc a:nth-child(2)::after { |
---|
336 | content: leader('.') target-counter(attr(href), page); |
---|
337 | } |
---|
338 | |
---|
339 | ul.ind li li a { |
---|
340 | content: target-counter(attr(href), page); |
---|
341 | } |
---|
342 | |
---|
343 | .print2col { |
---|
344 | column-count: 2; |
---|
345 | -moz-column-count: 2; |
---|
346 | column-fill: auto; |
---|
347 | } |
---|
348 | } |
---|
349 | |
---|
350 | @page { |
---|
351 | @top-left { |
---|
352 | content: "Internet-Draft"; |
---|
353 | } |
---|
354 | @top-right { |
---|
355 | content: "August 2011"; |
---|
356 | } |
---|
357 | @top-center { |
---|
358 | content: "HTTP/1.1, Part 5"; |
---|
359 | } |
---|
360 | @bottom-left { |
---|
361 | content: "Fielding, et al."; |
---|
362 | } |
---|
363 | @bottom-center { |
---|
364 | content: "Expires February 25, 2012"; |
---|
365 | } |
---|
366 | @bottom-right { |
---|
367 | content: "[Page " counter(page) "]"; |
---|
368 | } |
---|
369 | } |
---|
370 | |
---|
371 | @page:first { |
---|
372 | @top-left { |
---|
373 | content: normal; |
---|
374 | } |
---|
375 | @top-right { |
---|
376 | content: normal; |
---|
377 | } |
---|
378 | @top-center { |
---|
379 | content: normal; |
---|
380 | } |
---|
381 | } |
---|
382 | </style><link rel="Contents" href="#rfc.toc"> |
---|
383 | <link rel="Author" href="#rfc.authors"> |
---|
384 | <link rel="Copyright" href="#rfc.copyrightnotice"> |
---|
385 | <link rel="Index" href="#rfc.index"> |
---|
386 | <link rel="Chapter" title="1 Introduction" href="#rfc.section.1"> |
---|
387 | <link rel="Chapter" title="2 Range Units" href="#rfc.section.2"> |
---|
388 | <link rel="Chapter" title="3 Status Code Definitions" href="#rfc.section.3"> |
---|
389 | <link rel="Chapter" title="4 Combining Ranges" href="#rfc.section.4"> |
---|
390 | <link rel="Chapter" title="5 Header Field Definitions" href="#rfc.section.5"> |
---|
391 | <link rel="Chapter" title="6 IANA Considerations" href="#rfc.section.6"> |
---|
392 | <link rel="Chapter" title="7 Security Considerations" href="#rfc.section.7"> |
---|
393 | <link rel="Chapter" title="8 Acknowledgments" href="#rfc.section.8"> |
---|
394 | <link rel="Chapter" href="#rfc.section.9" title="9 References"> |
---|
395 | <link rel="Appendix" title="A Internet Media Type multipart/byteranges" href="#rfc.section.A"> |
---|
396 | <link rel="Appendix" title="B Compatibility with Previous Versions" href="#rfc.section.B"> |
---|
397 | <link rel="Appendix" title="C Collected ABNF" href="#rfc.section.C"> |
---|
398 | <link rel="Appendix" title="D Change Log (to be removed by RFC Editor before publication)" href="#rfc.section.D"> |
---|
399 | <meta name="generator" content="http://greenbytes.de/tech/webdav/rfc2629.xslt, Revision 1.640, 2014/06/13 12:42:58, XSLT vendor: SAXON 8.9 from Saxonica http://www.saxonica.com/"> |
---|
400 | <link rel="schema.dct" href="http://purl.org/dc/terms/"> |
---|
401 | <meta name="dct.creator" content="Fielding, R."> |
---|
402 | <meta name="dct.creator" content="Gettys, J."> |
---|
403 | <meta name="dct.creator" content="Mogul, J."> |
---|
404 | <meta name="dct.creator" content="Frystyk, H."> |
---|
405 | <meta name="dct.creator" content="Masinter, L."> |
---|
406 | <meta name="dct.creator" content="Leach, P."> |
---|
407 | <meta name="dct.creator" content="Berners-Lee, T."> |
---|
408 | <meta name="dct.creator" content="Lafon, Y."> |
---|
409 | <meta name="dct.creator" content="Reschke, J. F."> |
---|
410 | <meta name="dct.identifier" content="urn:ietf:id:draft-ietf-httpbis-p5-range-16"> |
---|
411 | <meta name="dct.issued" scheme="ISO8601" content="2011-08-24"> |
---|
412 | <meta name="dct.replaces" content="urn:ietf:rfc:2616"> |
---|
413 | <meta name="dct.abstract" content="The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypertext information systems. HTTP has been in use by the World Wide Web global information initiative since 1990. This document is Part 5 of the seven-part specification that defines the protocol referred to as "HTTP/1.1" and, taken together, obsoletes RFC 2616. Part 5 defines range-specific requests and the rules for constructing and combining responses to those requests."> |
---|
414 | <meta name="description" content="The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypertext information systems. HTTP has been in use by the World Wide Web global information initiative since 1990. This document is Part 5 of the seven-part specification that defines the protocol referred to as "HTTP/1.1" and, taken together, obsoletes RFC 2616. Part 5 defines range-specific requests and the rules for constructing and combining responses to those requests."> |
---|
415 | </head> |
---|
416 | <body> |
---|
417 | <table class="header"> |
---|
418 | <tbody> |
---|
419 | <tr> |
---|
420 | <td class="left">HTTPbis Working Group</td> |
---|
421 | <td class="right">R. Fielding, Editor</td> |
---|
422 | </tr> |
---|
423 | <tr> |
---|
424 | <td class="left">Internet-Draft</td> |
---|
425 | <td class="right">Adobe</td> |
---|
426 | </tr> |
---|
427 | <tr> |
---|
428 | <td class="left">Obsoletes: <a href="https://tools.ietf.org/html/rfc2616">2616</a> (if approved) |
---|
429 | </td> |
---|
430 | <td class="right">J. Gettys</td> |
---|
431 | </tr> |
---|
432 | <tr> |
---|
433 | <td class="left">Intended status: Standards Track</td> |
---|
434 | <td class="right">Alcatel-Lucent</td> |
---|
435 | </tr> |
---|
436 | <tr> |
---|
437 | <td class="left">Expires: February 25, 2012</td> |
---|
438 | <td class="right">J. Mogul</td> |
---|
439 | </tr> |
---|
440 | <tr> |
---|
441 | <td class="left"></td> |
---|
442 | <td class="right">HP</td> |
---|
443 | </tr> |
---|
444 | <tr> |
---|
445 | <td class="left"></td> |
---|
446 | <td class="right">H. Frystyk</td> |
---|
447 | </tr> |
---|
448 | <tr> |
---|
449 | <td class="left"></td> |
---|
450 | <td class="right">Microsoft</td> |
---|
451 | </tr> |
---|
452 | <tr> |
---|
453 | <td class="left"></td> |
---|
454 | <td class="right">L. Masinter</td> |
---|
455 | </tr> |
---|
456 | <tr> |
---|
457 | <td class="left"></td> |
---|
458 | <td class="right">Adobe</td> |
---|
459 | </tr> |
---|
460 | <tr> |
---|
461 | <td class="left"></td> |
---|
462 | <td class="right">P. Leach</td> |
---|
463 | </tr> |
---|
464 | <tr> |
---|
465 | <td class="left"></td> |
---|
466 | <td class="right">Microsoft</td> |
---|
467 | </tr> |
---|
468 | <tr> |
---|
469 | <td class="left"></td> |
---|
470 | <td class="right">T. Berners-Lee</td> |
---|
471 | </tr> |
---|
472 | <tr> |
---|
473 | <td class="left"></td> |
---|
474 | <td class="right">W3C/MIT</td> |
---|
475 | </tr> |
---|
476 | <tr> |
---|
477 | <td class="left"></td> |
---|
478 | <td class="right">Y. Lafon, Editor</td> |
---|
479 | </tr> |
---|
480 | <tr> |
---|
481 | <td class="left"></td> |
---|
482 | <td class="right">W3C</td> |
---|
483 | </tr> |
---|
484 | <tr> |
---|
485 | <td class="left"></td> |
---|
486 | <td class="right">J. Reschke, Editor</td> |
---|
487 | </tr> |
---|
488 | <tr> |
---|
489 | <td class="left"></td> |
---|
490 | <td class="right">greenbytes</td> |
---|
491 | </tr> |
---|
492 | <tr> |
---|
493 | <td class="left"></td> |
---|
494 | <td class="right">August 24, 2011</td> |
---|
495 | </tr> |
---|
496 | </tbody> |
---|
497 | </table> |
---|
498 | <p class="title">HTTP/1.1, part 5: Range Requests and Partial Responses<br><span class="filename">draft-ietf-httpbis-p5-range-16</span></p> |
---|
499 | <h1 id="rfc.abstract"><a href="#rfc.abstract">Abstract</a></h1> |
---|
500 | <p>The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypertext information |
---|
501 | systems. HTTP has been in use by the World Wide Web global information initiative since 1990. This document is Part 5 of the |
---|
502 | seven-part specification that defines the protocol referred to as "HTTP/1.1" and, taken together, obsoletes RFC 2616. |
---|
503 | </p> |
---|
504 | <p>Part 5 defines range-specific requests and the rules for constructing and combining responses to those requests.</p> |
---|
505 | <h1 id="rfc.note.1"><a href="#rfc.note.1">Editorial Note (To be removed by RFC Editor)</a></h1> |
---|
506 | <p>Discussion of this draft should take place on the HTTPBIS working group mailing list (ietf-http-wg@w3.org), which is archived |
---|
507 | at <<a href="http://lists.w3.org/Archives/Public/ietf-http-wg/">http://lists.w3.org/Archives/Public/ietf-http-wg/</a>>. |
---|
508 | </p> |
---|
509 | <p>The current issues list is at <<a href="http://tools.ietf.org/wg/httpbis/trac/report/3">http://tools.ietf.org/wg/httpbis/trac/report/3</a>> and related documents (including fancy diffs) can be found at <<a href="http://tools.ietf.org/wg/httpbis/">http://tools.ietf.org/wg/httpbis/</a>>. |
---|
510 | </p> |
---|
511 | <p>The changes in this draft are summarized in <a href="#changes.since.15" title="Since draft-ietf-httpbis-p5-range-15">Appendix D.17</a>. |
---|
512 | </p> |
---|
513 | <div id="rfc.status"> |
---|
514 | <h1><a href="#rfc.status">Status of This Memo</a></h1> |
---|
515 | <p>This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.</p> |
---|
516 | <p>Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute |
---|
517 | working documents as Internet-Drafts. The list of current Internet-Drafts is at <a href="http://datatracker.ietf.org/drafts/current/">http://datatracker.ietf.org/drafts/current/</a>. |
---|
518 | </p> |
---|
519 | <p>Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other |
---|
520 | documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as “work |
---|
521 | in progress”. |
---|
522 | </p> |
---|
523 | <p>This Internet-Draft will expire on February 25, 2012.</p> |
---|
524 | </div> |
---|
525 | <div id="rfc.copyrightnotice"> |
---|
526 | <h1><a href="#rfc.copyrightnotice">Copyright Notice</a></h1> |
---|
527 | <p>Copyright © 2011 IETF Trust and the persons identified as the document authors. All rights reserved.</p> |
---|
528 | <p>This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights |
---|
529 | and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License |
---|
530 | text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified |
---|
531 | BSD License. |
---|
532 | </p> |
---|
533 | <p>This document may contain material from IETF Documents or IETF Contributions published or made publicly available before November |
---|
534 | 10, 2008. The person(s) controlling the copyright in some of this material may not have granted the IETF Trust the right to |
---|
535 | allow modifications of such material outside the IETF Standards Process. Without obtaining an adequate license from the person(s) |
---|
536 | controlling the copyright in such materials, this document may not be modified outside the IETF Standards Process, and derivative |
---|
537 | works of it may not be created outside the IETF Standards Process, except to format it for publication as an RFC or to translate |
---|
538 | it into languages other than English. |
---|
539 | </p> |
---|
540 | </div> |
---|
541 | <hr class="noprint"> |
---|
542 | <h1 class="np" id="rfc.toc"><a href="#rfc.toc">Table of Contents</a></h1> |
---|
543 | <ul class="toc"> |
---|
544 | <li><a href="#rfc.section.1">1.</a> <a href="#introduction">Introduction</a><ul> |
---|
545 | <li><a href="#rfc.section.1.1">1.1</a> <a href="#intro.requirements">Requirements</a></li> |
---|
546 | <li><a href="#rfc.section.1.2">1.2</a> <a href="#notation">Syntax Notation</a><ul> |
---|
547 | <li><a href="#rfc.section.1.2.1">1.2.1</a> <a href="#core.rules">Core Rules</a></li> |
---|
548 | <li><a href="#rfc.section.1.2.2">1.2.2</a> <a href="#abnf.dependencies">ABNF Rules defined in other Parts of the Specification</a></li> |
---|
549 | </ul> |
---|
550 | </li> |
---|
551 | </ul> |
---|
552 | </li> |
---|
553 | <li><a href="#rfc.section.2">2.</a> <a href="#range.units">Range Units</a><ul> |
---|
554 | <li><a href="#rfc.section.2.1">2.1</a> <a href="#range.specifier.registry">Range Specifier Registry</a></li> |
---|
555 | </ul> |
---|
556 | </li> |
---|
557 | <li><a href="#rfc.section.3">3.</a> <a href="#status.code.definitions">Status Code Definitions</a><ul> |
---|
558 | <li><a href="#rfc.section.3.1">3.1</a> <a href="#status.206">206 Partial Content</a></li> |
---|
559 | <li><a href="#rfc.section.3.2">3.2</a> <a href="#status.416">416 Requested Range Not Satisfiable</a></li> |
---|
560 | </ul> |
---|
561 | </li> |
---|
562 | <li><a href="#rfc.section.4">4.</a> <a href="#combining.byte.ranges">Combining Ranges</a></li> |
---|
563 | <li><a href="#rfc.section.5">5.</a> <a href="#header.fields">Header Field Definitions</a><ul> |
---|
564 | <li><a href="#rfc.section.5.1">5.1</a> <a href="#header.accept-ranges">Accept-Ranges</a></li> |
---|
565 | <li><a href="#rfc.section.5.2">5.2</a> <a href="#header.content-range">Content-Range</a></li> |
---|
566 | <li><a href="#rfc.section.5.3">5.3</a> <a href="#header.if-range">If-Range</a></li> |
---|
567 | <li><a href="#rfc.section.5.4">5.4</a> <a href="#header.range">Range</a><ul> |
---|
568 | <li><a href="#rfc.section.5.4.1">5.4.1</a> <a href="#byte.ranges">Byte Ranges</a></li> |
---|
569 | <li><a href="#rfc.section.5.4.2">5.4.2</a> <a href="#range.retrieval.requests">Range Retrieval Requests</a></li> |
---|
570 | </ul> |
---|
571 | </li> |
---|
572 | </ul> |
---|
573 | </li> |
---|
574 | <li><a href="#rfc.section.6">6.</a> <a href="#IANA.considerations">IANA Considerations</a><ul> |
---|
575 | <li><a href="#rfc.section.6.1">6.1</a> <a href="#status.code.registration">Status Code Registration</a></li> |
---|
576 | <li><a href="#rfc.section.6.2">6.2</a> <a href="#header.field.registration">Header Field Registration</a></li> |
---|
577 | <li><a href="#rfc.section.6.3">6.3</a> <a href="#range.specifier.registration">Range Specifier Registration</a></li> |
---|
578 | </ul> |
---|
579 | </li> |
---|
580 | <li><a href="#rfc.section.7">7.</a> <a href="#security.considerations">Security Considerations</a><ul> |
---|
581 | <li><a href="#rfc.section.7.1">7.1</a> <a href="#overlapping.ranges">Overlapping Ranges</a></li> |
---|
582 | </ul> |
---|
583 | </li> |
---|
584 | <li><a href="#rfc.section.8">8.</a> <a href="#acks">Acknowledgments</a></li> |
---|
585 | <li><a href="#rfc.section.9">9.</a> <a href="#rfc.references">References</a><ul> |
---|
586 | <li><a href="#rfc.section.9.1">9.1</a> <a href="#rfc.references.1">Normative References</a></li> |
---|
587 | <li><a href="#rfc.section.9.2">9.2</a> <a href="#rfc.references.2">Informative References</a></li> |
---|
588 | </ul> |
---|
589 | </li> |
---|
590 | <li><a href="#rfc.section.A">A.</a> <a href="#internet.media.type.multipart.byteranges">Internet Media Type multipart/byteranges</a></li> |
---|
591 | <li><a href="#rfc.section.B">B.</a> <a href="#compatibility">Compatibility with Previous Versions</a><ul> |
---|
592 | <li><a href="#rfc.section.B.1">B.1</a> <a href="#changes.from.rfc.2616">Changes from RFC 2616</a></li> |
---|
593 | </ul> |
---|
594 | </li> |
---|
595 | <li><a href="#rfc.section.C">C.</a> <a href="#collected.abnf">Collected ABNF</a></li> |
---|
596 | <li><a href="#rfc.section.D">D.</a> <a href="#change.log">Change Log (to be removed by RFC Editor before publication)</a><ul> |
---|
597 | <li><a href="#rfc.section.D.1">D.1</a> <a href="#rfc.section.D.1">Since RFC 2616</a></li> |
---|
598 | <li><a href="#rfc.section.D.2">D.2</a> <a href="#rfc.section.D.2">Since draft-ietf-httpbis-p5-range-00</a></li> |
---|
599 | <li><a href="#rfc.section.D.3">D.3</a> <a href="#rfc.section.D.3">Since draft-ietf-httpbis-p5-range-01</a></li> |
---|
600 | <li><a href="#rfc.section.D.4">D.4</a> <a href="#changes.since.02">Since draft-ietf-httpbis-p5-range-02</a></li> |
---|
601 | <li><a href="#rfc.section.D.5">D.5</a> <a href="#changes.since.03">Since draft-ietf-httpbis-p5-range-03</a></li> |
---|
602 | <li><a href="#rfc.section.D.6">D.6</a> <a href="#changes.since.04">Since draft-ietf-httpbis-p5-range-04</a></li> |
---|
603 | <li><a href="#rfc.section.D.7">D.7</a> <a href="#changes.since.05">Since draft-ietf-httpbis-p5-range-05</a></li> |
---|
604 | <li><a href="#rfc.section.D.8">D.8</a> <a href="#changes.since.06">Since draft-ietf-httpbis-p5-range-06</a></li> |
---|
605 | <li><a href="#rfc.section.D.9">D.9</a> <a href="#changes.since.07">Since draft-ietf-httpbis-p5-range-07</a></li> |
---|
606 | <li><a href="#rfc.section.D.10">D.10</a> <a href="#changes.since.08">Since draft-ietf-httpbis-p5-range-08</a></li> |
---|
607 | <li><a href="#rfc.section.D.11">D.11</a> <a href="#changes.since.09">Since draft-ietf-httpbis-p5-range-09</a></li> |
---|
608 | <li><a href="#rfc.section.D.12">D.12</a> <a href="#changes.since.10">Since draft-ietf-httpbis-p5-range-10</a></li> |
---|
609 | <li><a href="#rfc.section.D.13">D.13</a> <a href="#changes.since.11">Since draft-ietf-httpbis-p5-range-11</a></li> |
---|
610 | <li><a href="#rfc.section.D.14">D.14</a> <a href="#changes.since.12">Since draft-ietf-httpbis-p5-range-12</a></li> |
---|
611 | <li><a href="#rfc.section.D.15">D.15</a> <a href="#changes.since.13">Since draft-ietf-httpbis-p5-range-13</a></li> |
---|
612 | <li><a href="#rfc.section.D.16">D.16</a> <a href="#changes.since.14">Since draft-ietf-httpbis-p5-range-14</a></li> |
---|
613 | <li><a href="#rfc.section.D.17">D.17</a> <a href="#changes.since.15">Since draft-ietf-httpbis-p5-range-15</a></li> |
---|
614 | </ul> |
---|
615 | </li> |
---|
616 | <li><a href="#rfc.index">Index</a></li> |
---|
617 | <li><a href="#rfc.authors">Authors' Addresses</a></li> |
---|
618 | </ul> |
---|
619 | <div id="introduction"> |
---|
620 | <h1 id="rfc.section.1" class="np"><a href="#rfc.section.1">1.</a> <a href="#introduction">Introduction</a></h1> |
---|
621 | <p id="rfc.section.1.p.1">HTTP clients often encounter interrupted data transfers as a result of cancelled requests or dropped connections. When a client |
---|
622 | has stored a partial representation, it is desirable to request the remainder of that representation in a subsequent request |
---|
623 | rather than transfer the entire representation. There are also a number of Web applications that benefit from being able to |
---|
624 | request only a subset of a larger representation, such as a single page of a very large document or only part of an image |
---|
625 | to be rendered by a device with limited local storage. |
---|
626 | </p> |
---|
627 | <p id="rfc.section.1.p.2">This document defines HTTP/1.1 range requests, partial responses, and the multipart/byteranges media type. The protocol for |
---|
628 | range requests is an <em class="bcp14">OPTIONAL</em> feature of HTTP, designed so resources or recipients that do not implement this feature can respond as if it is a normal GET |
---|
629 | request without impacting interoperability. Partial responses are indicated by a distinct status code to not be mistaken for |
---|
630 | full responses by intermediate caches that might not implement the feature. |
---|
631 | </p> |
---|
632 | <p id="rfc.section.1.p.3">Although the HTTP range request mechanism is designed to allow for extensible range types, this specification only defines |
---|
633 | requests for byte ranges. |
---|
634 | </p> |
---|
635 | <div id="intro.requirements"> |
---|
636 | <h2 id="rfc.section.1.1"><a href="#rfc.section.1.1">1.1</a> <a href="#intro.requirements">Requirements</a></h2> |
---|
637 | <p id="rfc.section.1.1.p.1">The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" |
---|
638 | in this document are to be interpreted as described in <a href="#RFC2119" id="rfc.xref.RFC2119.1"><cite title="Key words for use in RFCs to Indicate Requirement Levels">[RFC2119]</cite></a>. |
---|
639 | </p> |
---|
640 | <p id="rfc.section.1.1.p.2">An implementation is not compliant if it fails to satisfy one or more of the "MUST" or "REQUIRED" level requirements for the |
---|
641 | protocols it implements. An implementation that satisfies all the "MUST" or "REQUIRED" level and all the "SHOULD" level requirements |
---|
642 | for its protocols is said to be "unconditionally compliant"; one that satisfies all the "MUST" level requirements but not |
---|
643 | all the "SHOULD" level requirements for its protocols is said to be "conditionally compliant". |
---|
644 | </p> |
---|
645 | </div> |
---|
646 | <div id="notation"> |
---|
647 | <h2 id="rfc.section.1.2"><a href="#rfc.section.1.2">1.2</a> <a href="#notation">Syntax Notation</a></h2> |
---|
648 | <p id="rfc.section.1.2.p.1">This specification uses the ABNF syntax defined in <a href="p1-messaging.html#notation" title="Syntax Notation">Section 1.2</a> of <a href="#Part1" id="rfc.xref.Part1.1"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a> (which extends the syntax defined in <a href="#RFC5234" id="rfc.xref.RFC5234.1"><cite title="Augmented BNF for Syntax Specifications: ABNF">[RFC5234]</cite></a> with a list rule). <a href="#collected.abnf" title="Collected ABNF">Appendix C</a> shows the collected ABNF, with the list rule expanded. |
---|
649 | </p> |
---|
650 | <p id="rfc.section.1.2.p.2">The following core rules are included by reference, as defined in <a href="#RFC5234" id="rfc.xref.RFC5234.2"><cite title="Augmented BNF for Syntax Specifications: ABNF">[RFC5234]</cite></a>, <a href="https://tools.ietf.org/html/rfc5234#appendix-B.1">Appendix B.1</a>: ALPHA (letters), CR (carriage return), CRLF (CR LF), CTL (controls), DIGIT (decimal 0-9), DQUOTE (double quote), HEXDIG |
---|
651 | (hexadecimal 0-9/A-F/a-f), LF (line feed), OCTET (any 8-bit sequence of data), SP (space), VCHAR (any visible USASCII character), |
---|
652 | and WSP (whitespace). |
---|
653 | </p> |
---|
654 | <div id="core.rules"> |
---|
655 | <h3 id="rfc.section.1.2.1"><a href="#rfc.section.1.2.1">1.2.1</a> <a href="#core.rules">Core Rules</a></h3> |
---|
656 | <p id="rfc.section.1.2.1.p.1">The core rules below are defined in <a href="#Part1" id="rfc.xref.Part1.2"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>: |
---|
657 | </p> |
---|
658 | <div id="rfc.figure.u.1"></div><pre class="inline"> <a href="#core.rules" class="smpl">OWS</a> = <OWS, defined in <a href="#Part1" id="rfc.xref.Part1.3"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>, <a href="p1-messaging.html#basic.rules" title="Basic Rules">Section 1.2.2</a>> |
---|
659 | <a href="#core.rules" class="smpl">token</a> = <token, defined in <a href="#Part1" id="rfc.xref.Part1.4"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>, <a href="p1-messaging.html#field.rules" title="Common Field ABNF Rules">Section 3.2.3</a>> |
---|
660 | <a href="#core.rules" class="smpl">HTTP-date</a> = <HTTP-date, defined in <a href="#Part1" id="rfc.xref.Part1.5"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>, <a href="p1-messaging.html#date.time.formats.full.date" title="Date/Time Formats: Full Date">Section 6.1</a>> |
---|
661 | </pre></div> |
---|
662 | <div id="abnf.dependencies"> |
---|
663 | <h3 id="rfc.section.1.2.2"><a href="#rfc.section.1.2.2">1.2.2</a> <a href="#abnf.dependencies">ABNF Rules defined in other Parts of the Specification</a></h3> |
---|
664 | <p id="rfc.section.1.2.2.p.1">The ABNF rules below are defined in other parts:</p> |
---|
665 | <div id="rfc.figure.u.2"></div><pre class="inline"> <a href="#abnf.dependencies" class="smpl">entity-tag</a> = <entity-tag, defined in <a href="#Part4" id="rfc.xref.Part4.1"><cite title="HTTP/1.1, part 4: Conditional Requests">[Part4]</cite></a>, <a href="p4-conditional.html#header.etag" title="ETag">Section 2.3</a>> |
---|
666 | </pre></div> |
---|
667 | </div> |
---|
668 | </div> |
---|
669 | <div id="range.units"> |
---|
670 | <h1 id="rfc.section.2"><a href="#rfc.section.2">2.</a> <a href="#range.units">Range Units</a></h1> |
---|
671 | <p id="rfc.section.2.p.1">HTTP/1.1 allows a client to request that only part (a range) of the representation be included within the response. HTTP/1.1 |
---|
672 | uses range units in the Range (<a href="#header.range" id="rfc.xref.header.range.1" title="Range">Section 5.4</a>) and Content-Range (<a href="#header.content-range" id="rfc.xref.header.content-range.1" title="Content-Range">Section 5.2</a>) header fields. A representation can be broken down into subranges according to various structural units. |
---|
673 | </p> |
---|
674 | <div id="rfc.figure.u.3"></div><pre class="inline"><span id="rfc.iref.g.1"></span><span id="rfc.iref.g.2"></span><span id="rfc.iref.g.3"></span> <a href="#range.units" class="smpl">range-unit</a> = <a href="#range.units" class="smpl">bytes-unit</a> / <a href="#range.units" class="smpl">other-range-unit</a> |
---|
675 | <a href="#range.units" class="smpl">bytes-unit</a> = "bytes" |
---|
676 | <a href="#range.units" class="smpl">other-range-unit</a> = <a href="#core.rules" class="smpl">token</a> |
---|
677 | </pre><p id="rfc.section.2.p.3">HTTP/1.1 has been designed to allow implementations of applications that do not depend on knowledge of ranges. The only range |
---|
678 | unit defined by HTTP/1.1 is "bytes". Additional specifiers can be defined as described in <a href="#range.specifier.registry" title="Range Specifier Registry">Section 2.1</a>. |
---|
679 | </p> |
---|
680 | <p id="rfc.section.2.p.4">If a range unit is not understood in a request, a server <em class="bcp14">MUST</em> ignore the whole Range header field (<a href="#header.range" id="rfc.xref.header.range.2" title="Range">Section 5.4</a>). If a range unit is not understood in a response, an intermediary <em class="bcp14">SHOULD</em> pass the response to the client; a client <em class="bcp14">MUST</em> fail. |
---|
681 | </p> |
---|
682 | <div id="range.specifier.registry"> |
---|
683 | <h2 id="rfc.section.2.1"><a href="#rfc.section.2.1">2.1</a> <a href="#range.specifier.registry">Range Specifier Registry</a></h2> |
---|
684 | <p id="rfc.section.2.1.p.1">The HTTP Range Specifier Registry defines the name space for the range specifier names.</p> |
---|
685 | <p id="rfc.section.2.1.p.2">Registrations <em class="bcp14">MUST</em> include the following fields: |
---|
686 | </p> |
---|
687 | <ul> |
---|
688 | <li>Name</li> |
---|
689 | <li>Description</li> |
---|
690 | <li>Pointer to specification text</li> |
---|
691 | </ul> |
---|
692 | <p id="rfc.section.2.1.p.3">Values to be added to this name space are subject to IETF review (<a href="#RFC5226" id="rfc.xref.RFC5226.1"><cite title="Guidelines for Writing an IANA Considerations Section in RFCs">[RFC5226]</cite></a>, <a href="https://tools.ietf.org/html/rfc5226#section-4.1">Section 4.1</a>). |
---|
693 | </p> |
---|
694 | <p id="rfc.section.2.1.p.4">The registry itself is maintained at <<a href="http://www.iana.org/assignments/http-range-specifiers">http://www.iana.org/assignments/http-range-specifiers</a>>. |
---|
695 | </p> |
---|
696 | </div> |
---|
697 | </div> |
---|
698 | <div id="status.code.definitions"> |
---|
699 | <h1 id="rfc.section.3"><a href="#rfc.section.3">3.</a> <a href="#status.code.definitions">Status Code Definitions</a></h1> |
---|
700 | <div id="status.206"> |
---|
701 | <div id="rfc.iref.2.1"></div> |
---|
702 | <div id="rfc.iref.s.1"></div> |
---|
703 | <h2 id="rfc.section.3.1"><a href="#rfc.section.3.1">3.1</a> <a href="#status.206">206 Partial Content</a></h2> |
---|
704 | <p id="rfc.section.3.1.p.1">The server has fulfilled the partial GET request for the resource. The request <em class="bcp14">MUST</em> have included a Range header field (<a href="#header.range" id="rfc.xref.header.range.3" title="Range">Section 5.4</a>) indicating the desired range, and <em class="bcp14">MAY</em> have included an If-Range header field (<a href="#header.if-range" id="rfc.xref.header.if-range.1" title="If-Range">Section 5.3</a>) to make the request conditional. |
---|
705 | </p> |
---|
706 | <p id="rfc.section.3.1.p.2">The response <em class="bcp14">MUST</em> include the following header fields: |
---|
707 | </p> |
---|
708 | <ul> |
---|
709 | <li>Either a Content-Range header field (<a href="#header.content-range" id="rfc.xref.header.content-range.2" title="Content-Range">Section 5.2</a>) indicating the range included with this response, or a multipart/byteranges Content-Type including Content-Range fields |
---|
710 | for each part. If a Content-Length header field is present in the response, its value <em class="bcp14">MUST</em> match the actual number of octets transmitted in the message-body. |
---|
711 | </li> |
---|
712 | <li>Date</li> |
---|
713 | <li>Cache-Control, ETag, Expires, Content-Location, Last-Modified, and/or Vary, if the header field would have been sent in a |
---|
714 | 200 response to the same request |
---|
715 | </li> |
---|
716 | </ul> |
---|
717 | <p id="rfc.section.3.1.p.3">If the 206 response is the result of an If-Range request, the response <em class="bcp14">SHOULD NOT</em> include other representation header fields. Otherwise, the response <em class="bcp14">MUST</em> include all of the representation header fields that would have been returned with a 200 (OK) response to the same request. |
---|
718 | </p> |
---|
719 | </div> |
---|
720 | <div id="status.416"> |
---|
721 | <div id="rfc.iref.4.1"></div> |
---|
722 | <div id="rfc.iref.s.2"></div> |
---|
723 | <h2 id="rfc.section.3.2"><a href="#rfc.section.3.2">3.2</a> <a href="#status.416">416 Requested Range Not Satisfiable</a></h2> |
---|
724 | <p id="rfc.section.3.2.p.1">A server <em class="bcp14">SHOULD</em> return a response with this status code if a request included a Range header field (<a href="#header.range" id="rfc.xref.header.range.4" title="Range">Section 5.4</a>), and none of the ranges-specifier values in this field overlap the current extent of the selected resource, and the request |
---|
725 | did not include an If-Range header field (<a href="#header.if-range" id="rfc.xref.header.if-range.2" title="If-Range">Section 5.3</a>). (For byte-ranges, this means that the first-byte-pos of all of the byte-range-spec values were greater than the current |
---|
726 | length of the selected resource.) |
---|
727 | </p> |
---|
728 | <p id="rfc.section.3.2.p.2">When this status code is returned for a byte-range request, the response <em class="bcp14">SHOULD</em> include a Content-Range header field specifying the current length of the representation (see <a href="#header.content-range" id="rfc.xref.header.content-range.3" title="Content-Range">Section 5.2</a>). This response <em class="bcp14">MUST NOT</em> use the multipart/byteranges content-type. |
---|
729 | </p> |
---|
730 | </div> |
---|
731 | </div> |
---|
732 | <div id="combining.byte.ranges"> |
---|
733 | <h1 id="rfc.section.4"><a href="#rfc.section.4">4.</a> <a href="#combining.byte.ranges">Combining Ranges</a></h1> |
---|
734 | <p id="rfc.section.4.p.1">A response might transfer only a subrange of a representation if the connection closed prematurely or if the request used |
---|
735 | one or more Range specifications. After several such transfers, a client might have received several ranges of the same representation. |
---|
736 | These ranges can only be safely combined if they all have in common the same strong validator, where "strong validator" is |
---|
737 | defined to be either an entity-tag that is not marked as weak (<a href="p4-conditional.html#header.etag" title="ETag">Section 2.3</a> of <a href="#Part4" id="rfc.xref.Part4.2"><cite title="HTTP/1.1, part 4: Conditional Requests">[Part4]</cite></a>) or, if no entity-tag is provided, a Last-Modified value that is strong in the sense defined by <a href="p4-conditional.html#lastmod.comparison" title="Comparison">Section 2.2.2</a> of <a href="#Part4" id="rfc.xref.Part4.3"><cite title="HTTP/1.1, part 4: Conditional Requests">[Part4]</cite></a>. |
---|
738 | </p> |
---|
739 | <p id="rfc.section.4.p.2">When a client receives an incomplete 200 (OK) or 206 (Partial Content) response and already has one or more stored responses |
---|
740 | for the same method and effective request URI, all of the stored responses with the same strong validator <em class="bcp14">MAY</em> be combined with the partial content in this new response. If none of the stored responses contain the same strong validator, |
---|
741 | then this new response corresponds to a new representation and <em class="bcp14">MUST NOT</em> be combined with the existing stored responses. |
---|
742 | </p> |
---|
743 | <p id="rfc.section.4.p.3">If the new response is an incomplete 200 (OK) response, then the header fields of that new response are used for any combined |
---|
744 | response and replace those of the matching stored responses. |
---|
745 | </p> |
---|
746 | <p id="rfc.section.4.p.4">If the new response is a 206 (Partial Content) response and at least one of the matching stored responses is a 200 (OK), then |
---|
747 | the combined response header fields consist of the most recent 200 response's header fields. If all of the matching stored |
---|
748 | responses are 206 responses, then the stored response with the most header fields is used as the source of header fields for |
---|
749 | the combined response, except that the client <em class="bcp14">MUST</em> use other header fields provided in the new response, aside from Content-Range, to replace all instances of the corresponding |
---|
750 | header fields in the stored response. |
---|
751 | </p> |
---|
752 | <p id="rfc.section.4.p.5">The combined response message-body consists of the union of partial content ranges in the new response and each of the selected |
---|
753 | responses. If the union consists of the entire range of the representation, then the combined response <em class="bcp14">MUST</em> be recorded as a complete 200 (OK) response with a Content-Length header field that reflects the complete length. Otherwise, |
---|
754 | the combined response(s) <em class="bcp14">MUST</em> include a Content-Range header field describing the included range(s) and be recorded as incomplete. If the union consists |
---|
755 | of a discontinuous range of the representation, then the client <em class="bcp14">MAY</em> store it as either a multipart range response or as multiple 206 responses with one continuous range each. |
---|
756 | </p> |
---|
757 | </div> |
---|
758 | <div id="header.fields"> |
---|
759 | <h1 id="rfc.section.5"><a href="#rfc.section.5">5.</a> <a href="#header.fields">Header Field Definitions</a></h1> |
---|
760 | <p id="rfc.section.5.p.1">This section defines the syntax and semantics of HTTP/1.1 header fields related to range requests and partial responses.</p> |
---|
761 | <div id="header.accept-ranges"> |
---|
762 | <div id="rfc.iref.a.1"></div> |
---|
763 | <div id="rfc.iref.h.1"></div> |
---|
764 | <h2 id="rfc.section.5.1"><a href="#rfc.section.5.1">5.1</a> <a href="#header.accept-ranges">Accept-Ranges</a></h2> |
---|
765 | <p id="rfc.section.5.1.p.1">The "Accept-Ranges" header field allows a resource to indicate its acceptance of range requests.</p> |
---|
766 | <div id="rfc.figure.u.4"></div><pre class="inline"><span id="rfc.iref.g.4"></span><span id="rfc.iref.g.5"></span> <a href="#header.accept-ranges" class="smpl">Accept-Ranges</a> = <a href="#header.accept-ranges" class="smpl">acceptable-ranges</a> |
---|
767 | <a href="#header.accept-ranges" class="smpl">acceptable-ranges</a> = 1#<a href="#range.units" class="smpl">range-unit</a> / "none" |
---|
768 | </pre><p id="rfc.section.5.1.p.3">Origin servers that accept byte-range requests <em class="bcp14">MAY</em> send |
---|
769 | </p> |
---|
770 | <div id="rfc.figure.u.5"></div><pre class="text"> Accept-Ranges: bytes |
---|
771 | </pre><p id="rfc.section.5.1.p.5">but are not required to do so. Clients <em class="bcp14">MAY</em> generate range requests without having received this header field for the resource involved. Range units are defined in <a href="#range.units" title="Range Units">Section 2</a>. |
---|
772 | </p> |
---|
773 | <p id="rfc.section.5.1.p.6">Servers that do not accept any kind of range request for a resource <em class="bcp14">MAY</em> send |
---|
774 | </p> |
---|
775 | <div id="rfc.figure.u.6"></div><pre class="text"> Accept-Ranges: none |
---|
776 | </pre><p id="rfc.section.5.1.p.8">to advise the client not to attempt a range request.</p> |
---|
777 | </div> |
---|
778 | <div id="header.content-range"> |
---|
779 | <div id="rfc.iref.c.1"></div> |
---|
780 | <div id="rfc.iref.h.2"></div> |
---|
781 | <h2 id="rfc.section.5.2"><a href="#rfc.section.5.2">5.2</a> <a href="#header.content-range">Content-Range</a></h2> |
---|
782 | <p id="rfc.section.5.2.p.1">The "Content-Range" header field is sent with a partial representation to specify where in the full representation the payload |
---|
783 | body is intended to be applied. |
---|
784 | </p> |
---|
785 | <p id="rfc.section.5.2.p.2">Range units are defined in <a href="#range.units" title="Range Units">Section 2</a>. |
---|
786 | </p> |
---|
787 | <div id="rfc.figure.u.7"></div><pre class="inline"><span id="rfc.iref.g.6"></span><span id="rfc.iref.g.7"></span><span id="rfc.iref.g.8"></span><span id="rfc.iref.g.9"></span> <a href="#header.content-range" class="smpl">Content-Range</a> = <a href="#header.content-range" class="smpl">byte-content-range-spec</a> |
---|
788 | / <a href="#header.content-range" class="smpl">other-content-range-spec</a> |
---|
789 | |
---|
790 | <a href="#header.content-range" class="smpl">byte-content-range-spec</a> = <a href="#range.units" class="smpl">bytes-unit</a> <a href="#notation" class="smpl">SP</a> |
---|
791 | <a href="#header.content-range" class="smpl">byte-range-resp-spec</a> "/" |
---|
792 | ( <a href="#header.content-range" class="smpl">instance-length</a> / "*" ) |
---|
793 | |
---|
794 | <a href="#header.content-range" class="smpl">byte-range-resp-spec</a> = (<a href="#rule.ranges-specifier" class="smpl">first-byte-pos</a> "-" <a href="#rule.ranges-specifier" class="smpl">last-byte-pos</a>) |
---|
795 | / "*" |
---|
796 | |
---|
797 | <a href="#header.content-range" class="smpl">instance-length</a> = 1*<a href="#notation" class="smpl">DIGIT</a> |
---|
798 | |
---|
799 | <a href="#header.content-range" class="smpl">other-content-range-spec</a> = <a href="#range.units" class="smpl">other-range-unit</a> <a href="#notation" class="smpl">SP</a> |
---|
800 | <a href="#header.content-range" class="smpl">other-range-resp-spec</a> |
---|
801 | <a href="#header.content-range" class="smpl">other-range-resp-spec</a> = *<a href="#notation" class="smpl">CHAR</a> |
---|
802 | </pre><p id="rfc.section.5.2.p.4">The header field <em class="bcp14">SHOULD</em> indicate the total length of the full representation, unless this length is unknown or difficult to determine. The asterisk |
---|
803 | "*" character means that the instance-length is unknown at the time when the response was generated. |
---|
804 | </p> |
---|
805 | <p id="rfc.section.5.2.p.5">Unlike byte-ranges-specifier values (see <a href="#byte.ranges" title="Byte Ranges">Section 5.4.1</a>), a byte-range-resp-spec <em class="bcp14">MUST</em> only specify one range, and <em class="bcp14">MUST</em> contain absolute byte positions for both the first and last byte of the range. |
---|
806 | </p> |
---|
807 | <p id="rfc.section.5.2.p.6">A byte-content-range-spec with a byte-range-resp-spec whose last-byte-pos value is less than its first-byte-pos value, or |
---|
808 | whose instance-length value is less than or equal to its last-byte-pos value, is invalid. The recipient of an invalid byte-content-range-spec <em class="bcp14">MUST</em> ignore it and any content transferred along with it. |
---|
809 | </p> |
---|
810 | <p id="rfc.section.5.2.p.7">In the case of a byte range request: A server sending a response with status code 416 (Requested range not satisfiable) <em class="bcp14">SHOULD</em> include a Content-Range field with a byte-range-resp-spec of "*". The instance-length specifies the current length of the |
---|
811 | selected resource. A response with status code 206 (Partial Content) <em class="bcp14">MUST NOT</em> include a Content-Range field with a byte-range-resp-spec of "*". |
---|
812 | </p> |
---|
813 | <p id="rfc.section.5.2.p.8">Examples of byte-content-range-spec values, assuming that the representation contains a total of 1234 bytes: </p> |
---|
814 | <ul> |
---|
815 | <li>The first 500 bytes: <span id="rfc.figure.u.8"></span><pre class="text"> bytes 0-499/1234 |
---|
816 | </pre> </li> |
---|
817 | <li>The second 500 bytes: <span id="rfc.figure.u.9"></span><pre class="text"> bytes 500-999/1234 |
---|
818 | </pre> </li> |
---|
819 | <li>All except for the first 500 bytes: <span id="rfc.figure.u.10"></span><pre class="text"> bytes 500-1233/1234 |
---|
820 | </pre> </li> |
---|
821 | <li>The last 500 bytes: <span id="rfc.figure.u.11"></span><pre class="text"> bytes 734-1233/1234 |
---|
822 | </pre> </li> |
---|
823 | </ul> |
---|
824 | <p id="rfc.section.5.2.p.9">When an HTTP message includes the content of a single range (for example, a response to a request for a single range, or to |
---|
825 | a request for a set of ranges that overlap without any holes), this content is transmitted with a Content-Range header field, |
---|
826 | and a Content-Length header field showing the number of bytes actually transferred. For example, |
---|
827 | </p> |
---|
828 | <div id="rfc.figure.u.12"></div><pre class="text"> HTTP/1.1 206 Partial Content |
---|
829 | Date: Wed, 15 Nov 1995 06:25:24 GMT |
---|
830 | Last-Modified: Wed, 15 Nov 1995 04:58:08 GMT |
---|
831 | Content-Range: bytes 21010-47021/47022 |
---|
832 | Content-Length: 26012 |
---|
833 | Content-Type: image/gif |
---|
834 | </pre><p id="rfc.section.5.2.p.11">When an HTTP message includes the content of multiple ranges (for example, a response to a request for multiple non-overlapping |
---|
835 | ranges), these are transmitted as a multipart message. The multipart media type used for this purpose is "multipart/byteranges" |
---|
836 | as defined in <a href="#internet.media.type.multipart.byteranges" title="Internet Media Type multipart/byteranges">Appendix A</a>. |
---|
837 | </p> |
---|
838 | <p id="rfc.section.5.2.p.12">A response to a request for a single range <em class="bcp14">MUST NOT</em> be sent using the multipart/byteranges media type. A response to a request for multiple ranges, whose result is a single range, <em class="bcp14">MAY</em> be sent as a multipart/byteranges media type with one part. A client that cannot decode a multipart/byteranges message <em class="bcp14">MUST NOT</em> ask for multiple ranges in a single request. |
---|
839 | </p> |
---|
840 | <p id="rfc.section.5.2.p.13">When a client requests multiple ranges in one request, the server <em class="bcp14">SHOULD</em> return them in the order that they appeared in the request. |
---|
841 | </p> |
---|
842 | <p id="rfc.section.5.2.p.14">If the server ignores a byte-range-spec because it is syntactically invalid, the server <em class="bcp14">SHOULD</em> treat the request as if the invalid Range header field did not exist. (Normally, this means return a 200 response containing |
---|
843 | the full representation). |
---|
844 | </p> |
---|
845 | <p id="rfc.section.5.2.p.15">If the server receives a request (other than one including an If-Range header field) with an unsatisfiable Range header field |
---|
846 | (that is, all of whose byte-range-spec values have a first-byte-pos value greater than the current length of the selected |
---|
847 | resource), it <em class="bcp14">SHOULD</em> return a response code of 416 (Requested range not satisfiable) (<a href="#status.416" id="rfc.xref.status.416.1" title="416 Requested Range Not Satisfiable">Section 3.2</a>). |
---|
848 | </p> |
---|
849 | <div class="note" id="rfc.section.5.2.p.16"> |
---|
850 | <p><b>Note:</b> Clients cannot depend on servers to send a 416 (Requested range not satisfiable) response instead of a 200 (OK) response for |
---|
851 | an unsatisfiable Range header field, since not all servers implement this header field. |
---|
852 | </p> |
---|
853 | </div> |
---|
854 | </div> |
---|
855 | <div id="header.if-range"> |
---|
856 | <div id="rfc.iref.i.1"></div> |
---|
857 | <div id="rfc.iref.h.3"></div> |
---|
858 | <h2 id="rfc.section.5.3"><a href="#rfc.section.5.3">5.3</a> <a href="#header.if-range">If-Range</a></h2> |
---|
859 | <p id="rfc.section.5.3.p.1">If a client has a partial copy of a representation and wishes to have an up-to-date copy of the entire representation, it |
---|
860 | could use the Range header field with a conditional GET (using either or both of If-Unmodified-Since and If-Match.) However, |
---|
861 | if the condition fails because the representation has been modified, the client would then have to make a second request to |
---|
862 | obtain the entire current representation. |
---|
863 | </p> |
---|
864 | <p id="rfc.section.5.3.p.2">The "If-Range" header field allows a client to "short-circuit" the second request. Informally, its meaning is "if the representation |
---|
865 | is unchanged, send me the part(s) that I am missing; otherwise, send me the entire new representation". |
---|
866 | </p> |
---|
867 | <div id="rfc.figure.u.13"></div><pre class="inline"><span id="rfc.iref.g.10"></span> <a href="#header.if-range" class="smpl">If-Range</a> = <a href="#abnf.dependencies" class="smpl">entity-tag</a> / <a href="#core.rules" class="smpl">HTTP-date</a> |
---|
868 | </pre><p id="rfc.section.5.3.p.4">Clients <em class="bcp14">MUST NOT</em> use an entity-tag marked as weak in an If-Range field value and <em class="bcp14">MUST NOT</em> use a Last-Modified date in an If-Range field value unless it has no entity-tag for the representation and the Last-Modified |
---|
869 | date it does have for the representation is strong in the sense defined by <a href="p4-conditional.html#lastmod.comparison" title="Comparison">Section 2.2.2</a> of <a href="#Part4" id="rfc.xref.Part4.4"><cite title="HTTP/1.1, part 4: Conditional Requests">[Part4]</cite></a>. |
---|
870 | </p> |
---|
871 | <p id="rfc.section.5.3.p.5">A server that evaluates a conditional range request that is applicable to one of its representations <em class="bcp14">MUST</em> evaluate the condition as false if the entity-tag used as a validator is marked as weak or, when an HTTP-date is used as the |
---|
872 | validator, if the date value is not strong in the sense defined by <a href="p4-conditional.html#lastmod.comparison" title="Comparison">Section 2.2.2</a> of <a href="#Part4" id="rfc.xref.Part4.5"><cite title="HTTP/1.1, part 4: Conditional Requests">[Part4]</cite></a>. (A server can distinguish between a valid HTTP-date and any form of entity-tag by examining the first two characters.) |
---|
873 | </p> |
---|
874 | <p id="rfc.section.5.3.p.6">The If-Range header field <em class="bcp14">SHOULD</em> only be sent by clients together with a Range header field. The If-Range header field <em class="bcp14">MUST</em> be ignored if it is received in a request that does not include a Range header field. The If-Range header field <em class="bcp14">MUST</em> be ignored by a server that does not support the sub-range operation. |
---|
875 | </p> |
---|
876 | <p id="rfc.section.5.3.p.7">If the validator given in the If-Range header field matches the current validator for the selected representation of the target |
---|
877 | resource, then the server <em class="bcp14">SHOULD</em> send the specified sub-range of the representation using a 206 (Partial Content) response. If the validator does not match, |
---|
878 | then the server <em class="bcp14">SHOULD</em> send the entire representation using a 200 (OK) response. |
---|
879 | </p> |
---|
880 | </div> |
---|
881 | <div id="header.range"> |
---|
882 | <div id="rfc.iref.r.1"></div> |
---|
883 | <div id="rfc.iref.h.4"></div> |
---|
884 | <h2 id="rfc.section.5.4"><a href="#rfc.section.5.4">5.4</a> <a href="#header.range">Range</a></h2> |
---|
885 | <div id="byte.ranges"> |
---|
886 | <h3 id="rfc.section.5.4.1"><a href="#rfc.section.5.4.1">5.4.1</a> <a href="#byte.ranges">Byte Ranges</a></h3> |
---|
887 | <p id="rfc.section.5.4.1.p.1">Since all HTTP representations are transferred as sequences of bytes, the concept of a byte range is meaningful for any HTTP |
---|
888 | representation. (However, not all clients and servers need to support byte-range operations.) |
---|
889 | </p> |
---|
890 | <p id="rfc.section.5.4.1.p.2">Byte range specifications in HTTP apply to the sequence of bytes in the representation body (not necessarily the same as the |
---|
891 | message-body). |
---|
892 | </p> |
---|
893 | <div id="rule.ranges-specifier"> |
---|
894 | <p id="rfc.section.5.4.1.p.3"> A byte range operation <em class="bcp14">MAY</em> specify a single range of bytes, or a set of ranges within a single representation. |
---|
895 | </p> |
---|
896 | </div> |
---|
897 | <div id="rfc.figure.u.14"></div><pre class="inline"><span id="rfc.iref.g.11"></span><span id="rfc.iref.g.12"></span><span id="rfc.iref.g.13"></span><span id="rfc.iref.g.14"></span><span id="rfc.iref.g.15"></span><span id="rfc.iref.g.16"></span> <a href="#rule.ranges-specifier" class="smpl">byte-ranges-specifier</a> = <a href="#range.units" class="smpl">bytes-unit</a> "=" <a href="#rule.ranges-specifier" class="smpl">byte-range-set</a> |
---|
898 | <a href="#rule.ranges-specifier" class="smpl">byte-range-set</a> = 1#( <a href="#rule.ranges-specifier" class="smpl">byte-range-spec</a> / <a href="#rule.ranges-specifier" class="smpl">suffix-byte-range-spec</a> ) |
---|
899 | <a href="#rule.ranges-specifier" class="smpl">byte-range-spec</a> = <a href="#rule.ranges-specifier" class="smpl">first-byte-pos</a> "-" [ <a href="#rule.ranges-specifier" class="smpl">last-byte-pos</a> ] |
---|
900 | <a href="#rule.ranges-specifier" class="smpl">first-byte-pos</a> = 1*<a href="#notation" class="smpl">DIGIT</a> |
---|
901 | <a href="#rule.ranges-specifier" class="smpl">last-byte-pos</a> = 1*<a href="#notation" class="smpl">DIGIT</a> |
---|
902 | </pre><p id="rfc.section.5.4.1.p.5">The first-byte-pos value in a byte-range-spec gives the byte-offset of the first byte in a range. The last-byte-pos value |
---|
903 | gives the byte-offset of the last byte in the range; that is, the byte positions specified are inclusive. Byte offsets start |
---|
904 | at zero. |
---|
905 | </p> |
---|
906 | <p id="rfc.section.5.4.1.p.6">If the last-byte-pos value is present, it <em class="bcp14">MUST</em> be greater than or equal to the first-byte-pos in that byte-range-spec, or the byte-range-spec is syntactically invalid. The |
---|
907 | recipient of a byte-range-set that includes one or more syntactically invalid byte-range-spec values <em class="bcp14">MUST</em> ignore the header field that includes that byte-range-set. |
---|
908 | </p> |
---|
909 | <p id="rfc.section.5.4.1.p.7">If the last-byte-pos value is absent, or if the value is greater than or equal to the current length of the representation |
---|
910 | body, last-byte-pos is taken to be equal to one less than the current length of the representation in bytes. |
---|
911 | </p> |
---|
912 | <p id="rfc.section.5.4.1.p.8">By its choice of last-byte-pos, a client can limit the number of bytes retrieved without knowing the size of the representation.</p> |
---|
913 | <div id="rfc.figure.u.15"></div><pre class="inline"><span id="rfc.iref.g.17"></span><span id="rfc.iref.g.18"></span> <a href="#rule.ranges-specifier" class="smpl">suffix-byte-range-spec</a> = "-" <a href="#rule.ranges-specifier" class="smpl">suffix-length</a> |
---|
914 | <a href="#rule.ranges-specifier" class="smpl">suffix-length</a> = 1*<a href="#notation" class="smpl">DIGIT</a> |
---|
915 | </pre><p id="rfc.section.5.4.1.p.10">A suffix-byte-range-spec is used to specify the suffix of the representation body, of a length given by the suffix-length |
---|
916 | value. (That is, this form specifies the last N bytes of a representation.) If the representation is shorter than the specified |
---|
917 | suffix-length, the entire representation is used. |
---|
918 | </p> |
---|
919 | <p id="rfc.section.5.4.1.p.11">If a syntactically valid byte-range-set includes at least one byte-range-spec whose first-byte-pos is less than the current |
---|
920 | length of the representation, or at least one suffix-byte-range-spec with a non-zero suffix-length, then the byte-range-set |
---|
921 | is satisfiable. Otherwise, the byte-range-set is unsatisfiable. If the byte-range-set is unsatisfiable, the server <em class="bcp14">SHOULD</em> return a response with a 416 (Requested range not satisfiable) status code. Otherwise, the server <em class="bcp14">SHOULD</em> return a response with a 206 (Partial Content) status code containing the satisfiable ranges of the representation. |
---|
922 | </p> |
---|
923 | <p id="rfc.section.5.4.1.p.12">Examples of byte-ranges-specifier values (assuming a representation of length 10000): </p> |
---|
924 | <ul> |
---|
925 | <li>The first 500 bytes (byte offsets 0-499, inclusive): <span id="rfc.figure.u.16"></span><pre class="text"> bytes=0-499 |
---|
926 | </pre> </li> |
---|
927 | <li>The second 500 bytes (byte offsets 500-999, inclusive): <span id="rfc.figure.u.17"></span><pre class="text"> bytes=500-999 |
---|
928 | </pre> </li> |
---|
929 | <li>The final 500 bytes (byte offsets 9500-9999, inclusive): <span id="rfc.figure.u.18"></span><pre class="text"> bytes=-500 |
---|
930 | </pre> Or: <span id="rfc.figure.u.19"></span><pre class="text"> bytes=9500- |
---|
931 | </pre> </li> |
---|
932 | <li>The first and last bytes only (bytes 0 and 9999): <span id="rfc.figure.u.20"></span><pre class="text"> bytes=0-0,-1 |
---|
933 | </pre> </li> |
---|
934 | <li>Several legal but not canonical specifications of the second 500 bytes (byte offsets 500-999, inclusive): <span id="rfc.figure.u.21"></span><pre class="text"> bytes=500-600,601-999 |
---|
935 | bytes=500-700,601-999 |
---|
936 | </pre> </li> |
---|
937 | </ul> |
---|
938 | </div> |
---|
939 | <div id="range.retrieval.requests"> |
---|
940 | <h3 id="rfc.section.5.4.2"><a href="#rfc.section.5.4.2">5.4.2</a> <a href="#range.retrieval.requests">Range Retrieval Requests</a></h3> |
---|
941 | <p id="rfc.section.5.4.2.p.1">The "Range" header field defines the GET method (conditional or not) to request one or more sub-ranges of the response representation |
---|
942 | body, instead of the entire representation body. |
---|
943 | </p> |
---|
944 | <div id="rfc.figure.u.22"></div><pre class="inline"><span id="rfc.iref.g.19"></span> <a href="#range.retrieval.requests" class="smpl">Range</a> = <a href="#rule.ranges-specifier" class="smpl">byte-ranges-specifier</a> / <a href="#range.retrieval.requests" class="smpl">other-ranges-specifier</a> |
---|
945 | <a href="#range.retrieval.requests" class="smpl">other-ranges-specifier</a> = <a href="#range.units" class="smpl">other-range-unit</a> "=" <a href="#range.retrieval.requests" class="smpl">other-range-set</a> |
---|
946 | <a href="#range.retrieval.requests" class="smpl">other-range-set</a> = 1*<a href="#notation" class="smpl">CHAR</a> |
---|
947 | </pre><p id="rfc.section.5.4.2.p.3">A server <em class="bcp14">MAY</em> ignore the Range header field. However, origin servers and intermediate caches ought to support byte ranges when possible, |
---|
948 | since Range supports efficient recovery from partially failed transfers, and supports efficient partial retrieval of large |
---|
949 | representations. |
---|
950 | </p> |
---|
951 | <p id="rfc.section.5.4.2.p.4">If the server supports the Range header field and the specified range or ranges are appropriate for the representation: </p> |
---|
952 | <ul> |
---|
953 | <li>The presence of a Range header field in an unconditional GET modifies what is returned if the GET is otherwise successful. |
---|
954 | In other words, the response carries a status code of 206 (Partial Content) instead of 200 (OK). |
---|
955 | </li> |
---|
956 | <li>The presence of a Range header field in a conditional GET (a request using one or both of If-Modified-Since and If-None-Match, |
---|
957 | or one or both of If-Unmodified-Since and If-Match) modifies what is returned if the GET is otherwise successful and the condition |
---|
958 | is true. It does not affect the 304 (Not Modified) response returned if the conditional is false. |
---|
959 | </li> |
---|
960 | </ul> |
---|
961 | <p id="rfc.section.5.4.2.p.5">In some cases, it might be more appropriate to use the If-Range header field (see <a href="#header.if-range" id="rfc.xref.header.if-range.3" title="If-Range">Section 5.3</a>) in addition to the Range header field. |
---|
962 | </p> |
---|
963 | <p id="rfc.section.5.4.2.p.6">If a proxy that supports ranges receives a Range request, forwards the request to an inbound server, and receives an entire |
---|
964 | representation in reply, it <em class="bcp14">MAY</em> only return the requested range to its client. |
---|
965 | </p> |
---|
966 | </div> |
---|
967 | </div> |
---|
968 | </div> |
---|
969 | <div id="IANA.considerations"> |
---|
970 | <h1 id="rfc.section.6"><a href="#rfc.section.6">6.</a> <a href="#IANA.considerations">IANA Considerations</a></h1> |
---|
971 | <div id="status.code.registration"> |
---|
972 | <h2 id="rfc.section.6.1"><a href="#rfc.section.6.1">6.1</a> <a href="#status.code.registration">Status Code Registration</a></h2> |
---|
973 | <p id="rfc.section.6.1.p.1">The HTTP Status Code Registry located at <<a href="http://www.iana.org/assignments/http-status-codes">http://www.iana.org/assignments/http-status-codes</a>> shall be updated with the registrations below: |
---|
974 | </p> |
---|
975 | <div id="rfc.table.1"> |
---|
976 | <div id="iana.status.code.registration.table"></div> |
---|
977 | <table class="tt full left" cellpadding="3" cellspacing="0"> |
---|
978 | <thead> |
---|
979 | <tr> |
---|
980 | <th>Value</th> |
---|
981 | <th>Description</th> |
---|
982 | <th>Reference</th> |
---|
983 | </tr> |
---|
984 | </thead> |
---|
985 | <tbody> |
---|
986 | <tr> |
---|
987 | <td class="left">206</td> |
---|
988 | <td class="left">Partial Content</td> |
---|
989 | <td class="left"><a href="#status.206" id="rfc.xref.status.206.1" title="206 Partial Content">Section 3.1</a> |
---|
990 | </td> |
---|
991 | </tr> |
---|
992 | <tr> |
---|
993 | <td class="left">416</td> |
---|
994 | <td class="left">Requested Range Not Satisfiable</td> |
---|
995 | <td class="left"><a href="#status.416" id="rfc.xref.status.416.2" title="416 Requested Range Not Satisfiable">Section 3.2</a> |
---|
996 | </td> |
---|
997 | </tr> |
---|
998 | </tbody> |
---|
999 | </table> |
---|
1000 | </div> |
---|
1001 | </div> |
---|
1002 | <div id="header.field.registration"> |
---|
1003 | <h2 id="rfc.section.6.2"><a href="#rfc.section.6.2">6.2</a> <a href="#header.field.registration">Header Field Registration</a></h2> |
---|
1004 | <p id="rfc.section.6.2.p.1">The Message Header Field Registry located at <<a href="http://www.iana.org/assignments/message-headers/message-header-index.html">http://www.iana.org/assignments/message-headers/message-header-index.html</a>> shall be updated with the permanent registrations below (see <a href="#RFC3864" id="rfc.xref.RFC3864.1"><cite title="Registration Procedures for Message Header Fields">[RFC3864]</cite></a>): |
---|
1005 | </p> |
---|
1006 | <div id="rfc.table.2"> |
---|
1007 | <div id="iana.header.registration.table"></div> |
---|
1008 | <table class="tt full left" cellpadding="3" cellspacing="0"> |
---|
1009 | <thead> |
---|
1010 | <tr> |
---|
1011 | <th>Header Field Name</th> |
---|
1012 | <th>Protocol</th> |
---|
1013 | <th>Status</th> |
---|
1014 | <th>Reference</th> |
---|
1015 | </tr> |
---|
1016 | </thead> |
---|
1017 | <tbody> |
---|
1018 | <tr> |
---|
1019 | <td class="left">Accept-Ranges</td> |
---|
1020 | <td class="left">http</td> |
---|
1021 | <td class="left">standard</td> |
---|
1022 | <td class="left"><a href="#header.accept-ranges" id="rfc.xref.header.accept-ranges.1" title="Accept-Ranges">Section 5.1</a> |
---|
1023 | </td> |
---|
1024 | </tr> |
---|
1025 | <tr> |
---|
1026 | <td class="left">Content-Range</td> |
---|
1027 | <td class="left">http</td> |
---|
1028 | <td class="left">standard</td> |
---|
1029 | <td class="left"><a href="#header.content-range" id="rfc.xref.header.content-range.4" title="Content-Range">Section 5.2</a> |
---|
1030 | </td> |
---|
1031 | </tr> |
---|
1032 | <tr> |
---|
1033 | <td class="left">If-Range</td> |
---|
1034 | <td class="left">http</td> |
---|
1035 | <td class="left">standard</td> |
---|
1036 | <td class="left"><a href="#header.if-range" id="rfc.xref.header.if-range.4" title="If-Range">Section 5.3</a> |
---|
1037 | </td> |
---|
1038 | </tr> |
---|
1039 | <tr> |
---|
1040 | <td class="left">Range</td> |
---|
1041 | <td class="left">http</td> |
---|
1042 | <td class="left">standard</td> |
---|
1043 | <td class="left"><a href="#header.range" id="rfc.xref.header.range.5" title="Range">Section 5.4</a> |
---|
1044 | </td> |
---|
1045 | </tr> |
---|
1046 | </tbody> |
---|
1047 | </table> |
---|
1048 | </div> |
---|
1049 | <p id="rfc.section.6.2.p.2">The change controller is: "IETF (iesg@ietf.org) - Internet Engineering Task Force".</p> |
---|
1050 | </div> |
---|
1051 | <div id="range.specifier.registration"> |
---|
1052 | <h2 id="rfc.section.6.3"><a href="#rfc.section.6.3">6.3</a> <a href="#range.specifier.registration">Range Specifier Registration</a></h2> |
---|
1053 | <p id="rfc.section.6.3.p.1">The registration procedure for HTTP Range Specifiers is defined by <a href="#range.specifier.registry" title="Range Specifier Registry">Section 2.1</a> of this document. |
---|
1054 | </p> |
---|
1055 | <p id="rfc.section.6.3.p.2">The HTTP Range Specifier Registry shall be created at <<a href="http://www.iana.org/assignments/http-range-specifiers">http://www.iana.org/assignments/http-range-specifiers</a>> and be populated with the registrations below: |
---|
1056 | </p> |
---|
1057 | <div id="rfc.table.3"> |
---|
1058 | <div id="iana.range.specifiers.table"></div> |
---|
1059 | <table class="tt full left" cellpadding="3" cellspacing="0"> |
---|
1060 | <thead> |
---|
1061 | <tr> |
---|
1062 | <th>Range Specifier Name</th> |
---|
1063 | <th>Description</th> |
---|
1064 | <th>Reference</th> |
---|
1065 | </tr> |
---|
1066 | </thead> |
---|
1067 | <tbody> |
---|
1068 | <tr> |
---|
1069 | <td class="left">bytes</td> |
---|
1070 | <td class="left">a range of octets</td> |
---|
1071 | <td class="left">(this specification)</td> |
---|
1072 | </tr> |
---|
1073 | </tbody> |
---|
1074 | </table> |
---|
1075 | </div> |
---|
1076 | <p id="rfc.section.6.3.p.3">The change controller is: "IETF (iesg@ietf.org) - Internet Engineering Task Force".</p> |
---|
1077 | </div> |
---|
1078 | </div> |
---|
1079 | <div id="security.considerations"> |
---|
1080 | <h1 id="rfc.section.7"><a href="#rfc.section.7">7.</a> <a href="#security.considerations">Security Considerations</a></h1> |
---|
1081 | <p id="rfc.section.7.p.1">This section is meant to inform application developers, information providers, and users of the security limitations in HTTP/1.1 |
---|
1082 | as described by this document. The discussion does not include definitive solutions to the problems revealed, though it does |
---|
1083 | make some suggestions for reducing security risks. |
---|
1084 | </p> |
---|
1085 | <div id="overlapping.ranges"> |
---|
1086 | <h2 id="rfc.section.7.1"><a href="#rfc.section.7.1">7.1</a> <a href="#overlapping.ranges">Overlapping Ranges</a></h2> |
---|
1087 | <p id="rfc.section.7.1.p.1">Range requests containing overlapping ranges may lead to the situation where a server is sending far more data than the size |
---|
1088 | of the complete resource representation. |
---|
1089 | </p> |
---|
1090 | </div> |
---|
1091 | </div> |
---|
1092 | <div id="acks"> |
---|
1093 | <h1 id="rfc.section.8"><a href="#rfc.section.8">8.</a> <a href="#acks">Acknowledgments</a></h1> |
---|
1094 | <p id="rfc.section.8.p.1">See <a href="p1-messaging.html#acks" title="Acknowledgments">Section 12</a> of <a href="#Part1" id="rfc.xref.Part1.6"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>. |
---|
1095 | </p> |
---|
1096 | </div> |
---|
1097 | <h1 id="rfc.references"><a id="rfc.section.9" href="#rfc.section.9">9.</a> References |
---|
1098 | </h1> |
---|
1099 | <h2 id="rfc.references.1"><a href="#rfc.section.9.1" id="rfc.section.9.1">9.1</a> Normative References |
---|
1100 | </h2> |
---|
1101 | <table> |
---|
1102 | <tr> |
---|
1103 | <td class="reference"><b id="Part1">[Part1]</b></td> |
---|
1104 | <td class="top"><a href="mailto:fielding@gbiv.com" title="Adobe Systems Incorporated">Fielding, R., Ed.</a>, <a href="mailto:jg@freedesktop.org" title="Alcatel-Lucent Bell Labs">Gettys, J.</a>, <a href="mailto:JeffMogul@acm.org" title="Hewlett-Packard Company">Mogul, J.</a>, <a href="mailto:henrikn@microsoft.com" title="Microsoft Corporation">Frystyk, H.</a>, <a href="mailto:LMM@acm.org" title="Adobe Systems Incorporated">Masinter, L.</a>, <a href="mailto:paulle@microsoft.com" title="Microsoft Corporation">Leach, P.</a>, <a href="mailto:timbl@w3.org" title="World Wide Web Consortium">Berners-Lee, T.</a>, <a href="mailto:ylafon@w3.org" title="World Wide Web Consortium">Lafon, Y., Ed.</a>, and <a href="mailto:julian.reschke@greenbytes.de" title="greenbytes GmbH">J. Reschke, Ed.</a>, “<a href="https://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-16">HTTP/1.1, part 1: URIs, Connections, and Message Parsing</a>”, Internet-Draft draft-ietf-httpbis-p1-messaging-16 (work in progress), August 2011. |
---|
1105 | </td> |
---|
1106 | </tr> |
---|
1107 | <tr> |
---|
1108 | <td class="reference"><b id="Part4">[Part4]</b></td> |
---|
1109 | <td class="top"><a href="mailto:fielding@gbiv.com" title="Adobe Systems Incorporated">Fielding, R., Ed.</a>, <a href="mailto:jg@freedesktop.org" title="Alcatel-Lucent Bell Labs">Gettys, J.</a>, <a href="mailto:JeffMogul@acm.org" title="Hewlett-Packard Company">Mogul, J.</a>, <a href="mailto:henrikn@microsoft.com" title="Microsoft Corporation">Frystyk, H.</a>, <a href="mailto:LMM@acm.org" title="Adobe Systems Incorporated">Masinter, L.</a>, <a href="mailto:paulle@microsoft.com" title="Microsoft Corporation">Leach, P.</a>, <a href="mailto:timbl@w3.org" title="World Wide Web Consortium">Berners-Lee, T.</a>, <a href="mailto:ylafon@w3.org" title="World Wide Web Consortium">Lafon, Y., Ed.</a>, and <a href="mailto:julian.reschke@greenbytes.de" title="greenbytes GmbH">J. Reschke, Ed.</a>, “<a href="https://tools.ietf.org/html/draft-ietf-httpbis-p4-conditional-16">HTTP/1.1, part 4: Conditional Requests</a>”, Internet-Draft draft-ietf-httpbis-p4-conditional-16 (work in progress), August 2011. |
---|
1110 | </td> |
---|
1111 | </tr> |
---|
1112 | <tr> |
---|
1113 | <td class="reference"><b id="RFC2046">[RFC2046]</b></td> |
---|
1114 | <td class="top"><a href="mailto:ned@innosoft.com" title="Innosoft International, Inc.">Freed, N.</a> and <a href="mailto:nsb@nsb.fv.com" title="First Virtual Holdings">N. Borenstein</a>, “<a href="https://tools.ietf.org/html/rfc2046">Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types</a>”, RFC 2046, November 1996. |
---|
1115 | </td> |
---|
1116 | </tr> |
---|
1117 | <tr> |
---|
1118 | <td class="reference"><b id="RFC2119">[RFC2119]</b></td> |
---|
1119 | <td class="top"><a href="mailto:sob@harvard.edu" title="Harvard University">Bradner, S.</a>, “<a href="https://tools.ietf.org/html/rfc2119">Key words for use in RFCs to Indicate Requirement Levels</a>”, BCP 14, RFC 2119, March 1997. |
---|
1120 | </td> |
---|
1121 | </tr> |
---|
1122 | <tr> |
---|
1123 | <td class="reference"><b id="RFC5234">[RFC5234]</b></td> |
---|
1124 | <td class="top"><a href="mailto:dcrocker@bbiw.net" title="Brandenburg InternetWorking">Crocker, D., Ed.</a> and <a href="mailto:paul.overell@thus.net" title="THUS plc.">P. Overell</a>, “<a href="https://tools.ietf.org/html/rfc5234">Augmented BNF for Syntax Specifications: ABNF</a>”, STD 68, RFC 5234, January 2008. |
---|
1125 | </td> |
---|
1126 | </tr> |
---|
1127 | </table> |
---|
1128 | <h2 id="rfc.references.2"><a href="#rfc.section.9.2" id="rfc.section.9.2">9.2</a> Informative References |
---|
1129 | </h2> |
---|
1130 | <table> |
---|
1131 | <tr> |
---|
1132 | <td class="reference"><b id="RFC2616">[RFC2616]</b></td> |
---|
1133 | <td class="top"><a href="mailto:fielding@ics.uci.edu" title="University of California, Irvine">Fielding, R.</a>, <a href="mailto:jg@w3.org" title="W3C">Gettys, J.</a>, <a href="mailto:mogul@wrl.dec.com" title="Compaq Computer Corporation">Mogul, J.</a>, <a href="mailto:frystyk@w3.org" title="MIT Laboratory for Computer Science">Frystyk, H.</a>, <a href="mailto:masinter@parc.xerox.com" title="Xerox Corporation">Masinter, L.</a>, <a href="mailto:paulle@microsoft.com" title="Microsoft Corporation">Leach, P.</a>, and <a href="mailto:timbl@w3.org" title="W3C">T. Berners-Lee</a>, “<a href="https://tools.ietf.org/html/rfc2616">Hypertext Transfer Protocol -- HTTP/1.1</a>”, RFC 2616, June 1999. |
---|
1134 | </td> |
---|
1135 | </tr> |
---|
1136 | <tr> |
---|
1137 | <td class="reference"><b id="RFC3864">[RFC3864]</b></td> |
---|
1138 | <td class="top"><a href="mailto:GK-IETF@ninebynine.org" title="Nine by Nine">Klyne, G.</a>, <a href="mailto:mnot@pobox.com" title="BEA Systems">Nottingham, M.</a>, and <a href="mailto:JeffMogul@acm.org" title="HP Labs">J. Mogul</a>, “<a href="https://tools.ietf.org/html/rfc3864">Registration Procedures for Message Header Fields</a>”, BCP 90, RFC 3864, September 2004. |
---|
1139 | </td> |
---|
1140 | </tr> |
---|
1141 | <tr> |
---|
1142 | <td class="reference"><b id="RFC4288">[RFC4288]</b></td> |
---|
1143 | <td class="top"><a href="mailto:ned.freed@mrochek.com" title="Sun Microsystems">Freed, N.</a> and <a href="mailto:klensin+ietf@jck.com">J. Klensin</a>, “<a href="https://tools.ietf.org/html/rfc4288">Media Type Specifications and Registration Procedures</a>”, BCP 13, RFC 4288, December 2005. |
---|
1144 | </td> |
---|
1145 | </tr> |
---|
1146 | <tr> |
---|
1147 | <td class="reference"><b id="RFC5226">[RFC5226]</b></td> |
---|
1148 | <td class="top"><a href="mailto:narten@us.ibm.com" title="IBM">Narten, T.</a> and <a href="mailto:Harald@Alvestrand.no" title="Google">H. Alvestrand</a>, “<a href="https://tools.ietf.org/html/rfc5226">Guidelines for Writing an IANA Considerations Section in RFCs</a>”, BCP 26, RFC 5226, May 2008. |
---|
1149 | </td> |
---|
1150 | </tr> |
---|
1151 | </table> |
---|
1152 | <div id="internet.media.type.multipart.byteranges"> |
---|
1153 | <div id="rfc.iref.m.1"></div> |
---|
1154 | <div id="rfc.iref.m.2"></div> |
---|
1155 | <h1 id="rfc.section.A" class="np"><a href="#rfc.section.A">A.</a> <a href="#internet.media.type.multipart.byteranges">Internet Media Type multipart/byteranges</a></h1> |
---|
1156 | <p id="rfc.section.A.p.1">When an HTTP 206 (Partial Content) response message includes the content of multiple ranges (a response to a request for multiple |
---|
1157 | non-overlapping ranges), these are transmitted as a multipart message-body (<a href="#RFC2046" id="rfc.xref.RFC2046.1"><cite title="Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types">[RFC2046]</cite></a>, <a href="https://tools.ietf.org/html/rfc2046#section-5.1">Section 5.1</a>). The media type for this purpose is called "multipart/byteranges". The following is to be registered with IANA <a href="#RFC4288" id="rfc.xref.RFC4288.1"><cite title="Media Type Specifications and Registration Procedures">[RFC4288]</cite></a>. |
---|
1158 | </p> |
---|
1159 | <div class="note" id="rfc.section.A.p.2"> |
---|
1160 | <p><b>Note:</b> Despite the name "multipart/byteranges" is not limited to the byte ranges only. |
---|
1161 | </p> |
---|
1162 | </div> |
---|
1163 | <p id="rfc.section.A.p.3">The multipart/byteranges media type includes one or more parts, each with its own Content-Type and Content-Range fields. The |
---|
1164 | required boundary parameter specifies the boundary string used to separate each body-part. |
---|
1165 | </p> |
---|
1166 | <p id="rfc.section.A.p.4"></p> |
---|
1167 | <dl> |
---|
1168 | <dt>Type name:</dt> |
---|
1169 | <dd>multipart</dd> |
---|
1170 | <dt>Subtype name:</dt> |
---|
1171 | <dd>byteranges</dd> |
---|
1172 | <dt>Required parameters:</dt> |
---|
1173 | <dd>boundary</dd> |
---|
1174 | <dt>Optional parameters:</dt> |
---|
1175 | <dd>none</dd> |
---|
1176 | <dt>Encoding considerations:</dt> |
---|
1177 | <dd>only "7bit", "8bit", or "binary" are permitted</dd> |
---|
1178 | <dt>Security considerations:</dt> |
---|
1179 | <dd>none</dd> |
---|
1180 | <dt>Interoperability considerations:</dt> |
---|
1181 | <dd>none</dd> |
---|
1182 | <dt>Published specification:</dt> |
---|
1183 | <dd>This specification (see <a href="#internet.media.type.multipart.byteranges" title="Internet Media Type multipart/byteranges">Appendix A</a>). |
---|
1184 | </dd> |
---|
1185 | <dt>Applications that use this media type:</dt> |
---|
1186 | <dt>Additional information:</dt> |
---|
1187 | <dd> |
---|
1188 | <dl> |
---|
1189 | <dt>Magic number(s):</dt> |
---|
1190 | <dd>none</dd> |
---|
1191 | <dt>File extension(s):</dt> |
---|
1192 | <dd>none</dd> |
---|
1193 | <dt>Macintosh file type code(s):</dt> |
---|
1194 | <dd>none</dd> |
---|
1195 | </dl> |
---|
1196 | </dd> |
---|
1197 | <dt>Person and email address to contact for further information:</dt> |
---|
1198 | <dd>See Authors Section.</dd> |
---|
1199 | <dt>Intended usage:</dt> |
---|
1200 | <dd>COMMON</dd> |
---|
1201 | <dt>Restrictions on usage:</dt> |
---|
1202 | <dd>none</dd> |
---|
1203 | <dt>Author/Change controller:</dt> |
---|
1204 | <dd>IESG</dd> |
---|
1205 | </dl> |
---|
1206 | <div id="rfc.figure.u.23"></div> |
---|
1207 | <p>For example:</p><pre class="text"> HTTP/1.1 206 Partial Content |
---|
1208 | Date: Wed, 15 Nov 1995 06:25:24 GMT |
---|
1209 | Last-Modified: Wed, 15 Nov 1995 04:58:08 GMT |
---|
1210 | Content-type: multipart/byteranges; boundary=THIS_STRING_SEPARATES |
---|
1211 | |
---|
1212 | --THIS_STRING_SEPARATES |
---|
1213 | Content-type: application/pdf |
---|
1214 | Content-range: bytes 500-999/8000 |
---|
1215 | |
---|
1216 | ...the first range... |
---|
1217 | --THIS_STRING_SEPARATES |
---|
1218 | Content-type: application/pdf |
---|
1219 | Content-range: bytes 7000-7999/8000 |
---|
1220 | |
---|
1221 | ...the second range |
---|
1222 | --THIS_STRING_SEPARATES-- |
---|
1223 | </pre><div id="rfc.figure.u.24"></div> |
---|
1224 | <p>Other example:</p><pre class="text"> HTTP/1.1 206 Partial Content |
---|
1225 | Date: Tue, 14 Nov 1995 06:25:24 GMT |
---|
1226 | Last-Modified: Tue, 14 July 04:58:08 GMT |
---|
1227 | Content-type: multipart/byteranges; boundary=THIS_STRING_SEPARATES |
---|
1228 | |
---|
1229 | --THIS_STRING_SEPARATES |
---|
1230 | Content-type: video/example |
---|
1231 | Content-range: exampleunit 1.2-4.3/25 |
---|
1232 | |
---|
1233 | ...the first range... |
---|
1234 | --THIS_STRING_SEPARATES |
---|
1235 | Content-type: video/example |
---|
1236 | Content-range: exampleunit 11.2-14.3/25 |
---|
1237 | |
---|
1238 | ...the second range |
---|
1239 | --THIS_STRING_SEPARATES-- |
---|
1240 | </pre><p id="rfc.section.A.p.7">Notes: </p> |
---|
1241 | <ol> |
---|
1242 | <li>Additional CRLFs <em class="bcp14">MAY</em> precede the first boundary string in the body. |
---|
1243 | </li> |
---|
1244 | <li>Although <a href="#RFC2046" id="rfc.xref.RFC2046.2"><cite title="Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types">[RFC2046]</cite></a> permits the boundary string to be quoted, some existing implementations handle a quoted boundary string incorrectly. |
---|
1245 | </li> |
---|
1246 | <li>A number of browsers and servers were coded to an early draft of the byteranges specification to use a media type of multipart/x-byteranges<span id="rfc.iref.m.3"></span><span id="rfc.iref.m.4"></span>, which is almost, but not quite compatible with the version documented in HTTP/1.1. |
---|
1247 | </li> |
---|
1248 | </ol> |
---|
1249 | </div> |
---|
1250 | <div id="compatibility"> |
---|
1251 | <h1 id="rfc.section.B"><a href="#rfc.section.B">B.</a> <a href="#compatibility">Compatibility with Previous Versions</a></h1> |
---|
1252 | <div id="changes.from.rfc.2616"> |
---|
1253 | <h2 id="rfc.section.B.1"><a href="#rfc.section.B.1">B.1</a> <a href="#changes.from.rfc.2616">Changes from RFC 2616</a></h2> |
---|
1254 | <p id="rfc.section.B.1.p.1">Clarify that it is not ok to use a weak validator in a 206 response. (<a href="#status.206" id="rfc.xref.status.206.2" title="206 Partial Content">Section 3.1</a>) |
---|
1255 | </p> |
---|
1256 | <p id="rfc.section.B.1.p.2">Change ABNF productions for header fields to only define the field value. (<a href="#header.fields" title="Header Field Definitions">Section 5</a>) |
---|
1257 | </p> |
---|
1258 | <p id="rfc.section.B.1.p.3">Clarify that multipart/byteranges can consist of a single part. (<a href="#internet.media.type.multipart.byteranges" title="Internet Media Type multipart/byteranges">Appendix A</a>) |
---|
1259 | </p> |
---|
1260 | </div> |
---|
1261 | </div> |
---|
1262 | <div id="collected.abnf"> |
---|
1263 | <h1 id="rfc.section.C"><a href="#rfc.section.C">C.</a> <a href="#collected.abnf">Collected ABNF</a></h1> |
---|
1264 | <div id="rfc.figure.u.25"></div><pre class="inline"><a href="#header.accept-ranges" class="smpl">Accept-Ranges</a> = acceptable-ranges |
---|
1265 | |
---|
1266 | <a href="#header.content-range" class="smpl">Content-Range</a> = byte-content-range-spec / other-content-range-spec |
---|
1267 | |
---|
1268 | <a href="#core.rules" class="smpl">HTTP-date</a> = <HTTP-date, defined in [Part1], Section 6.1> |
---|
1269 | |
---|
1270 | <a href="#header.if-range" class="smpl">If-Range</a> = entity-tag / HTTP-date |
---|
1271 | |
---|
1272 | <a href="#core.rules" class="smpl">OWS</a> = <OWS, defined in [Part1], Section 1.2.2> |
---|
1273 | |
---|
1274 | <a href="#range.retrieval.requests" class="smpl">Range</a> = byte-ranges-specifier / other-ranges-specifier |
---|
1275 | |
---|
1276 | <a href="#header.accept-ranges" class="smpl">acceptable-ranges</a> = ( *( "," OWS ) range-unit *( OWS "," [ OWS |
---|
1277 | range-unit ] ) ) / "none" |
---|
1278 | |
---|
1279 | <a href="#header.content-range" class="smpl">byte-content-range-spec</a> = bytes-unit SP byte-range-resp-spec "/" ( |
---|
1280 | instance-length / "*" ) |
---|
1281 | <a href="#header.content-range" class="smpl">byte-range-resp-spec</a> = ( first-byte-pos "-" last-byte-pos ) / "*" |
---|
1282 | <a href="#rule.ranges-specifier" class="smpl">byte-range-set</a> = *( "," OWS ) ( byte-range-spec / |
---|
1283 | suffix-byte-range-spec ) *( OWS "," [ OWS ( byte-range-spec / |
---|
1284 | suffix-byte-range-spec ) ] ) |
---|
1285 | <a href="#rule.ranges-specifier" class="smpl">byte-range-spec</a> = first-byte-pos "-" [ last-byte-pos ] |
---|
1286 | <a href="#rule.ranges-specifier" class="smpl">byte-ranges-specifier</a> = bytes-unit "=" byte-range-set |
---|
1287 | <a href="#range.units" class="smpl">bytes-unit</a> = "bytes" |
---|
1288 | |
---|
1289 | <a href="#abnf.dependencies" class="smpl">entity-tag</a> = <entity-tag, defined in [Part4], Section 2.3> |
---|
1290 | |
---|
1291 | <a href="#rule.ranges-specifier" class="smpl">first-byte-pos</a> = 1*DIGIT |
---|
1292 | |
---|
1293 | <a href="#header.content-range" class="smpl">instance-length</a> = 1*DIGIT |
---|
1294 | |
---|
1295 | <a href="#rule.ranges-specifier" class="smpl">last-byte-pos</a> = 1*DIGIT |
---|
1296 | |
---|
1297 | <a href="#header.content-range" class="smpl">other-content-range-spec</a> = other-range-unit SP other-range-resp-spec |
---|
1298 | <a href="#header.content-range" class="smpl">other-range-resp-spec</a> = *CHAR |
---|
1299 | <a href="#range.retrieval.requests" class="smpl">other-range-set</a> = 1*CHAR |
---|
1300 | <a href="#range.units" class="smpl">other-range-unit</a> = token |
---|
1301 | <a href="#range.retrieval.requests" class="smpl">other-ranges-specifier</a> = other-range-unit "=" other-range-set |
---|
1302 | |
---|
1303 | <a href="#range.units" class="smpl">range-unit</a> = bytes-unit / other-range-unit |
---|
1304 | |
---|
1305 | <a href="#rule.ranges-specifier" class="smpl">suffix-byte-range-spec</a> = "-" suffix-length |
---|
1306 | <a href="#rule.ranges-specifier" class="smpl">suffix-length</a> = 1*DIGIT |
---|
1307 | |
---|
1308 | <a href="#core.rules" class="smpl">token</a> = <token, defined in [Part1], Section 3.2.3> |
---|
1309 | </pre><div id="rfc.figure.u.26"></div> |
---|
1310 | <p>ABNF diagnostics:</p><pre class="inline">; Accept-Ranges defined but not used |
---|
1311 | ; Content-Range defined but not used |
---|
1312 | ; If-Range defined but not used |
---|
1313 | ; Range defined but not used |
---|
1314 | </pre></div> |
---|
1315 | <div id="change.log"> |
---|
1316 | <h1 id="rfc.section.D"><a href="#rfc.section.D">D.</a> <a href="#change.log">Change Log (to be removed by RFC Editor before publication)</a></h1> |
---|
1317 | <div> |
---|
1318 | <h2 id="rfc.section.D.1"><a href="#rfc.section.D.1">D.1</a> Since RFC 2616 |
---|
1319 | </h2> |
---|
1320 | <p id="rfc.section.D.1.p.1">Extracted relevant partitions from <a href="#RFC2616" id="rfc.xref.RFC2616.1"><cite title="Hypertext Transfer Protocol -- HTTP/1.1">[RFC2616]</cite></a>. |
---|
1321 | </p> |
---|
1322 | </div> |
---|
1323 | <div> |
---|
1324 | <h2 id="rfc.section.D.2"><a href="#rfc.section.D.2">D.2</a> Since draft-ietf-httpbis-p5-range-00 |
---|
1325 | </h2> |
---|
1326 | <p id="rfc.section.D.2.p.1">Closed issues: </p> |
---|
1327 | <ul> |
---|
1328 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/18">http://tools.ietf.org/wg/httpbis/trac/ticket/18</a>>: "Cache validators in 206 responses" (<<a href="http://purl.org/NET/http-errata#ifrange206">http://purl.org/NET/http-errata#ifrange206</a>>) |
---|
1329 | </li> |
---|
1330 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/35">http://tools.ietf.org/wg/httpbis/trac/ticket/35</a>>: "Normative and Informative references" |
---|
1331 | </li> |
---|
1332 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/86">http://tools.ietf.org/wg/httpbis/trac/ticket/86</a>>: "Normative up-to-date references" |
---|
1333 | </li> |
---|
1334 | </ul> |
---|
1335 | </div> |
---|
1336 | <div> |
---|
1337 | <h2 id="rfc.section.D.3"><a href="#rfc.section.D.3">D.3</a> Since draft-ietf-httpbis-p5-range-01 |
---|
1338 | </h2> |
---|
1339 | <p id="rfc.section.D.3.p.1">Closed issues: </p> |
---|
1340 | <ul> |
---|
1341 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/55">http://tools.ietf.org/wg/httpbis/trac/ticket/55</a>>: "Updating to RFC4288" |
---|
1342 | </li> |
---|
1343 | </ul> |
---|
1344 | <p id="rfc.section.D.3.p.2">Ongoing work on ABNF conversion (<<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/36">http://tools.ietf.org/wg/httpbis/trac/ticket/36</a>>): |
---|
1345 | </p> |
---|
1346 | <ul> |
---|
1347 | <li>Add explicit references to BNF syntax and rules imported from other parts of the specification.</li> |
---|
1348 | </ul> |
---|
1349 | </div> |
---|
1350 | <div id="changes.since.02"> |
---|
1351 | <h2 id="rfc.section.D.4"><a href="#rfc.section.D.4">D.4</a> <a href="#changes.since.02">Since draft-ietf-httpbis-p5-range-02</a></h2> |
---|
1352 | <p id="rfc.section.D.4.p.1">Ongoing work on IANA Message Header Field Registration (<<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/40">http://tools.ietf.org/wg/httpbis/trac/ticket/40</a>>): |
---|
1353 | </p> |
---|
1354 | <ul> |
---|
1355 | <li>Reference RFC 3984, and update header field registrations for headers defined in this document.</li> |
---|
1356 | </ul> |
---|
1357 | </div> |
---|
1358 | <div id="changes.since.03"> |
---|
1359 | <h2 id="rfc.section.D.5"><a href="#rfc.section.D.5">D.5</a> <a href="#changes.since.03">Since draft-ietf-httpbis-p5-range-03</a></h2> |
---|
1360 | <p id="rfc.section.D.5.p.1">None.</p> |
---|
1361 | </div> |
---|
1362 | <div id="changes.since.04"> |
---|
1363 | <h2 id="rfc.section.D.6"><a href="#rfc.section.D.6">D.6</a> <a href="#changes.since.04">Since draft-ietf-httpbis-p5-range-04</a></h2> |
---|
1364 | <p id="rfc.section.D.6.p.1">Closed issues: </p> |
---|
1365 | <ul> |
---|
1366 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/133">http://tools.ietf.org/wg/httpbis/trac/ticket/133</a>>: "multipart/byteranges minimum number of parts" |
---|
1367 | </li> |
---|
1368 | </ul> |
---|
1369 | <p id="rfc.section.D.6.p.2">Ongoing work on ABNF conversion (<<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/36">http://tools.ietf.org/wg/httpbis/trac/ticket/36</a>>): |
---|
1370 | </p> |
---|
1371 | <ul> |
---|
1372 | <li>Use "/" instead of "|" for alternatives.</li> |
---|
1373 | <li>Introduce new ABNF rules for "bad" whitespace ("BWS"), optional whitespace ("OWS") and required whitespace ("RWS").</li> |
---|
1374 | <li>Rewrite ABNFs to spell out whitespace rules, factor out header field value format definitions.</li> |
---|
1375 | </ul> |
---|
1376 | </div> |
---|
1377 | <div id="changes.since.05"> |
---|
1378 | <h2 id="rfc.section.D.7"><a href="#rfc.section.D.7">D.7</a> <a href="#changes.since.05">Since draft-ietf-httpbis-p5-range-05</a></h2> |
---|
1379 | <p id="rfc.section.D.7.p.1">Closed issues: </p> |
---|
1380 | <ul> |
---|
1381 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/142">http://tools.ietf.org/wg/httpbis/trac/ticket/142</a>>: "State base for *-byte-pos and suffix-length" |
---|
1382 | </li> |
---|
1383 | </ul> |
---|
1384 | <p id="rfc.section.D.7.p.2">Ongoing work on Custom Ranges (<<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/85">http://tools.ietf.org/wg/httpbis/trac/ticket/85</a>>): |
---|
1385 | </p> |
---|
1386 | <ul> |
---|
1387 | <li>Remove bias in favor of byte ranges; allow custom ranges in ABNF.</li> |
---|
1388 | </ul> |
---|
1389 | <p id="rfc.section.D.7.p.3">Final work on ABNF conversion (<<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/36">http://tools.ietf.org/wg/httpbis/trac/ticket/36</a>>): |
---|
1390 | </p> |
---|
1391 | <ul> |
---|
1392 | <li>Add appendix containing collected and expanded ABNF, reorganize ABNF introduction.</li> |
---|
1393 | </ul> |
---|
1394 | </div> |
---|
1395 | <div id="changes.since.06"> |
---|
1396 | <h2 id="rfc.section.D.8"><a href="#rfc.section.D.8">D.8</a> <a href="#changes.since.06">Since draft-ietf-httpbis-p5-range-06</a></h2> |
---|
1397 | <p id="rfc.section.D.8.p.1">Closed issues: </p> |
---|
1398 | <ul> |
---|
1399 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/161">http://tools.ietf.org/wg/httpbis/trac/ticket/161</a>>: "base for numeric protocol elements" |
---|
1400 | </li> |
---|
1401 | </ul> |
---|
1402 | </div> |
---|
1403 | <div id="changes.since.07"> |
---|
1404 | <h2 id="rfc.section.D.9"><a href="#rfc.section.D.9">D.9</a> <a href="#changes.since.07">Since draft-ietf-httpbis-p5-range-07</a></h2> |
---|
1405 | <p id="rfc.section.D.9.p.1">Closed issues: </p> |
---|
1406 | <ul> |
---|
1407 | <li>Fixed discrepancy in the If-Range definition about allowed validators.</li> |
---|
1408 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/150">http://tools.ietf.org/wg/httpbis/trac/ticket/150</a>>: "multipart/byteranges for custom range units" |
---|
1409 | </li> |
---|
1410 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/151">http://tools.ietf.org/wg/httpbis/trac/ticket/151</a>>: "range unit missing from other-ranges-specifier in Range header" |
---|
1411 | </li> |
---|
1412 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/198">http://tools.ietf.org/wg/httpbis/trac/ticket/198</a>>: "move IANA registrations for optional status codes" |
---|
1413 | </li> |
---|
1414 | </ul> |
---|
1415 | </div> |
---|
1416 | <div id="changes.since.08"> |
---|
1417 | <h2 id="rfc.section.D.10"><a href="#rfc.section.D.10">D.10</a> <a href="#changes.since.08">Since draft-ietf-httpbis-p5-range-08</a></h2> |
---|
1418 | <p id="rfc.section.D.10.p.1">No significant changes.</p> |
---|
1419 | </div> |
---|
1420 | <div id="changes.since.09"> |
---|
1421 | <h2 id="rfc.section.D.11"><a href="#rfc.section.D.11">D.11</a> <a href="#changes.since.09">Since draft-ietf-httpbis-p5-range-09</a></h2> |
---|
1422 | <p id="rfc.section.D.11.p.1">No significant changes.</p> |
---|
1423 | </div> |
---|
1424 | <div id="changes.since.10"> |
---|
1425 | <h2 id="rfc.section.D.12"><a href="#rfc.section.D.12">D.12</a> <a href="#changes.since.10">Since draft-ietf-httpbis-p5-range-10</a></h2> |
---|
1426 | <p id="rfc.section.D.12.p.1">Closed issues: </p> |
---|
1427 | <ul> |
---|
1428 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/69">http://tools.ietf.org/wg/httpbis/trac/ticket/69</a>>: "Clarify 'Requested Variant'" |
---|
1429 | </li> |
---|
1430 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/109">http://tools.ietf.org/wg/httpbis/trac/ticket/109</a>>: "Clarify entity / representation / variant terminology" |
---|
1431 | </li> |
---|
1432 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/220">http://tools.ietf.org/wg/httpbis/trac/ticket/220</a>>: "consider removing the 'changes from 2068' sections" |
---|
1433 | </li> |
---|
1434 | </ul> |
---|
1435 | <p id="rfc.section.D.12.p.2">Ongoing work on Custom Ranges (<<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/85">http://tools.ietf.org/wg/httpbis/trac/ticket/85</a>>): |
---|
1436 | </p> |
---|
1437 | <ul> |
---|
1438 | <li>Add IANA registry.</li> |
---|
1439 | </ul> |
---|
1440 | </div> |
---|
1441 | <div id="changes.since.11"> |
---|
1442 | <h2 id="rfc.section.D.13"><a href="#rfc.section.D.13">D.13</a> <a href="#changes.since.11">Since draft-ietf-httpbis-p5-range-11</a></h2> |
---|
1443 | <p id="rfc.section.D.13.p.1">Closed issues: </p> |
---|
1444 | <ul> |
---|
1445 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/217">http://tools.ietf.org/wg/httpbis/trac/ticket/217</a>>: "Caches can't be required to serve ranges" |
---|
1446 | </li> |
---|
1447 | </ul> |
---|
1448 | </div> |
---|
1449 | <div id="changes.since.12"> |
---|
1450 | <h2 id="rfc.section.D.14"><a href="#rfc.section.D.14">D.14</a> <a href="#changes.since.12">Since draft-ietf-httpbis-p5-range-12</a></h2> |
---|
1451 | <p id="rfc.section.D.14.p.1">Closed issues: </p> |
---|
1452 | <ul> |
---|
1453 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/224">http://tools.ietf.org/wg/httpbis/trac/ticket/224</a>>: "Header Classification" |
---|
1454 | </li> |
---|
1455 | </ul> |
---|
1456 | </div> |
---|
1457 | <div id="changes.since.13"> |
---|
1458 | <h2 id="rfc.section.D.15"><a href="#rfc.section.D.15">D.15</a> <a href="#changes.since.13">Since draft-ietf-httpbis-p5-range-13</a></h2> |
---|
1459 | <p id="rfc.section.D.15.p.1">Closed issues: </p> |
---|
1460 | <ul> |
---|
1461 | <li><<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/276">http://tools.ietf.org/wg/httpbis/trac/ticket/276</a>>: "untangle ABNFs for header fields" |
---|
1462 | </li> |
---|
1463 | </ul> |
---|
1464 | </div> |
---|
1465 | <div id="changes.since.14"> |
---|
1466 | <h2 id="rfc.section.D.16"><a href="#rfc.section.D.16">D.16</a> <a href="#changes.since.14">Since draft-ietf-httpbis-p5-range-14</a></h2> |
---|
1467 | <p id="rfc.section.D.16.p.1">None.</p> |
---|
1468 | </div> |
---|
1469 | <div id="changes.since.15"> |
---|
1470 | <h2 id="rfc.section.D.17"><a href="#rfc.section.D.17">D.17</a> <a href="#changes.since.15">Since draft-ietf-httpbis-p5-range-15</a></h2> |
---|
1471 | <p id="rfc.section.D.17.p.1">Closed issues: </p> |
---|
1472 | <ul> |
---|
1473 | <li><<a href="http://trac.tools.ietf.org/wg/httpbis/trac/ticket/175">http://trac.tools.ietf.org/wg/httpbis/trac/ticket/175</a>>: "Security consideration: range flooding" |
---|
1474 | </li> |
---|
1475 | </ul> |
---|
1476 | </div> |
---|
1477 | </div> |
---|
1478 | <h1 id="rfc.index"><a href="#rfc.index">Index</a></h1> |
---|
1479 | <p class="noprint"><a href="#rfc.index.2">2</a> <a href="#rfc.index.4">4</a> <a href="#rfc.index.A">A</a> <a href="#rfc.index.C">C</a> <a href="#rfc.index.G">G</a> <a href="#rfc.index.H">H</a> <a href="#rfc.index.I">I</a> <a href="#rfc.index.M">M</a> <a href="#rfc.index.P">P</a> <a href="#rfc.index.R">R</a> <a href="#rfc.index.S">S</a> |
---|
1480 | </p> |
---|
1481 | <div class="print2col"> |
---|
1482 | <ul class="ind"> |
---|
1483 | <li><a id="rfc.index.2" href="#rfc.index.2"><b>2</b></a><ul> |
---|
1484 | <li>206 Partial Content (status code) <a href="#rfc.iref.2.1"><b>3.1</b></a>, <a href="#rfc.xref.status.206.1">6.1</a>, <a href="#rfc.xref.status.206.2">B.1</a></li> |
---|
1485 | </ul> |
---|
1486 | </li> |
---|
1487 | <li><a id="rfc.index.4" href="#rfc.index.4"><b>4</b></a><ul> |
---|
1488 | <li>416 Requested Range Not Satisfiable (status code) <a href="#rfc.iref.4.1"><b>3.2</b></a>, <a href="#rfc.xref.status.416.1">5.2</a>, <a href="#rfc.xref.status.416.2">6.1</a></li> |
---|
1489 | </ul> |
---|
1490 | </li> |
---|
1491 | <li><a id="rfc.index.A" href="#rfc.index.A"><b>A</b></a><ul> |
---|
1492 | <li>Accept-Ranges header field <a href="#rfc.iref.a.1"><b>5.1</b></a>, <a href="#rfc.xref.header.accept-ranges.1">6.2</a></li> |
---|
1493 | </ul> |
---|
1494 | </li> |
---|
1495 | <li><a id="rfc.index.C" href="#rfc.index.C"><b>C</b></a><ul> |
---|
1496 | <li>Content-Range header field <a href="#rfc.xref.header.content-range.1">2</a>, <a href="#rfc.xref.header.content-range.2">3.1</a>, <a href="#rfc.xref.header.content-range.3">3.2</a>, <a href="#rfc.iref.c.1"><b>5.2</b></a>, <a href="#rfc.xref.header.content-range.4">6.2</a></li> |
---|
1497 | </ul> |
---|
1498 | </li> |
---|
1499 | <li><a id="rfc.index.G" href="#rfc.index.G"><b>G</b></a><ul> |
---|
1500 | <li><tt>Grammar</tt> |
---|
1501 | <ul> |
---|
1502 | <li><tt>Accept-Ranges</tt> <a href="#rfc.iref.g.4"><b>5.1</b></a></li> |
---|
1503 | <li><tt>acceptable-ranges</tt> <a href="#rfc.iref.g.5"><b>5.1</b></a></li> |
---|
1504 | <li><tt>byte-content-range-spec</tt> <a href="#rfc.iref.g.7"><b>5.2</b></a></li> |
---|
1505 | <li><tt>byte-range-resp-spec</tt> <a href="#rfc.iref.g.8"><b>5.2</b></a></li> |
---|
1506 | <li><tt>byte-range-set</tt> <a href="#rfc.iref.g.13"><b>5.4.1</b></a></li> |
---|
1507 | <li><tt>byte-range-spec</tt> <a href="#rfc.iref.g.14"><b>5.4.1</b></a></li> |
---|
1508 | <li><tt>byte-ranges-specifier</tt> <a href="#rfc.iref.g.12"><b>5.4.1</b></a></li> |
---|
1509 | <li><tt>bytes-unit</tt> <a href="#rfc.iref.g.2"><b>2</b></a></li> |
---|
1510 | <li><tt>Content-Range</tt> <a href="#rfc.iref.g.6"><b>5.2</b></a></li> |
---|
1511 | <li><tt>first-byte-pos</tt> <a href="#rfc.iref.g.15"><b>5.4.1</b></a></li> |
---|
1512 | <li><tt>If-Range</tt> <a href="#rfc.iref.g.10"><b>5.3</b></a></li> |
---|
1513 | <li><tt>instance-length</tt> <a href="#rfc.iref.g.9"><b>5.2</b></a></li> |
---|
1514 | <li><tt>last-byte-pos</tt> <a href="#rfc.iref.g.16"><b>5.4.1</b></a></li> |
---|
1515 | <li><tt>other-range-unit</tt> <a href="#rfc.iref.g.3"><b>2</b></a></li> |
---|
1516 | <li><tt>Range</tt> <a href="#rfc.iref.g.19"><b>5.4.2</b></a></li> |
---|
1517 | <li><tt>range-unit</tt> <a href="#rfc.iref.g.1"><b>2</b></a></li> |
---|
1518 | <li><tt>ranges-specifier</tt> <a href="#rfc.iref.g.11"><b>5.4.1</b></a></li> |
---|
1519 | <li><tt>suffix-byte-range-spec</tt> <a href="#rfc.iref.g.17"><b>5.4.1</b></a></li> |
---|
1520 | <li><tt>suffix-length</tt> <a href="#rfc.iref.g.18"><b>5.4.1</b></a></li> |
---|
1521 | </ul> |
---|
1522 | </li> |
---|
1523 | </ul> |
---|
1524 | </li> |
---|
1525 | <li><a id="rfc.index.H" href="#rfc.index.H"><b>H</b></a><ul> |
---|
1526 | <li>Header Fields |
---|
1527 | <ul> |
---|
1528 | <li>Accept-Ranges <a href="#rfc.iref.h.1"><b>5.1</b></a>, <a href="#rfc.xref.header.accept-ranges.1">6.2</a></li> |
---|
1529 | <li>Content-Range <a href="#rfc.xref.header.content-range.1">2</a>, <a href="#rfc.xref.header.content-range.2">3.1</a>, <a href="#rfc.xref.header.content-range.3">3.2</a>, <a href="#rfc.iref.h.2"><b>5.2</b></a>, <a href="#rfc.xref.header.content-range.4">6.2</a></li> |
---|
1530 | <li>If-Range <a href="#rfc.xref.header.if-range.1">3.1</a>, <a href="#rfc.xref.header.if-range.2">3.2</a>, <a href="#rfc.iref.h.3"><b>5.3</b></a>, <a href="#rfc.xref.header.if-range.3">5.4.2</a>, <a href="#rfc.xref.header.if-range.4">6.2</a></li> |
---|
1531 | <li>Range <a href="#rfc.xref.header.range.1">2</a>, <a href="#rfc.xref.header.range.2">2</a>, <a href="#rfc.xref.header.range.3">3.1</a>, <a href="#rfc.xref.header.range.4">3.2</a>, <a href="#rfc.iref.h.4"><b>5.4</b></a>, <a href="#rfc.xref.header.range.5">6.2</a></li> |
---|
1532 | </ul> |
---|
1533 | </li> |
---|
1534 | </ul> |
---|
1535 | </li> |
---|
1536 | <li><a id="rfc.index.I" href="#rfc.index.I"><b>I</b></a><ul> |
---|
1537 | <li>If-Range header field <a href="#rfc.xref.header.if-range.1">3.1</a>, <a href="#rfc.xref.header.if-range.2">3.2</a>, <a href="#rfc.iref.i.1"><b>5.3</b></a>, <a href="#rfc.xref.header.if-range.3">5.4.2</a>, <a href="#rfc.xref.header.if-range.4">6.2</a></li> |
---|
1538 | </ul> |
---|
1539 | </li> |
---|
1540 | <li><a id="rfc.index.M" href="#rfc.index.M"><b>M</b></a><ul> |
---|
1541 | <li>Media Type |
---|
1542 | <ul> |
---|
1543 | <li>multipart/byteranges <a href="#rfc.iref.m.1"><b>A</b></a></li> |
---|
1544 | <li>multipart/x-byteranges <a href="#rfc.iref.m.4">A</a></li> |
---|
1545 | </ul> |
---|
1546 | </li> |
---|
1547 | <li>multipart/byteranges Media Type <a href="#rfc.iref.m.2"><b>A</b></a></li> |
---|
1548 | <li>multipart/x-byteranges Media Type <a href="#rfc.iref.m.3">A</a></li> |
---|
1549 | </ul> |
---|
1550 | </li> |
---|
1551 | <li><a id="rfc.index.P" href="#rfc.index.P"><b>P</b></a><ul> |
---|
1552 | <li><em>Part1</em> <a href="#rfc.xref.Part1.1">1.2</a>, <a href="#rfc.xref.Part1.2">1.2.1</a>, <a href="#rfc.xref.Part1.3">1.2.1</a>, <a href="#rfc.xref.Part1.4">1.2.1</a>, <a href="#rfc.xref.Part1.5">1.2.1</a>, <a href="#rfc.xref.Part1.6">8</a>, <a href="#Part1"><b>9.1</b></a><ul> |
---|
1553 | <li><em>Section 1.2</em> <a href="#rfc.xref.Part1.1">1.2</a></li> |
---|
1554 | <li><em>Section 1.2.2</em> <a href="#rfc.xref.Part1.3">1.2.1</a></li> |
---|
1555 | <li><em>Section 3.2.3</em> <a href="#rfc.xref.Part1.4">1.2.1</a></li> |
---|
1556 | <li><em>Section 6.1</em> <a href="#rfc.xref.Part1.5">1.2.1</a></li> |
---|
1557 | <li><em>Section 12</em> <a href="#rfc.xref.Part1.6">8</a></li> |
---|
1558 | </ul> |
---|
1559 | </li> |
---|
1560 | <li><em>Part4</em> <a href="#rfc.xref.Part4.1">1.2.2</a>, <a href="#rfc.xref.Part4.2">4</a>, <a href="#rfc.xref.Part4.3">4</a>, <a href="#rfc.xref.Part4.4">5.3</a>, <a href="#rfc.xref.Part4.5">5.3</a>, <a href="#Part4"><b>9.1</b></a><ul> |
---|
1561 | <li><em>Section 2.2.2</em> <a href="#rfc.xref.Part4.3">4</a>, <a href="#rfc.xref.Part4.4">5.3</a>, <a href="#rfc.xref.Part4.5">5.3</a></li> |
---|
1562 | <li><em>Section 2.3</em> <a href="#rfc.xref.Part4.1">1.2.2</a>, <a href="#rfc.xref.Part4.2">4</a></li> |
---|
1563 | </ul> |
---|
1564 | </li> |
---|
1565 | </ul> |
---|
1566 | </li> |
---|
1567 | <li><a id="rfc.index.R" href="#rfc.index.R"><b>R</b></a><ul> |
---|
1568 | <li>Range header field <a href="#rfc.xref.header.range.1">2</a>, <a href="#rfc.xref.header.range.2">2</a>, <a href="#rfc.xref.header.range.3">3.1</a>, <a href="#rfc.xref.header.range.4">3.2</a>, <a href="#rfc.iref.r.1"><b>5.4</b></a>, <a href="#rfc.xref.header.range.5">6.2</a></li> |
---|
1569 | <li><em>RFC2046</em> <a href="#RFC2046"><b>9.1</b></a>, <a href="#rfc.xref.RFC2046.1">A</a>, <a href="#rfc.xref.RFC2046.2">A</a><ul> |
---|
1570 | <li><em>Section 5.1</em> <a href="#rfc.xref.RFC2046.1">A</a></li> |
---|
1571 | </ul> |
---|
1572 | </li> |
---|
1573 | <li><em>RFC2119</em> <a href="#rfc.xref.RFC2119.1">1.1</a>, <a href="#RFC2119"><b>9.1</b></a></li> |
---|
1574 | <li><em>RFC2616</em> <a href="#RFC2616"><b>9.2</b></a>, <a href="#rfc.xref.RFC2616.1">D.1</a></li> |
---|
1575 | <li><em>RFC3864</em> <a href="#rfc.xref.RFC3864.1">6.2</a>, <a href="#RFC3864"><b>9.2</b></a></li> |
---|
1576 | <li><em>RFC4288</em> <a href="#RFC4288"><b>9.2</b></a>, <a href="#rfc.xref.RFC4288.1">A</a></li> |
---|
1577 | <li><em>RFC5226</em> <a href="#rfc.xref.RFC5226.1">2.1</a>, <a href="#RFC5226"><b>9.2</b></a><ul> |
---|
1578 | <li><em>Section 4.1</em> <a href="#rfc.xref.RFC5226.1">2.1</a></li> |
---|
1579 | </ul> |
---|
1580 | </li> |
---|
1581 | <li><em>RFC5234</em> <a href="#rfc.xref.RFC5234.1">1.2</a>, <a href="#rfc.xref.RFC5234.2">1.2</a>, <a href="#RFC5234"><b>9.1</b></a><ul> |
---|
1582 | <li><em>Appendix B.1</em> <a href="#rfc.xref.RFC5234.2">1.2</a></li> |
---|
1583 | </ul> |
---|
1584 | </li> |
---|
1585 | </ul> |
---|
1586 | </li> |
---|
1587 | <li><a id="rfc.index.S" href="#rfc.index.S"><b>S</b></a><ul> |
---|
1588 | <li>Status Codes |
---|
1589 | <ul> |
---|
1590 | <li>206 Partial Content <a href="#rfc.iref.s.1"><b>3.1</b></a>, <a href="#rfc.xref.status.206.1">6.1</a>, <a href="#rfc.xref.status.206.2">B.1</a></li> |
---|
1591 | <li>416 Requested Range Not Satisfiable <a href="#rfc.iref.s.2"><b>3.2</b></a>, <a href="#rfc.xref.status.416.1">5.2</a>, <a href="#rfc.xref.status.416.2">6.1</a></li> |
---|
1592 | </ul> |
---|
1593 | </li> |
---|
1594 | </ul> |
---|
1595 | </li> |
---|
1596 | </ul> |
---|
1597 | </div> |
---|
1598 | <div class="avoidbreak"> |
---|
1599 | <h1 id="rfc.authors"><a href="#rfc.authors">Authors' Addresses</a></h1> |
---|
1600 | <p><b>Roy T. Fielding</b> |
---|
1601 | (editor) |
---|
1602 | <br>Adobe Systems Incorporated<br>345 Park Ave<br>San Jose, CA 95110<br>USA<br>Email: <a href="mailto:fielding@gbiv.com">fielding@gbiv.com</a><br>URI: <a href="http://roy.gbiv.com/">http://roy.gbiv.com/</a></p> |
---|
1603 | <p><b>Jim Gettys</b><br>Alcatel-Lucent Bell Labs<br>21 Oak Knoll Road<br>Carlisle, MA 01741<br>USA<br>Email: <a href="mailto:jg@freedesktop.org">jg@freedesktop.org</a><br>URI: <a href="http://gettys.wordpress.com/">http://gettys.wordpress.com/</a></p> |
---|
1604 | <p><b>Jeffrey C. Mogul</b><br>Hewlett-Packard Company<br>HP Labs, Large Scale Systems Group<br>1501 Page Mill Road, MS 1177<br>Palo Alto, CA 94304<br>USA<br>Email: <a href="mailto:JeffMogul@acm.org">JeffMogul@acm.org</a></p> |
---|
1605 | <p><b>Henrik Frystyk Nielsen</b><br>Microsoft Corporation<br>1 Microsoft Way<br>Redmond, WA 98052<br>USA<br>Email: <a href="mailto:henrikn@microsoft.com">henrikn@microsoft.com</a></p> |
---|
1606 | <p><b>Larry Masinter</b><br>Adobe Systems Incorporated<br>345 Park Ave<br>San Jose, CA 95110<br>USA<br>Email: <a href="mailto:LMM@acm.org">LMM@acm.org</a><br>URI: <a href="http://larry.masinter.net/">http://larry.masinter.net/</a></p> |
---|
1607 | <p><b>Paul J. Leach</b><br>Microsoft Corporation<br>1 Microsoft Way<br>Redmond, WA 98052<br>Email: <a href="mailto:paulle@microsoft.com">paulle@microsoft.com</a></p> |
---|
1608 | <p><b>Tim Berners-Lee</b><br>World Wide Web Consortium<br>MIT Computer Science and Artificial Intelligence Laboratory<br>The Stata Center, Building 32<br>32 Vassar Street<br>Cambridge, MA 02139<br>USA<br>Email: <a href="mailto:timbl@w3.org">timbl@w3.org</a><br>URI: <a href="http://www.w3.org/People/Berners-Lee/">http://www.w3.org/People/Berners-Lee/</a></p> |
---|
1609 | <p><b>Yves Lafon</b> |
---|
1610 | (editor) |
---|
1611 | <br>World Wide Web Consortium<br>W3C / ERCIM<br>2004, rte des Lucioles<br>Sophia-Antipolis, AM 06902<br>France<br>Email: <a href="mailto:ylafon@w3.org">ylafon@w3.org</a><br>URI: <a href="http://www.raubacapeu.net/people/yves/">http://www.raubacapeu.net/people/yves/</a></p> |
---|
1612 | <p><b>Julian F. Reschke</b> |
---|
1613 | (editor) |
---|
1614 | <br>greenbytes GmbH<br>Hafenweg 16<br>Muenster, NW 48155<br>Germany<br>Phone: <a href="tel:+492512807760">+49 251 2807760</a><br>Fax: <a href="fax:+492512807761">+49 251 2807761</a><br>Email: <a href="mailto:julian.reschke@greenbytes.de">julian.reschke@greenbytes.de</a><br>URI: <a href="http://greenbytes.de/tech/webdav/">http://greenbytes.de/tech/webdav/</a></p> |
---|
1615 | </div> |
---|
1616 | </body> |
---|
1617 | </html> |
---|