[52] | 1 | <!DOCTYPE html |
---|
| 2 | PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
---|
| 3 | <html lang="en"> |
---|
[573] | 4 | <head profile="http://www.w3.org/2006/03/hcard http://dublincore.org/documents/2008/08/04/dc-html/"> |
---|
[52] | 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: verdana, helvetica, arial, sans-serif; |
---|
| 27 | font-size: 10pt; |
---|
| 28 | } |
---|
| 29 | cite { |
---|
| 30 | font-style: normal; |
---|
| 31 | } |
---|
[563] | 32 | div.note { |
---|
| 33 | margin-left: 2em; |
---|
| 34 | } |
---|
[52] | 35 | dd { |
---|
| 36 | margin-right: 2em; |
---|
| 37 | } |
---|
| 38 | dl { |
---|
| 39 | margin-left: 2em; |
---|
| 40 | } |
---|
| 41 | |
---|
| 42 | dl.empty dd { |
---|
| 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: 14pt; |
---|
| 53 | line-height: 21pt; |
---|
| 54 | page-break-after: avoid; |
---|
| 55 | } |
---|
| 56 | h1.np { |
---|
| 57 | page-break-before: always; |
---|
| 58 | } |
---|
| 59 | h1 a { |
---|
| 60 | color: #333333; |
---|
| 61 | } |
---|
| 62 | h2 { |
---|
| 63 | font-size: 12pt; |
---|
| 64 | line-height: 15pt; |
---|
| 65 | page-break-after: avoid; |
---|
| 66 | } |
---|
[446] | 67 | h3, h4, h5, h6 { |
---|
[52] | 68 | font-size: 10pt; |
---|
| 69 | page-break-after: avoid; |
---|
| 70 | } |
---|
[446] | 71 | h2 a, h3 a, h4 a, h5 a, h6 a { |
---|
[52] | 72 | color: black; |
---|
| 73 | } |
---|
| 74 | img { |
---|
| 75 | margin-left: 3em; |
---|
| 76 | } |
---|
| 77 | li { |
---|
| 78 | margin-left: 2em; |
---|
| 79 | margin-right: 2em; |
---|
| 80 | } |
---|
| 81 | ol { |
---|
| 82 | margin-left: 2em; |
---|
| 83 | margin-right: 2em; |
---|
| 84 | } |
---|
| 85 | ol p { |
---|
| 86 | margin-left: 0em; |
---|
| 87 | } |
---|
| 88 | p { |
---|
| 89 | margin-left: 2em; |
---|
| 90 | margin-right: 2em; |
---|
| 91 | } |
---|
| 92 | pre { |
---|
| 93 | margin-left: 3em; |
---|
| 94 | background-color: lightyellow; |
---|
| 95 | padding: .25em; |
---|
| 96 | } |
---|
| 97 | pre.text2 { |
---|
| 98 | border-style: dotted; |
---|
| 99 | border-width: 1px; |
---|
| 100 | background-color: #f0f0f0; |
---|
| 101 | width: 69em; |
---|
| 102 | } |
---|
| 103 | pre.inline { |
---|
| 104 | background-color: white; |
---|
| 105 | padding: 0em; |
---|
| 106 | } |
---|
| 107 | pre.text { |
---|
| 108 | border-style: dotted; |
---|
| 109 | border-width: 1px; |
---|
| 110 | background-color: #f8f8f8; |
---|
| 111 | width: 69em; |
---|
| 112 | } |
---|
| 113 | pre.drawing { |
---|
| 114 | border-style: solid; |
---|
| 115 | border-width: 1px; |
---|
| 116 | background-color: #f8f8f8; |
---|
| 117 | padding: 2em; |
---|
| 118 | } |
---|
| 119 | table { |
---|
| 120 | margin-left: 2em; |
---|
| 121 | } |
---|
[253] | 122 | table.tt { |
---|
| 123 | vertical-align: top; |
---|
| 124 | } |
---|
| 125 | table.full { |
---|
| 126 | border-style: outset; |
---|
| 127 | border-width: 1px; |
---|
| 128 | } |
---|
| 129 | table.headers { |
---|
| 130 | border-style: outset; |
---|
| 131 | border-width: 1px; |
---|
| 132 | } |
---|
| 133 | table.tt td { |
---|
| 134 | vertical-align: top; |
---|
| 135 | } |
---|
| 136 | table.full td { |
---|
| 137 | border-style: inset; |
---|
| 138 | border-width: 1px; |
---|
| 139 | } |
---|
| 140 | table.tt th { |
---|
| 141 | vertical-align: top; |
---|
| 142 | } |
---|
| 143 | table.full th { |
---|
| 144 | border-style: inset; |
---|
| 145 | border-width: 1px; |
---|
| 146 | } |
---|
| 147 | table.headers th { |
---|
| 148 | border-style: none none inset none; |
---|
| 149 | border-width: 1px; |
---|
| 150 | } |
---|
[675] | 151 | table.left { |
---|
| 152 | margin-right: auto; |
---|
| 153 | } |
---|
| 154 | table.right { |
---|
| 155 | margin-left: auto; |
---|
| 156 | } |
---|
| 157 | table.center { |
---|
| 158 | margin-left: auto; |
---|
| 159 | margin-right: auto; |
---|
| 160 | } |
---|
[454] | 161 | caption { |
---|
| 162 | caption-side: bottom; |
---|
| 163 | font-weight: bold; |
---|
| 164 | font-size: 9pt; |
---|
| 165 | margin-top: .5em; |
---|
| 166 | } |
---|
| 167 | |
---|
[52] | 168 | table.header { |
---|
| 169 | width: 95%; |
---|
| 170 | font-size: 10pt; |
---|
| 171 | color: white; |
---|
| 172 | } |
---|
| 173 | td.top { |
---|
| 174 | vertical-align: top; |
---|
| 175 | } |
---|
| 176 | td.topnowrap { |
---|
| 177 | vertical-align: top; |
---|
| 178 | white-space: nowrap; |
---|
| 179 | } |
---|
| 180 | td.header { |
---|
| 181 | background-color: gray; |
---|
| 182 | width: 50%; |
---|
| 183 | } |
---|
[227] | 184 | td.header a { |
---|
| 185 | color: white; |
---|
| 186 | } |
---|
[52] | 187 | td.reference { |
---|
| 188 | vertical-align: top; |
---|
| 189 | white-space: nowrap; |
---|
| 190 | padding-right: 1em; |
---|
| 191 | } |
---|
| 192 | thead { |
---|
| 193 | display:table-header-group; |
---|
| 194 | } |
---|
| 195 | ul.toc { |
---|
| 196 | list-style: none; |
---|
| 197 | margin-left: 1.5em; |
---|
| 198 | margin-right: 0em; |
---|
| 199 | padding-left: 0em; |
---|
| 200 | } |
---|
| 201 | li.tocline0 { |
---|
| 202 | line-height: 150%; |
---|
| 203 | font-weight: bold; |
---|
| 204 | font-size: 10pt; |
---|
| 205 | margin-left: 0em; |
---|
| 206 | margin-right: 0em; |
---|
| 207 | } |
---|
| 208 | li.tocline1 { |
---|
| 209 | line-height: normal; |
---|
| 210 | font-weight: normal; |
---|
| 211 | font-size: 9pt; |
---|
| 212 | margin-left: 0em; |
---|
| 213 | margin-right: 0em; |
---|
| 214 | } |
---|
| 215 | li.tocline2 { |
---|
| 216 | font-size: 0pt; |
---|
| 217 | } |
---|
| 218 | ul p { |
---|
| 219 | margin-left: 0em; |
---|
| 220 | } |
---|
| 221 | ul.ind { |
---|
| 222 | list-style: none; |
---|
| 223 | margin-left: 1.5em; |
---|
| 224 | margin-right: 0em; |
---|
| 225 | padding-left: 0em; |
---|
[440] | 226 | page-break-before: avoid; |
---|
[52] | 227 | } |
---|
| 228 | li.indline0 { |
---|
| 229 | font-weight: bold; |
---|
| 230 | line-height: 200%; |
---|
| 231 | margin-left: 0em; |
---|
| 232 | margin-right: 0em; |
---|
| 233 | } |
---|
| 234 | li.indline1 { |
---|
| 235 | font-weight: normal; |
---|
| 236 | line-height: 150%; |
---|
| 237 | margin-left: 0em; |
---|
| 238 | margin-right: 0em; |
---|
| 239 | } |
---|
[662] | 240 | .avoidbreak { |
---|
| 241 | page-break-inside: avoid; |
---|
| 242 | } |
---|
[52] | 243 | .bcp14 { |
---|
| 244 | font-style: normal; |
---|
| 245 | text-transform: lowercase; |
---|
| 246 | font-variant: small-caps; |
---|
| 247 | } |
---|
| 248 | .comment { |
---|
| 249 | background-color: yellow; |
---|
| 250 | } |
---|
| 251 | .center { |
---|
| 252 | text-align: center; |
---|
| 253 | } |
---|
| 254 | .error { |
---|
| 255 | color: red; |
---|
| 256 | font-style: italic; |
---|
| 257 | font-weight: bold; |
---|
| 258 | } |
---|
| 259 | .figure { |
---|
| 260 | font-weight: bold; |
---|
| 261 | text-align: center; |
---|
| 262 | font-size: 9pt; |
---|
| 263 | } |
---|
| 264 | .filename { |
---|
| 265 | color: #333333; |
---|
| 266 | font-weight: bold; |
---|
| 267 | font-size: 12pt; |
---|
| 268 | line-height: 21pt; |
---|
| 269 | text-align: center; |
---|
| 270 | } |
---|
| 271 | .fn { |
---|
| 272 | font-weight: bold; |
---|
| 273 | } |
---|
| 274 | .hidden { |
---|
| 275 | display: none; |
---|
| 276 | } |
---|
| 277 | .left { |
---|
| 278 | text-align: left; |
---|
| 279 | } |
---|
| 280 | .right { |
---|
| 281 | text-align: right; |
---|
| 282 | } |
---|
| 283 | .title { |
---|
| 284 | color: #990000; |
---|
| 285 | font-size: 18pt; |
---|
| 286 | line-height: 18pt; |
---|
| 287 | font-weight: bold; |
---|
| 288 | text-align: center; |
---|
| 289 | margin-top: 36pt; |
---|
| 290 | } |
---|
| 291 | .vcardline { |
---|
| 292 | display: block; |
---|
| 293 | } |
---|
| 294 | .warning { |
---|
| 295 | font-size: 14pt; |
---|
| 296 | background-color: yellow; |
---|
| 297 | } |
---|
| 298 | |
---|
| 299 | |
---|
| 300 | @media print { |
---|
| 301 | .noprint { |
---|
| 302 | display: none; |
---|
| 303 | } |
---|
| 304 | |
---|
| 305 | a { |
---|
| 306 | color: black; |
---|
| 307 | text-decoration: none; |
---|
| 308 | } |
---|
| 309 | |
---|
| 310 | table.header { |
---|
| 311 | width: 90%; |
---|
| 312 | } |
---|
| 313 | |
---|
| 314 | td.header { |
---|
| 315 | width: 50%; |
---|
| 316 | color: black; |
---|
| 317 | background-color: white; |
---|
| 318 | vertical-align: top; |
---|
| 319 | font-size: 12pt; |
---|
| 320 | } |
---|
| 321 | |
---|
| 322 | ul.toc a::after { |
---|
| 323 | content: leader('.') target-counter(attr(href), page); |
---|
| 324 | } |
---|
| 325 | |
---|
| 326 | a.iref { |
---|
| 327 | content: target-counter(attr(href), page); |
---|
| 328 | } |
---|
| 329 | |
---|
| 330 | .print2col { |
---|
| 331 | column-count: 2; |
---|
| 332 | -moz-column-count: 2; |
---|
| 333 | column-fill: auto; |
---|
| 334 | } |
---|
| 335 | } |
---|
| 336 | |
---|
| 337 | @page { |
---|
| 338 | @top-left { |
---|
| 339 | content: "INTERNET DRAFT"; |
---|
| 340 | } |
---|
| 341 | @top-right { |
---|
[704] | 342 | content: "October 2009"; |
---|
[52] | 343 | } |
---|
| 344 | @top-center { |
---|
[120] | 345 | content: "HTTP/1.1, Part 5"; |
---|
[52] | 346 | } |
---|
| 347 | @bottom-left { |
---|
| 348 | content: "Fielding, et al."; |
---|
| 349 | } |
---|
| 350 | @bottom-center { |
---|
| 351 | content: "Standards Track"; |
---|
| 352 | } |
---|
| 353 | @bottom-right { |
---|
| 354 | content: "[Page " counter(page) "]"; |
---|
| 355 | } |
---|
| 356 | } |
---|
| 357 | |
---|
| 358 | @page:first { |
---|
| 359 | @top-left { |
---|
| 360 | content: normal; |
---|
| 361 | } |
---|
| 362 | @top-right { |
---|
| 363 | content: normal; |
---|
| 364 | } |
---|
| 365 | @top-center { |
---|
| 366 | content: normal; |
---|
| 367 | } |
---|
| 368 | } |
---|
| 369 | </style><link rel="Contents" href="#rfc.toc"> |
---|
| 370 | <link rel="Author" href="#rfc.authors"> |
---|
| 371 | <link rel="Copyright" href="#rfc.copyright"> |
---|
| 372 | <link rel="Index" href="#rfc.index"> |
---|
| 373 | <link rel="Chapter" title="1 Introduction" href="#rfc.section.1"> |
---|
[424] | 374 | <link rel="Chapter" title="2 Range Units" href="#rfc.section.2"> |
---|
| 375 | <link rel="Chapter" title="3 Status Code Definitions" href="#rfc.section.3"> |
---|
| 376 | <link rel="Chapter" title="4 Combining Ranges" href="#rfc.section.4"> |
---|
| 377 | <link rel="Chapter" title="5 Header Field Definitions" href="#rfc.section.5"> |
---|
| 378 | <link rel="Chapter" title="6 IANA Considerations" href="#rfc.section.6"> |
---|
| 379 | <link rel="Chapter" title="7 Security Considerations" href="#rfc.section.7"> |
---|
| 380 | <link rel="Chapter" title="8 Acknowledgments" href="#rfc.section.8"> |
---|
| 381 | <link rel="Chapter" href="#rfc.section.9" title="9 References"> |
---|
[52] | 382 | <link rel="Appendix" title="A Internet Media Type multipart/byteranges" href="#rfc.section.A"> |
---|
[99] | 383 | <link rel="Appendix" title="B Compatibility with Previous Versions" href="#rfc.section.B"> |
---|
[421] | 384 | <link rel="Appendix" title="C Collected ABNF" href="#rfc.section.C"> |
---|
| 385 | <link rel="Appendix" title="D Change Log (to be removed by RFC Editor before publication)" href="#rfc.section.D"> |
---|
[713] | 386 | <meta name="generator" content="http://greenbytes.de/tech/webdav/rfc2629.xslt, Revision 1.477, 2009-10-09 21:33:42, XSLT vendor: SAXON 8.9 from Saxonica http://www.saxonica.com/"> |
---|
[52] | 387 | <link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"> |
---|
| 388 | <meta name="DC.Creator" content="Fielding, R."> |
---|
| 389 | <meta name="DC.Creator" content="Gettys, J."> |
---|
| 390 | <meta name="DC.Creator" content="Mogul, J."> |
---|
| 391 | <meta name="DC.Creator" content="Frystyk, H."> |
---|
| 392 | <meta name="DC.Creator" content="Masinter, L."> |
---|
| 393 | <meta name="DC.Creator" content="Leach, P."> |
---|
| 394 | <meta name="DC.Creator" content="Berners-Lee, T."> |
---|
[95] | 395 | <meta name="DC.Creator" content="Lafon, Y."> |
---|
| 396 | <meta name="DC.Creator" content="Reschke, J. F."> |
---|
[52] | 397 | <meta name="DC.Identifier" content="urn:ietf:id:draft-ietf-httpbis-p5-range-latest"> |
---|
[713] | 398 | <meta name="DC.Date.Issued" scheme="ISO8601" content="2009-10-11"> |
---|
[52] | 399 | <meta name="DC.Relation.Replaces" content="urn:ietf:rfc:2616"> |
---|
| 400 | <meta name="DC.Description.Abstract" content="The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypermedia 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."> |
---|
[689] | 401 | <meta name="description" content="The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypermedia 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."> |
---|
[52] | 402 | </head> |
---|
| 403 | <body> |
---|
[704] | 404 | <table class="header" border="0" cellpadding="1" cellspacing="1"> |
---|
[52] | 405 | <tr> |
---|
[440] | 406 | <td class="header left">HTTPbis Working Group</td> |
---|
[52] | 407 | <td class="header right">R. Fielding, Editor</td> |
---|
| 408 | </tr> |
---|
| 409 | <tr> |
---|
| 410 | <td class="header left">Internet Draft</td> |
---|
| 411 | <td class="header right">Day Software</td> |
---|
| 412 | </tr> |
---|
| 413 | <tr> |
---|
| 414 | <td class="header left"> |
---|
| 415 | <draft-ietf-httpbis-p5-range-latest> |
---|
| 416 | |
---|
| 417 | </td> |
---|
| 418 | <td class="header right">J. Gettys</td> |
---|
| 419 | </tr> |
---|
| 420 | <tr> |
---|
[150] | 421 | <td class="header left">Obsoletes: <a href="http://tools.ietf.org/html/rfc2616">2616</a> (if approved) |
---|
[52] | 422 | </td> |
---|
| 423 | <td class="header right">One Laptop per Child</td> |
---|
| 424 | </tr> |
---|
| 425 | <tr> |
---|
| 426 | <td class="header left">Intended status: Standards Track</td> |
---|
| 427 | <td class="header right">J. Mogul</td> |
---|
| 428 | </tr> |
---|
| 429 | <tr> |
---|
[713] | 430 | <td class="header left">Expires: April 14, 2010</td> |
---|
[52] | 431 | <td class="header right">HP</td> |
---|
| 432 | </tr> |
---|
| 433 | <tr> |
---|
| 434 | <td class="header left"></td> |
---|
| 435 | <td class="header right">H. Frystyk</td> |
---|
| 436 | </tr> |
---|
| 437 | <tr> |
---|
| 438 | <td class="header left"></td> |
---|
| 439 | <td class="header right">Microsoft</td> |
---|
| 440 | </tr> |
---|
| 441 | <tr> |
---|
| 442 | <td class="header left"></td> |
---|
| 443 | <td class="header right">L. Masinter</td> |
---|
| 444 | </tr> |
---|
| 445 | <tr> |
---|
| 446 | <td class="header left"></td> |
---|
| 447 | <td class="header right">Adobe Systems</td> |
---|
| 448 | </tr> |
---|
| 449 | <tr> |
---|
| 450 | <td class="header left"></td> |
---|
| 451 | <td class="header right">P. Leach</td> |
---|
| 452 | </tr> |
---|
| 453 | <tr> |
---|
| 454 | <td class="header left"></td> |
---|
| 455 | <td class="header right">Microsoft</td> |
---|
| 456 | </tr> |
---|
| 457 | <tr> |
---|
| 458 | <td class="header left"></td> |
---|
| 459 | <td class="header right">T. Berners-Lee</td> |
---|
| 460 | </tr> |
---|
| 461 | <tr> |
---|
| 462 | <td class="header left"></td> |
---|
| 463 | <td class="header right">W3C/MIT</td> |
---|
| 464 | </tr> |
---|
| 465 | <tr> |
---|
| 466 | <td class="header left"></td> |
---|
[95] | 467 | <td class="header right">Y. Lafon, Editor</td> |
---|
| 468 | </tr> |
---|
| 469 | <tr> |
---|
| 470 | <td class="header left"></td> |
---|
| 471 | <td class="header right">W3C</td> |
---|
| 472 | </tr> |
---|
| 473 | <tr> |
---|
| 474 | <td class="header left"></td> |
---|
| 475 | <td class="header right">J. F. Reschke, Editor</td> |
---|
| 476 | </tr> |
---|
| 477 | <tr> |
---|
| 478 | <td class="header left"></td> |
---|
| 479 | <td class="header right">greenbytes</td> |
---|
| 480 | </tr> |
---|
| 481 | <tr> |
---|
| 482 | <td class="header left"></td> |
---|
[713] | 483 | <td class="header right">October 11, 2009</td> |
---|
[52] | 484 | </tr> |
---|
| 485 | </table> |
---|
| 486 | <p class="title">HTTP/1.1, part 5: Range Requests and Partial Responses<br><span class="filename">draft-ietf-httpbis-p5-range-latest</span></p> |
---|
| 487 | <h1><a id="rfc.status" href="#rfc.status">Status of this Memo</a></h1> |
---|
[704] | 488 | <p>This Internet-Draft is submitted to IETF in full conformance with the provisions of BCP 78 and BCP 79. This document may contain |
---|
| 489 | material from IETF Documents or IETF Contributions published or made publicly available before November 10, 2008. The person(s) |
---|
| 490 | controlling the copyright in some of this material may not have granted the IETF Trust the right to allow modifications of |
---|
| 491 | such material outside the IETF Standards Process. Without obtaining an adequate license from the person(s) controlling the |
---|
| 492 | copyright in such materials, this document may not be modified outside the IETF Standards Process, and derivative works of |
---|
| 493 | it may not be created outside the IETF Standards Process, except to format it for publication as an RFC or to translate it |
---|
| 494 | into languages other than English. |
---|
[52] | 495 | </p> |
---|
| 496 | <p>Internet-Drafts are working documents of the Internet Engineering Task Force (IETF), its areas, and its working groups. Note |
---|
| 497 | that other groups may also distribute working documents as Internet-Drafts. |
---|
| 498 | </p> |
---|
| 499 | <p>Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other |
---|
| 500 | documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as “work |
---|
| 501 | in progress”. |
---|
| 502 | </p> |
---|
| 503 | <p>The list of current Internet-Drafts can be accessed at <<a href="http://www.ietf.org/ietf/1id-abstracts.txt">http://www.ietf.org/ietf/1id-abstracts.txt</a>>. |
---|
| 504 | </p> |
---|
| 505 | <p>The list of Internet-Draft Shadow Directories can be accessed at <<a href="http://www.ietf.org/shadow.html">http://www.ietf.org/shadow.html</a>>. |
---|
| 506 | </p> |
---|
[713] | 507 | <p>This Internet-Draft will expire in April 14, 2010.</p> |
---|
[446] | 508 | <h1><a id="rfc.copyrightnotice" href="#rfc.copyrightnotice">Copyright Notice</a></h1> |
---|
| 509 | <p>Copyright © 2009 IETF Trust and the persons identified as the document authors. All rights reserved.</p> |
---|
| 510 | <p>This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents in effect on the date |
---|
| 511 | of publication of this document (<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>). Please review these documents carefully, as they describe your rights and restrictions with respect to this document. |
---|
| 512 | </p> |
---|
[52] | 513 | <h1 id="rfc.abstract"><a href="#rfc.abstract">Abstract</a></h1> |
---|
| 514 | <p>The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypermedia information |
---|
| 515 | systems. HTTP has been in use by the World Wide Web global information initiative since 1990. This document is Part 5 of the |
---|
| 516 | seven-part specification that defines the protocol referred to as "HTTP/1.1" and, taken together, obsoletes RFC 2616. Part |
---|
| 517 | 5 defines range-specific requests and the rules for constructing and combining responses to those requests. |
---|
| 518 | </p> |
---|
| 519 | <h1 id="rfc.note.1"><a href="#rfc.note.1">Editorial Note (To be removed by RFC Editor)</a></h1> |
---|
| 520 | <p>Discussion of this draft should take place on the HTTPBIS working group mailing list (ietf-http-wg@w3.org). The current issues |
---|
[324] | 521 | list is at <<a href="http://tools.ietf.org/wg/httpbis/trac/report/11">http://tools.ietf.org/wg/httpbis/trac/report/11</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>>. |
---|
[153] | 522 | </p> |
---|
[604] | 523 | <p>The changes in this draft are summarized in <a href="#changes.since.07" title="Since draft-ietf-httpbis-p5-range-07">Appendix D.9</a>. |
---|
[52] | 524 | </p> |
---|
| 525 | <hr class="noprint"> |
---|
| 526 | <h1 class="np" id="rfc.toc"><a href="#rfc.toc">Table of Contents</a></h1> |
---|
| 527 | <ul class="toc"> |
---|
[96] | 528 | <li class="tocline0">1. <a href="#introduction">Introduction</a><ul class="toc"> |
---|
| 529 | <li class="tocline1">1.1 <a href="#intro.requirements">Requirements</a></li> |
---|
[424] | 530 | <li class="tocline1">1.2 <a href="#notation">Syntax Notation</a><ul class="toc"> |
---|
| 531 | <li class="tocline1">1.2.1 <a href="#core.rules">Core Rules</a></li> |
---|
| 532 | <li class="tocline1">1.2.2 <a href="#abnf.dependencies">ABNF Rules defined in other Parts of the Specification</a></li> |
---|
| 533 | </ul> |
---|
| 534 | </li> |
---|
[96] | 535 | </ul> |
---|
| 536 | </li> |
---|
[424] | 537 | <li class="tocline0">2. <a href="#range.units">Range Units</a></li> |
---|
| 538 | <li class="tocline0">3. <a href="#rfc.section.3">Status Code Definitions</a><ul class="toc"> |
---|
| 539 | <li class="tocline1">3.1 <a href="#status.206">206 Partial Content</a></li> |
---|
| 540 | <li class="tocline1">3.2 <a href="#status.416">416 Requested Range Not Satisfiable</a></li> |
---|
[52] | 541 | </ul> |
---|
| 542 | </li> |
---|
[424] | 543 | <li class="tocline0">4. <a href="#combining.byte.ranges">Combining Ranges</a></li> |
---|
| 544 | <li class="tocline0">5. <a href="#header.fields">Header Field Definitions</a><ul class="toc"> |
---|
| 545 | <li class="tocline1">5.1 <a href="#header.accept-ranges">Accept-Ranges</a></li> |
---|
| 546 | <li class="tocline1">5.2 <a href="#header.content-range">Content-Range</a></li> |
---|
| 547 | <li class="tocline1">5.3 <a href="#header.if-range">If-Range</a></li> |
---|
| 548 | <li class="tocline1">5.4 <a href="#header.range">Range</a><ul class="toc"> |
---|
| 549 | <li class="tocline1">5.4.1 <a href="#byte.ranges">Byte Ranges</a></li> |
---|
| 550 | <li class="tocline1">5.4.2 <a href="#range.retrieval.requests">Range Retrieval Requests</a></li> |
---|
[52] | 551 | </ul> |
---|
| 552 | </li> |
---|
| 553 | </ul> |
---|
| 554 | </li> |
---|
[424] | 555 | <li class="tocline0">6. <a href="#IANA.considerations">IANA Considerations</a><ul class="toc"> |
---|
[700] | 556 | <li class="tocline1">6.1 <a href="#status.code.registration">Status Code Registration</a></li> |
---|
| 557 | <li class="tocline1">6.2 <a href="#message.header.registration">Message Header Registration</a></li> |
---|
[253] | 558 | </ul> |
---|
| 559 | </li> |
---|
[424] | 560 | <li class="tocline0">7. <a href="#security.considerations">Security Considerations</a></li> |
---|
| 561 | <li class="tocline0">8. <a href="#ack">Acknowledgments</a></li> |
---|
| 562 | <li class="tocline0">9. <a href="#rfc.references">References</a><ul class="toc"> |
---|
| 563 | <li class="tocline1">9.1 <a href="#rfc.references.1">Normative References</a></li> |
---|
| 564 | <li class="tocline1">9.2 <a href="#rfc.references.2">Informative References</a></li> |
---|
[119] | 565 | </ul> |
---|
| 566 | </li> |
---|
[52] | 567 | <li class="tocline0"><a href="#rfc.authors">Authors' Addresses</a></li> |
---|
| 568 | <li class="tocline0">A. <a href="#internet.media.type.multipart.byteranges">Internet Media Type multipart/byteranges</a></li> |
---|
[99] | 569 | <li class="tocline0">B. <a href="#compatibility">Compatibility with Previous Versions</a><ul class="toc"> |
---|
| 570 | <li class="tocline1">B.1 <a href="#changes.from.rfc.2068">Changes from RFC 2068</a></li> |
---|
| 571 | <li class="tocline1">B.2 <a href="#changes.from.rfc.2616">Changes from RFC 2616</a></li> |
---|
| 572 | </ul> |
---|
| 573 | </li> |
---|
[421] | 574 | <li class="tocline0">C. <a href="#collected.abnf">Collected ABNF</a></li> |
---|
| 575 | <li class="tocline0">D. <a href="#change.log">Change Log (to be removed by RFC Editor before publication)</a><ul class="toc"> |
---|
| 576 | <li class="tocline1">D.1 <a href="#rfc.section.D.1">Since RFC2616</a></li> |
---|
| 577 | <li class="tocline1">D.2 <a href="#rfc.section.D.2">Since draft-ietf-httpbis-p5-range-00</a></li> |
---|
| 578 | <li class="tocline1">D.3 <a href="#rfc.section.D.3">Since draft-ietf-httpbis-p5-range-01</a></li> |
---|
| 579 | <li class="tocline1">D.4 <a href="#changes.since.02">Since draft-ietf-httpbis-p5-range-02</a></li> |
---|
| 580 | <li class="tocline1">D.5 <a href="#changes.since.03">Since draft-ietf-httpbis-p5-range-03</a></li> |
---|
| 581 | <li class="tocline1">D.6 <a href="#changes.since.04">Since draft-ietf-httpbis-p5-range-04</a></li> |
---|
| 582 | <li class="tocline1">D.7 <a href="#changes.since.05">Since draft-ietf-httpbis-p5-range-05</a></li> |
---|
[547] | 583 | <li class="tocline1">D.8 <a href="#changes.since.06">Since draft-ietf-httpbis-p5-range-06</a></li> |
---|
[604] | 584 | <li class="tocline1">D.9 <a href="#changes.since.07">Since draft-ietf-httpbis-p5-range-07</a></li> |
---|
[115] | 585 | </ul> |
---|
| 586 | </li> |
---|
[52] | 587 | <li class="tocline0"><a href="#rfc.index">Index</a></li> |
---|
| 588 | </ul> |
---|
| 589 | <h1 id="rfc.section.1" class="np"><a href="#rfc.section.1">1.</a> <a id="introduction" href="#introduction">Introduction</a></h1> |
---|
[158] | 590 | <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 cache |
---|
| 591 | has stored a partial representation, it is desirable to request the remainder of that representation in a subsequent request |
---|
| 592 | rather than transfer the entire representation. There are also a number of Web applications that benefit from being able to |
---|
| 593 | request only a subset of a larger representation, such as a single page of a very large document or only part of an image |
---|
| 594 | to be rendered by a device with limited local storage. |
---|
[52] | 595 | </p> |
---|
[163] | 596 | <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 |
---|
| 597 | 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 |
---|
| 598 | request without impacting interoperability. Partial responses are indicated by a distinct status code to not be mistaken for |
---|
| 599 | full responses by intermediate caches that might not implement the feature. |
---|
[158] | 600 | </p> |
---|
[163] | 601 | <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 |
---|
[158] | 602 | requests for byte ranges. |
---|
| 603 | </p> |
---|
[96] | 604 | <h2 id="rfc.section.1.1"><a href="#rfc.section.1.1">1.1</a> <a id="intro.requirements" href="#intro.requirements">Requirements</a></h2> |
---|
| 605 | <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" |
---|
| 606 | 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>. |
---|
| 607 | </p> |
---|
| 608 | <p id="rfc.section.1.1.p.2">An implementation is not compliant if it fails to satisfy one or more of the <em class="bcp14">MUST</em> or <em class="bcp14">REQUIRED</em> level requirements for the protocols it implements. An implementation that satisfies all the <em class="bcp14">MUST</em> or <em class="bcp14">REQUIRED</em> level and all the <em class="bcp14">SHOULD</em> level requirements for its protocols is said to be "unconditionally compliant"; one that satisfies all the <em class="bcp14">MUST</em> level requirements but not all the <em class="bcp14">SHOULD</em> level requirements for its protocols is said to be "conditionally compliant." |
---|
| 609 | </p> |
---|
[424] | 610 | <h2 id="rfc.section.1.2"><a href="#rfc.section.1.2">1.2</a> <a id="notation" href="#notation">Syntax Notation</a></h2> |
---|
[543] | 611 | <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. |
---|
| 612 | </p> |
---|
| 613 | <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="http://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 |
---|
[425] | 614 | (hexadecimal 0-9/A-F/a-f), LF (line feed), OCTET (any 8-bit sequence of data), SP (space), VCHAR (any visible USASCII character), |
---|
| 615 | and WSP (whitespace). |
---|
[52] | 616 | </p> |
---|
[424] | 617 | <h3 id="rfc.section.1.2.1"><a href="#rfc.section.1.2.1">1.2.1</a> <a id="core.rules" href="#core.rules">Core Rules</a></h3> |
---|
| 618 | <p id="rfc.section.1.2.1.p.1">The core rules below are defined in <a href="p1-messaging.html#basic.rules" title="Basic Rules">Section 1.2.2</a> of <a href="#Part1" id="rfc.xref.Part1.2"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>: |
---|
| 619 | </p> |
---|
[425] | 620 | <div id="rfc.figure.u.1"></div><pre class="inline"> <a href="#core.rules" class="smpl">token</a> = <token, 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>> |
---|
| 621 | <a href="#core.rules" class="smpl">OWS</a> = <OWS, 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#basic.rules" title="Basic Rules">Section 1.2.2</a>> |
---|
[424] | 622 | </pre><h3 id="rfc.section.1.2.2"><a href="#rfc.section.1.2.2">1.2.2</a> <a id="abnf.dependencies" href="#abnf.dependencies">ABNF Rules defined in other Parts of the Specification</a></h3> |
---|
| 623 | <p id="rfc.section.1.2.2.p.1">The ABNF rules below are defined in other parts:</p> |
---|
[678] | 624 | <div id="rfc.figure.u.2"></div><pre class="inline"> <a href="#abnf.dependencies" 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>> |
---|
[425] | 625 | </pre><div id="rfc.figure.u.3"></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#entity.tags" title="Entity Tags">Section 2</a>> |
---|
[424] | 626 | </pre><h1 id="rfc.section.2"><a href="#rfc.section.2">2.</a> <a id="range.units" href="#range.units">Range Units</a></h1> |
---|
| 627 | <p id="rfc.section.2.p.1">HTTP/1.1 allows a client to request that only part (a range of) the response entity be included within the response. HTTP/1.1 |
---|
| 628 | 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. An entity can be broken down into subranges according to various structural units. |
---|
[205] | 629 | </p> |
---|
[425] | 630 | <div id="rfc.figure.u.4"></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> |
---|
[229] | 631 | <a href="#range.units" class="smpl">bytes-unit</a> = "bytes" |
---|
[424] | 632 | <a href="#range.units" class="smpl">other-range-unit</a> = <a href="#core.rules" class="smpl">token</a> |
---|
| 633 | </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 |
---|
[393] | 634 | unit defined by HTTP/1.1 is "bytes". |
---|
[52] | 635 | </p> |
---|
[424] | 636 | <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 (<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. |
---|
[393] | 637 | </p> |
---|
[424] | 638 | <h1 id="rfc.section.3"><a href="#rfc.section.3">3.</a> Status Code Definitions |
---|
[52] | 639 | </h1> |
---|
| 640 | <div id="rfc.iref.3"></div> |
---|
| 641 | <div id="rfc.iref.s.1"></div> |
---|
[424] | 642 | <h2 id="rfc.section.3.1"><a href="#rfc.section.3.1">3.1</a> <a id="status.206" href="#status.206">206 Partial Content</a></h2> |
---|
| 643 | <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. |
---|
[52] | 644 | </p> |
---|
[424] | 645 | <p id="rfc.section.3.1.p.2">The response <em class="bcp14">MUST</em> include the following header fields: |
---|
[52] | 646 | </p> |
---|
| 647 | <ul> |
---|
[424] | 648 | <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 |
---|
[52] | 649 | 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. |
---|
| 650 | </li> |
---|
| 651 | <li>Date</li> |
---|
| 652 | <li>ETag and/or Content-Location, if the header would have been sent in a 200 response to the same request</li> |
---|
| 653 | <li>Expires, Cache-Control, and/or Vary, if the field-value might differ from that sent in any previous response for the same |
---|
| 654 | variant |
---|
| 655 | </li> |
---|
| 656 | </ul> |
---|
[424] | 657 | <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 entity-headers. Otherwise, the response <em class="bcp14">MUST</em> include all of the entity-headers that would have been returned with a 200 (OK) response to the same request. |
---|
[52] | 658 | </p> |
---|
[424] | 659 | <p id="rfc.section.3.1.p.4">A cache <em class="bcp14">MUST NOT</em> combine a 206 response with other previously cached content if the ETag or Last-Modified headers do not match exactly, see <a href="#combining.byte.ranges" title="Combining Ranges">Section 4</a>. |
---|
[52] | 660 | </p> |
---|
[424] | 661 | <p id="rfc.section.3.1.p.5">A cache that does not support the Range and Content-Range headers <em class="bcp14">MUST NOT</em> cache 206 (Partial Content) responses. Furthermore, if a response uses a range unit that is not understood by the cache, then |
---|
[393] | 662 | it <em class="bcp14">MUST NOT</em> be cached either. |
---|
[52] | 663 | </p> |
---|
| 664 | <div id="rfc.iref.4"></div> |
---|
| 665 | <div id="rfc.iref.s.2"></div> |
---|
[424] | 666 | <h2 id="rfc.section.3.2"><a href="#rfc.section.3.2">3.2</a> <a id="status.416" href="#status.416">416 Requested Range Not Satisfiable</a></h2> |
---|
| 667 | <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 request-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 |
---|
[52] | 668 | did not include an If-Range request-header field. (For byte-ranges, this means that the first-byte-pos of all of the byte-range-spec |
---|
| 669 | values were greater than the current length of the selected resource.) |
---|
| 670 | </p> |
---|
[424] | 671 | <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 entity-header field specifying the current length of the selected resource (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. |
---|
[52] | 672 | </p> |
---|
[424] | 673 | <h1 id="rfc.section.4"><a href="#rfc.section.4">4.</a> <a id="combining.byte.ranges" href="#combining.byte.ranges">Combining Ranges</a></h1> |
---|
| 674 | <p id="rfc.section.4.p.1">A response might transfer only a subrange of an entity-body, either the request included one or more Range specifications, |
---|
[393] | 675 | or because a connection was broken prematurely. After several such transfers, a cache might have received several ranges of |
---|
| 676 | the same entity-body. |
---|
[52] | 677 | </p> |
---|
[424] | 678 | <p id="rfc.section.4.p.2">If a cache has a stored non-empty set of subranges for an entity, and an incoming response transfers another subrange, the |
---|
[52] | 679 | cache <em class="bcp14">MAY</em> combine the new subrange with the existing set if both the following conditions are met: |
---|
| 680 | </p> |
---|
| 681 | <ul> |
---|
| 682 | <li>Both the incoming response and the cache entry have a cache validator.</li> |
---|
[424] | 683 | <li>The two cache validators match using the strong comparison function (see <a href="p4-conditional.html#weak.and.strong.validators" title="Weak and Strong Validators">Section 4</a> of <a href="#Part4" id="rfc.xref.Part4.2"><cite title="HTTP/1.1, part 4: Conditional Requests">[Part4]</cite></a>). |
---|
[52] | 684 | </li> |
---|
| 685 | </ul> |
---|
[424] | 686 | <p id="rfc.section.4.p.3">If either requirement is not met, the cache <em class="bcp14">MUST</em> use only the most recent partial response (based on the Date values transmitted with every response, and using the incoming |
---|
[52] | 687 | response if these values are equal or missing), and <em class="bcp14">MUST</em> discard the other partial information. |
---|
| 688 | </p> |
---|
[424] | 689 | <h1 id="rfc.section.5"><a href="#rfc.section.5">5.</a> <a id="header.fields" href="#header.fields">Header Field Definitions</a></h1> |
---|
| 690 | <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> |
---|
| 691 | <p id="rfc.section.5.p.2">For entity-header fields, both sender and recipient refer to either the client or the server, depending on who sends and who |
---|
[117] | 692 | receives the entity. |
---|
[52] | 693 | </p> |
---|
| 694 | <div id="rfc.iref.a.1"></div> |
---|
| 695 | <div id="rfc.iref.h.1"></div> |
---|
[424] | 696 | <h2 id="rfc.section.5.1"><a href="#rfc.section.5.1">5.1</a> <a id="header.accept-ranges" href="#header.accept-ranges">Accept-Ranges</a></h2> |
---|
[698] | 697 | <p id="rfc.section.5.1.p.1">The "Accept-Ranges" response-header field allows a resource to indicate its acceptance of range requests.</p> |
---|
[425] | 698 | <div id="rfc.figure.u.5"></div><pre class="inline"><span id="rfc.iref.g.4"></span><span id="rfc.iref.g.5"></span><span id="rfc.iref.g.6"></span> <a href="#header.accept-ranges" class="smpl">Accept-Ranges</a> = "Accept-Ranges" ":" <a href="#core.rules" class="smpl">OWS</a> <a href="#header.accept-ranges" class="smpl">Accept-Ranges-v</a> |
---|
[363] | 699 | <a href="#header.accept-ranges" class="smpl">Accept-Ranges-v</a> = <a href="#header.accept-ranges" class="smpl">acceptable-ranges</a> |
---|
[334] | 700 | <a href="#header.accept-ranges" class="smpl">acceptable-ranges</a> = 1#<a href="#range.units" class="smpl">range-unit</a> / "none" |
---|
[424] | 701 | </pre><p id="rfc.section.5.1.p.3">Origin servers that accept byte-range requests <em class="bcp14">MAY</em> send |
---|
[52] | 702 | </p> |
---|
[425] | 703 | <div id="rfc.figure.u.6"></div><pre class="text"> Accept-Ranges: bytes |
---|
[424] | 704 | </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 for the resource involved. Range units are defined in <a href="#range.units" title="Range Units">Section 2</a>. |
---|
[52] | 705 | </p> |
---|
[424] | 706 | <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 |
---|
[52] | 707 | </p> |
---|
[425] | 708 | <div id="rfc.figure.u.7"></div><pre class="text"> Accept-Ranges: none |
---|
[424] | 709 | </pre><p id="rfc.section.5.1.p.8">to advise the client not to attempt a range request.</p> |
---|
[52] | 710 | <div id="rfc.iref.c.1"></div> |
---|
| 711 | <div id="rfc.iref.h.2"></div> |
---|
[424] | 712 | <h2 id="rfc.section.5.2"><a href="#rfc.section.5.2">5.2</a> <a id="header.content-range" href="#header.content-range">Content-Range</a></h2> |
---|
[697] | 713 | <p id="rfc.section.5.2.p.1">The "Content-Range" entity-header field is sent with a partial entity-body to specify where in the full entity-body the partial |
---|
[424] | 714 | body should be applied. Range units are defined in <a href="#range.units" title="Range Units">Section 2</a>. |
---|
[52] | 715 | </p> |
---|
[425] | 716 | <div id="rfc.figure.u.8"></div><pre class="inline"><span id="rfc.iref.g.7"></span><span id="rfc.iref.g.8"></span><span id="rfc.iref.g.9"></span><span id="rfc.iref.g.10"></span><span id="rfc.iref.g.11"></span><span id="rfc.iref.g.12"></span> <a href="#header.content-range" class="smpl">Content-Range</a> = "Content-Range" ":" <a href="#core.rules" class="smpl">OWS</a> <a href="#header.content-range" class="smpl">Content-Range-v</a> |
---|
[363] | 717 | <a href="#header.content-range" class="smpl">Content-Range-v</a> = <a href="#header.content-range" class="smpl">content-range-spec</a> |
---|
[135] | 718 | |
---|
[229] | 719 | <a href="#header.content-range" class="smpl">content-range-spec</a> = <a href="#header.content-range" class="smpl">byte-content-range-spec</a> |
---|
[434] | 720 | / <a href="#header.content-range" class="smpl">other-content-range-spec</a> |
---|
[425] | 721 | <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> |
---|
[229] | 722 | <a href="#header.content-range" class="smpl">byte-range-resp-spec</a> "/" |
---|
[334] | 723 | ( <a href="#header.content-range" class="smpl">instance-length</a> / "*" ) |
---|
[135] | 724 | |
---|
[308] | 725 | <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>) |
---|
[334] | 726 | / "*" |
---|
[308] | 727 | |
---|
[425] | 728 | <a href="#header.content-range" class="smpl">instance-length</a> = 1*<a href="#notation" class="smpl">DIGIT</a> |
---|
[393] | 729 | |
---|
[425] | 730 | <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> |
---|
[393] | 731 | <a href="#header.content-range" class="smpl">other-range-resp-spec</a> |
---|
[425] | 732 | <a href="#header.content-range" class="smpl">other-range-resp-spec</a> = *<a href="#notation" class="smpl">CHAR</a> |
---|
[424] | 733 | </pre><p id="rfc.section.5.2.p.3">The header <em class="bcp14">SHOULD</em> indicate the total length of the full entity-body, unless this length is unknown or difficult to determine. The asterisk "*" |
---|
[52] | 734 | character means that the instance-length is unknown at the time when the response was generated. |
---|
| 735 | </p> |
---|
[424] | 736 | <p id="rfc.section.5.2.p.4">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. |
---|
[52] | 737 | </p> |
---|
[424] | 738 | <p id="rfc.section.5.2.p.5">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 |
---|
[52] | 739 | 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. |
---|
| 740 | </p> |
---|
[424] | 741 | <p id="rfc.section.5.2.p.6">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 |
---|
[576] | 742 | 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 "*". |
---|
[52] | 743 | </p> |
---|
[424] | 744 | <p id="rfc.section.5.2.p.7">Examples of byte-content-range-spec values, assuming that the entity contains a total of 1234 bytes: </p> |
---|
[52] | 745 | <ul> |
---|
| 746 | <li>The first 500 bytes: |
---|
[565] | 747 | <div id="rfc.figure.u.9"></div><pre class="text"> bytes 0-499/1234 |
---|
[52] | 748 | </pre> </li> |
---|
| 749 | <li>The second 500 bytes: |
---|
[565] | 750 | <div id="rfc.figure.u.10"></div><pre class="text"> bytes 500-999/1234 |
---|
[52] | 751 | </pre> </li> |
---|
| 752 | <li>All except for the first 500 bytes: |
---|
[565] | 753 | <div id="rfc.figure.u.11"></div><pre class="text"> bytes 500-1233/1234 |
---|
[52] | 754 | </pre> </li> |
---|
| 755 | <li>The last 500 bytes: |
---|
[565] | 756 | <div id="rfc.figure.u.12"></div><pre class="text"> bytes 734-1233/1234 |
---|
[52] | 757 | </pre> </li> |
---|
| 758 | </ul> |
---|
[424] | 759 | <p id="rfc.section.5.2.p.8">When an HTTP message includes the content of a single range (for example, a response to a request for a single range, or to |
---|
[52] | 760 | a request for a set of ranges that overlap without any holes), this content is transmitted with a Content-Range header, and |
---|
| 761 | a Content-Length header showing the number of bytes actually transferred. For example, |
---|
| 762 | </p> |
---|
[425] | 763 | <div id="rfc.figure.u.13"></div><pre class="text"> HTTP/1.1 206 Partial Content |
---|
[363] | 764 | Date: Wed, 15 Nov 1995 06:25:24 GMT |
---|
| 765 | Last-Modified: Wed, 15 Nov 1995 04:58:08 GMT |
---|
| 766 | Content-Range: bytes 21010-47021/47022 |
---|
| 767 | Content-Length: 26012 |
---|
| 768 | Content-Type: image/gif |
---|
[424] | 769 | </pre><p id="rfc.section.5.2.p.10">When an HTTP message includes the content of multiple ranges (for example, a response to a request for multiple non-overlapping |
---|
[52] | 770 | ranges), these are transmitted as a multipart message. The multipart media type used for this purpose is "multipart/byteranges" |
---|
[99] | 771 | as defined in <a href="#internet.media.type.multipart.byteranges" title="Internet Media Type multipart/byteranges">Appendix A</a>. See <a href="#changes.from.rfc.2068" title="Changes from RFC 2068">Appendix B.1</a> for a compatibility issue. |
---|
[52] | 772 | </p> |
---|
[424] | 773 | <p id="rfc.section.5.2.p.11">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. |
---|
[52] | 774 | </p> |
---|
[648] | 775 | <p id="rfc.section.5.2.p.12">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. |
---|
[52] | 776 | </p> |
---|
[424] | 777 | <p id="rfc.section.5.2.p.13">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 |
---|
[52] | 778 | the full entity). |
---|
| 779 | </p> |
---|
[424] | 780 | <p id="rfc.section.5.2.p.14">If the server receives a request (other than one including an If-Range request-header field) with an unsatisfiable Range request-header |
---|
[52] | 781 | field (that is, all of whose byte-range-spec values have a first-byte-pos value greater than the current length of the selected |
---|
[563] | 782 | 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>). |
---|
[52] | 783 | </p> |
---|
[563] | 784 | <div class="note"> |
---|
| 785 | <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 |
---|
[52] | 786 | an unsatisfiable Range request-header, since not all servers implement this request-header. |
---|
[563] | 787 | </p> |
---|
| 788 | </div> |
---|
[52] | 789 | <div id="rfc.iref.i.1"></div> |
---|
| 790 | <div id="rfc.iref.h.3"></div> |
---|
[424] | 791 | <h2 id="rfc.section.5.3"><a href="#rfc.section.5.3">5.3</a> <a id="header.if-range" href="#header.if-range">If-Range</a></h2> |
---|
| 792 | <p id="rfc.section.5.3.p.1">If a client has a partial copy of an entity in its cache, and wishes to have an up-to-date copy of the entire entity in its |
---|
[52] | 793 | cache, it could use the Range request-header with a conditional GET (using either or both of If-Unmodified-Since and If-Match.) |
---|
| 794 | However, if the condition fails because the entity has been modified, the client would then have to make a second request |
---|
| 795 | to obtain the entire current entity-body. |
---|
| 796 | </p> |
---|
[697] | 797 | <p id="rfc.section.5.3.p.2">The "If-Range" request-header field allows a client to "short-circuit" the second request. Informally, its meaning is `if |
---|
| 798 | the entity is unchanged, send me the part(s) that I am missing; otherwise, send me the entire new entity'. |
---|
[52] | 799 | </p> |
---|
[425] | 800 | <div id="rfc.figure.u.14"></div><pre class="inline"><span id="rfc.iref.g.13"></span><span id="rfc.iref.g.14"></span> <a href="#header.if-range" class="smpl">If-Range</a> = "If-Range" ":" <a href="#core.rules" class="smpl">OWS</a> <a href="#header.if-range" class="smpl">If-Range-v</a> |
---|
[363] | 801 | <a href="#header.if-range" class="smpl">If-Range-v</a> = <a href="#abnf.dependencies" class="smpl">entity-tag</a> / <a href="#abnf.dependencies" class="smpl">HTTP-date</a> |
---|
[424] | 802 | </pre><p id="rfc.section.5.3.p.4">If the client has no entity tag for an entity, but does have a Last-Modified date, it <em class="bcp14">MAY</em> use that date in an If-Range header. (The server can distinguish between a valid HTTP-date and any form of entity-tag by examining |
---|
[52] | 803 | no more than two characters.) The If-Range header <em class="bcp14">SHOULD</em> only be used together with a Range header, and <em class="bcp14">MUST</em> be ignored if the request does not include a Range header, or if the server does not support the sub-range operation. |
---|
| 804 | </p> |
---|
[619] | 805 | <p id="rfc.section.5.3.p.5">If the entity tag given in the If-Range header matches the current cache validator for the entity, then the server <em class="bcp14">SHOULD</em> provide the specified sub-range of the entity using a 206 (Partial Content) response. If the cache validator does not match, |
---|
| 806 | then the server <em class="bcp14">SHOULD</em> return the entire entity using a 200 (OK) response. |
---|
[52] | 807 | </p> |
---|
| 808 | <div id="rfc.iref.r.1"></div> |
---|
| 809 | <div id="rfc.iref.h.4"></div> |
---|
[424] | 810 | <h2 id="rfc.section.5.4"><a href="#rfc.section.5.4">5.4</a> <a id="header.range" href="#header.range">Range</a></h2> |
---|
| 811 | <h3 id="rfc.section.5.4.1"><a href="#rfc.section.5.4.1">5.4.1</a> <a id="byte.ranges" href="#byte.ranges">Byte Ranges</a></h3> |
---|
| 812 | <p id="rfc.section.5.4.1.p.1">Since all HTTP entities are represented in HTTP messages as sequences of bytes, the concept of a byte range is meaningful |
---|
[52] | 813 | for any HTTP entity. (However, not all clients and servers need to support byte-range operations.) |
---|
| 814 | </p> |
---|
[424] | 815 | <p id="rfc.section.5.4.1.p.2">Byte range specifications in HTTP apply to the sequence of bytes in the entity-body (not necessarily the same as the message-body).</p> |
---|
[229] | 816 | <div id="rule.ranges-specifier"> |
---|
[564] | 817 | <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 entity. |
---|
[229] | 818 | </p> |
---|
| 819 | </div> |
---|
[425] | 820 | <div id="rfc.figure.u.15"></div><pre class="inline"><span id="rfc.iref.g.15"></span><span id="rfc.iref.g.16"></span><span id="rfc.iref.g.17"></span><span id="rfc.iref.g.18"></span><span id="rfc.iref.g.19"></span><span id="rfc.iref.g.20"></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> |
---|
[334] | 821 | <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> ) |
---|
[434] | 822 | <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> ] |
---|
[425] | 823 | <a href="#rule.ranges-specifier" class="smpl">first-byte-pos</a> = 1*<a href="#notation" class="smpl">DIGIT</a> |
---|
| 824 | <a href="#rule.ranges-specifier" class="smpl">last-byte-pos</a> = 1*<a href="#notation" class="smpl">DIGIT</a> |
---|
[424] | 825 | </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 |
---|
[576] | 826 | gives the byte-offset of the last byte in the range; that is, the byte positions specified are inclusive. Byte offsets start |
---|
| 827 | at zero. |
---|
[52] | 828 | </p> |
---|
[424] | 829 | <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 |
---|
[52] | 830 | 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. |
---|
| 831 | </p> |
---|
[424] | 832 | <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 entity-body, last-byte-pos |
---|
[52] | 833 | is taken to be equal to one less than the current length of the entity-body in bytes. |
---|
| 834 | </p> |
---|
[424] | 835 | <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 entity.</p> |
---|
[425] | 836 | <div id="rfc.figure.u.16"></div><pre class="inline"><span id="rfc.iref.g.21"></span><span id="rfc.iref.g.22"></span> <a href="#rule.ranges-specifier" class="smpl">suffix-byte-range-spec</a> = "-" <a href="#rule.ranges-specifier" class="smpl">suffix-length</a> |
---|
| 837 | <a href="#rule.ranges-specifier" class="smpl">suffix-length</a> = 1*<a href="#notation" class="smpl">DIGIT</a> |
---|
[576] | 838 | </pre><p id="rfc.section.5.4.1.p.10">A suffix-byte-range-spec is used to specify the suffix of the entity-body, of a length given by the suffix-length value. (That |
---|
| 839 | is, this form specifies the last N bytes of an entity-body.) If the entity is shorter than the specified suffix-length, the |
---|
| 840 | entire entity-body is used. |
---|
[52] | 841 | </p> |
---|
[424] | 842 | <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 |
---|
[52] | 843 | length of the entity-body, or at least one suffix-byte-range-spec with a non-zero suffix-length, then the byte-range-set is |
---|
| 844 | 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 status of 416 (Requested range not satisfiable). Otherwise, the server <em class="bcp14">SHOULD</em> return a response with a status of 206 (Partial Content) containing the satisfiable ranges of the entity-body. |
---|
| 845 | </p> |
---|
[424] | 846 | <p id="rfc.section.5.4.1.p.12">Examples of byte-ranges-specifier values (assuming an entity-body of length 10000): </p> |
---|
[52] | 847 | <ul> |
---|
[565] | 848 | <li>The first 500 bytes (byte offsets 0-499, inclusive): |
---|
| 849 | <div id="rfc.figure.u.17"></div><pre class="text"> bytes=0-499 |
---|
| 850 | </pre> </li> |
---|
| 851 | <li>The second 500 bytes (byte offsets 500-999, inclusive): |
---|
| 852 | <div id="rfc.figure.u.18"></div><pre class="text"> bytes=500-999 |
---|
| 853 | </pre> </li> |
---|
| 854 | <li>The final 500 bytes (byte offsets 9500-9999, inclusive): |
---|
| 855 | <div id="rfc.figure.u.19"></div><pre class="text"> bytes=-500 |
---|
| 856 | </pre> Or: <div id="rfc.figure.u.20"></div><pre class="text"> bytes=9500- |
---|
| 857 | </pre> </li> |
---|
| 858 | <li>The first and last bytes only (bytes 0 and 9999): |
---|
| 859 | <div id="rfc.figure.u.21"></div><pre class="text"> bytes=0-0,-1 |
---|
| 860 | </pre> </li> |
---|
| 861 | <li>Several legal but not canonical specifications of the second 500 bytes (byte offsets 500-999, inclusive): |
---|
| 862 | <div id="rfc.figure.u.22"></div><pre class="text"> bytes=500-600,601-999 |
---|
| 863 | bytes=500-700,601-999 |
---|
| 864 | </pre> </li> |
---|
[52] | 865 | </ul> |
---|
[424] | 866 | <h3 id="rfc.section.5.4.2"><a href="#rfc.section.5.4.2">5.4.2</a> <a id="range.retrieval.requests" href="#range.retrieval.requests">Range Retrieval Requests</a></h3> |
---|
[698] | 867 | <p id="rfc.section.5.4.2.p.1">The "Range" request-header field defines the GET method (conditional or not) to request one or more sub-ranges of the response |
---|
| 868 | entity-body, instead of the entire entity body. |
---|
[52] | 869 | </p> |
---|
[565] | 870 | <div id="rfc.figure.u.23"></div><pre class="inline"><span id="rfc.iref.g.23"></span> <a href="#range.retrieval.requests" class="smpl">Range</a> = "Range" ":" <a href="#core.rules" class="smpl">OWS</a> <a href="#range.retrieval.requests" class="smpl">Range-v</a> |
---|
[434] | 871 | <a href="#range.retrieval.requests" class="smpl">Range-v</a> = <a href="#rule.ranges-specifier" class="smpl">byte-ranges-specifier</a> |
---|
[564] | 872 | / <a href="#range.retrieval.requests" class="smpl">other-ranges-specifier</a> |
---|
[643] | 873 | <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> |
---|
| 874 | <a href="#range.retrieval.requests" class="smpl">other-range-set</a> = 1*<a href="#notation" class="smpl">CHAR</a> |
---|
[424] | 875 | </pre><p id="rfc.section.5.4.2.p.3">A server <em class="bcp14">MAY</em> ignore the Range header. However, HTTP/1.1 origin servers and intermediate caches ought to support byte ranges when possible, |
---|
[52] | 876 | since Range supports efficient recovery from partially failed transfers, and supports efficient partial retrieval of large |
---|
| 877 | entities. |
---|
| 878 | </p> |
---|
[424] | 879 | <p id="rfc.section.5.4.2.p.4">If the server supports the Range header and the specified range or ranges are appropriate for the entity: </p> |
---|
[52] | 880 | <ul> |
---|
| 881 | <li>The presence of a Range header in an unconditional GET modifies what is returned if the GET is otherwise successful. In other |
---|
| 882 | words, the response carries a status code of 206 (Partial Content) instead of 200 (OK). |
---|
| 883 | </li> |
---|
| 884 | <li>The presence of a Range header in a conditional GET (a request using one or both of If-Modified-Since and If-None-Match, or |
---|
| 885 | one or both of If-Unmodified-Since and If-Match) modifies what is returned if the GET is otherwise successful and the condition |
---|
| 886 | is true. It does not affect the 304 (Not Modified) response returned if the conditional is false. |
---|
| 887 | </li> |
---|
| 888 | </ul> |
---|
[424] | 889 | <p id="rfc.section.5.4.2.p.5">In some cases, it might be more appropriate to use the If-Range header (see <a href="#header.if-range" id="rfc.xref.header.if-range.2" title="If-Range">Section 5.3</a>) in addition to the Range header. |
---|
[52] | 890 | </p> |
---|
[424] | 891 | <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 |
---|
[52] | 892 | entity in reply, it <em class="bcp14">SHOULD</em> only return the requested range to its client. It <em class="bcp14">SHOULD</em> store the entire received response in its cache if that is consistent with its cache allocation policies. |
---|
| 893 | </p> |
---|
[424] | 894 | <h1 id="rfc.section.6"><a href="#rfc.section.6">6.</a> <a id="IANA.considerations" href="#IANA.considerations">IANA Considerations</a></h1> |
---|
[700] | 895 | <h2 id="rfc.section.6.1"><a href="#rfc.section.6.1">6.1</a> <a id="status.code.registration" href="#status.code.registration">Status Code Registration</a></h2> |
---|
| 896 | <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>> should be updated with the registrations below: |
---|
[203] | 897 | </p> |
---|
[290] | 898 | <div id="rfc.table.1"> |
---|
[700] | 899 | <div id="iana.status.code.registration.table"></div> |
---|
| 900 | <table class="tt full left" cellpadding="3" cellspacing="0"> |
---|
| 901 | <thead> |
---|
| 902 | <tr> |
---|
| 903 | <th>Value</th> |
---|
| 904 | <th>Description</th> |
---|
| 905 | <th>Reference</th> |
---|
| 906 | </tr> |
---|
| 907 | </thead> |
---|
| 908 | <tbody> |
---|
| 909 | <tr> |
---|
[704] | 910 | <td class="left">206</td> |
---|
| 911 | <td class="left">Partial Content</td> |
---|
| 912 | <td class="left"> <a href="#status.206" id="rfc.xref.status.206.1" title="206 Partial Content">Section 3.1</a> |
---|
[700] | 913 | </td> |
---|
| 914 | </tr> |
---|
| 915 | <tr> |
---|
[704] | 916 | <td class="left">416</td> |
---|
| 917 | <td class="left">Requested Range Not Satisfiable</td> |
---|
| 918 | <td class="left"> <a href="#status.416" id="rfc.xref.status.416.2" title="416 Requested Range Not Satisfiable">Section 3.2</a> |
---|
[700] | 919 | </td> |
---|
| 920 | </tr> |
---|
| 921 | </tbody> |
---|
| 922 | </table> |
---|
| 923 | </div> |
---|
| 924 | <h2 id="rfc.section.6.2"><a href="#rfc.section.6.2">6.2</a> <a id="message.header.registration" href="#message.header.registration">Message Header Registration</a></h2> |
---|
| 925 | <p id="rfc.section.6.2.p.1">The Message Header 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>> should 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>): |
---|
| 926 | </p> |
---|
| 927 | <div id="rfc.table.2"> |
---|
[290] | 928 | <div id="iana.header.registration.table"></div> |
---|
[675] | 929 | <table class="tt full left" cellpadding="3" cellspacing="0"> |
---|
[253] | 930 | <thead> |
---|
| 931 | <tr> |
---|
| 932 | <th>Header Field Name</th> |
---|
| 933 | <th>Protocol</th> |
---|
| 934 | <th>Status</th> |
---|
| 935 | <th>Reference</th> |
---|
| 936 | </tr> |
---|
| 937 | </thead> |
---|
| 938 | <tbody> |
---|
| 939 | <tr> |
---|
[704] | 940 | <td class="left">Accept-Ranges</td> |
---|
| 941 | <td class="left">http</td> |
---|
| 942 | <td class="left">standard</td> |
---|
| 943 | <td class="left"> <a href="#header.accept-ranges" id="rfc.xref.header.accept-ranges.1" title="Accept-Ranges">Section 5.1</a> |
---|
[253] | 944 | </td> |
---|
| 945 | </tr> |
---|
| 946 | <tr> |
---|
[704] | 947 | <td class="left">Content-Range</td> |
---|
| 948 | <td class="left">http</td> |
---|
| 949 | <td class="left">standard</td> |
---|
| 950 | <td class="left"> <a href="#header.content-range" id="rfc.xref.header.content-range.4" title="Content-Range">Section 5.2</a> |
---|
[253] | 951 | </td> |
---|
| 952 | </tr> |
---|
| 953 | <tr> |
---|
[704] | 954 | <td class="left">If-Range</td> |
---|
| 955 | <td class="left">http</td> |
---|
| 956 | <td class="left">standard</td> |
---|
| 957 | <td class="left"> <a href="#header.if-range" id="rfc.xref.header.if-range.3" title="If-Range">Section 5.3</a> |
---|
[253] | 958 | </td> |
---|
| 959 | </tr> |
---|
| 960 | <tr> |
---|
[704] | 961 | <td class="left">Range</td> |
---|
| 962 | <td class="left">http</td> |
---|
| 963 | <td class="left">standard</td> |
---|
| 964 | <td class="left"> <a href="#header.range" id="rfc.xref.header.range.5" title="Range">Section 5.4</a> |
---|
[253] | 965 | </td> |
---|
| 966 | </tr> |
---|
| 967 | </tbody> |
---|
| 968 | </table> |
---|
| 969 | </div> |
---|
[700] | 970 | <p id="rfc.section.6.2.p.2">The change controller is: "IETF (iesg@ietf.org) - Internet Engineering Task Force".</p> |
---|
[424] | 971 | <h1 id="rfc.section.7"><a href="#rfc.section.7">7.</a> <a id="security.considerations" href="#security.considerations">Security Considerations</a></h1> |
---|
[425] | 972 | <p id="rfc.section.7.p.1">No additional security considerations have been identified beyond those applicable to HTTP in general <a href="#Part1" id="rfc.xref.Part1.6"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>. |
---|
[52] | 973 | </p> |
---|
[424] | 974 | <h1 id="rfc.section.8"><a href="#rfc.section.8">8.</a> <a id="ack" href="#ack">Acknowledgments</a></h1> |
---|
| 975 | <p id="rfc.section.8.p.1">Most of the specification of ranges is based on work originally done by Ari Luotonen and John Franks, with additional input |
---|
[159] | 976 | from Steve Zilles, Daniel W. Connolly, Roy T. Fielding, Jim Gettys, Martin Hamilton, Koen Holtman, Shel Kaplan, Paul Leach, |
---|
| 977 | Alex Lopez-Ortiz, Larry Masinter, Jeff Mogul, Lou Montulli, David W. Morris, Luigi Rizzo, and Bill Weihl. |
---|
[52] | 978 | </p> |
---|
[424] | 979 | <h1 id="rfc.references"><a id="rfc.section.9" href="#rfc.section.9">9.</a> References |
---|
[52] | 980 | </h1> |
---|
[424] | 981 | <h2 id="rfc.references.1"><a href="#rfc.section.9.1" id="rfc.section.9.1">9.1</a> Normative References |
---|
[119] | 982 | </h2> |
---|
[704] | 983 | <table> |
---|
[52] | 984 | <tr> |
---|
| 985 | <td class="reference"><b id="Part1">[Part1]</b></td> |
---|
[704] | 986 | <td class="top"><a href="mailto:fielding@gbiv.com" title="Day Software">Fielding, R., Ed.</a>, <a href="mailto:jg@laptop.org" title="One Laptop per Child">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. F. Reschke, Ed.</a>, “<a href="http://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-latest">HTTP/1.1, part 1: URIs, Connections, and Message Parsing</a>”, Internet-Draft draft-ietf-httpbis-p1-messaging-latest (work in progress), October 2009. |
---|
[52] | 987 | </td> |
---|
| 988 | </tr> |
---|
| 989 | <tr> |
---|
[138] | 990 | <td class="reference"><b id="Part3">[Part3]</b></td> |
---|
[704] | 991 | <td class="top"><a href="mailto:fielding@gbiv.com" title="Day Software">Fielding, R., Ed.</a>, <a href="mailto:jg@laptop.org" title="One Laptop per Child">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. F. Reschke, Ed.</a>, “<a href="http://tools.ietf.org/html/draft-ietf-httpbis-p3-payload-latest">HTTP/1.1, part 3: Message Payload and Content Negotiation</a>”, Internet-Draft draft-ietf-httpbis-p3-payload-latest (work in progress), October 2009. |
---|
[138] | 992 | </td> |
---|
| 993 | </tr> |
---|
| 994 | <tr> |
---|
[52] | 995 | <td class="reference"><b id="Part4">[Part4]</b></td> |
---|
[704] | 996 | <td class="top"><a href="mailto:fielding@gbiv.com" title="Day Software">Fielding, R., Ed.</a>, <a href="mailto:jg@laptop.org" title="One Laptop per Child">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. F. Reschke, Ed.</a>, “<a href="http://tools.ietf.org/html/draft-ietf-httpbis-p4-conditional-latest">HTTP/1.1, part 4: Conditional Requests</a>”, Internet-Draft draft-ietf-httpbis-p4-conditional-latest (work in progress), October 2009. |
---|
[52] | 997 | </td> |
---|
| 998 | </tr> |
---|
| 999 | <tr> |
---|
[138] | 1000 | <td class="reference"><b id="Part6">[Part6]</b></td> |
---|
[704] | 1001 | <td class="top"><a href="mailto:fielding@gbiv.com" title="Day Software">Fielding, R., Ed.</a>, <a href="mailto:jg@laptop.org" title="One Laptop per Child">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>, <a href="mailto:mnot@mnot.net">Nottingham, M., Ed.</a>, and <a href="mailto:julian.reschke@greenbytes.de" title="greenbytes GmbH">J. F. Reschke, Ed.</a>, “<a href="http://tools.ietf.org/html/draft-ietf-httpbis-p6-cache-latest">HTTP/1.1, part 6: Caching</a>”, Internet-Draft draft-ietf-httpbis-p6-cache-latest (work in progress), October 2009. |
---|
[138] | 1002 | </td> |
---|
| 1003 | </tr> |
---|
| 1004 | <tr> |
---|
[131] | 1005 | <td class="reference"><b id="RFC2046">[RFC2046]</b></td> |
---|
[704] | 1006 | <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="http://tools.ietf.org/html/rfc2046">Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types</a>”, RFC 2046, November 1996. |
---|
[131] | 1007 | </td> |
---|
| 1008 | </tr> |
---|
| 1009 | <tr> |
---|
[96] | 1010 | <td class="reference"><b id="RFC2119">[RFC2119]</b></td> |
---|
[704] | 1011 | <td class="top"><a href="mailto:sob@harvard.edu" title="Harvard University">Bradner, S.</a>, “<a href="http://tools.ietf.org/html/rfc2119">Key words for use in RFCs to Indicate Requirement Levels</a>”, BCP 14, RFC 2119, March 1997. |
---|
[96] | 1012 | </td> |
---|
| 1013 | </tr> |
---|
[425] | 1014 | <tr> |
---|
| 1015 | <td class="reference"><b id="RFC5234">[RFC5234]</b></td> |
---|
[704] | 1016 | <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="http://tools.ietf.org/html/rfc5234">Augmented BNF for Syntax Specifications: ABNF</a>”, STD 68, RFC 5234, January 2008. |
---|
[425] | 1017 | </td> |
---|
| 1018 | </tr> |
---|
[119] | 1019 | </table> |
---|
[424] | 1020 | <h2 id="rfc.references.2"><a href="#rfc.section.9.2" id="rfc.section.9.2">9.2</a> Informative References |
---|
[119] | 1021 | </h2> |
---|
[704] | 1022 | <table> |
---|
[96] | 1023 | <tr> |
---|
[52] | 1024 | <td class="reference"><b id="RFC2616">[RFC2616]</b></td> |
---|
[704] | 1025 | <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="http://tools.ietf.org/html/rfc2616">Hypertext Transfer Protocol -- HTTP/1.1</a>”, RFC 2616, June 1999. |
---|
[52] | 1026 | </td> |
---|
| 1027 | </tr> |
---|
[196] | 1028 | <tr> |
---|
[253] | 1029 | <td class="reference"><b id="RFC3864">[RFC3864]</b></td> |
---|
[704] | 1030 | <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="http://tools.ietf.org/html/rfc3864">Registration Procedures for Message Header Fields</a>”, BCP 90, RFC 3864, September 2004. |
---|
[253] | 1031 | </td> |
---|
| 1032 | </tr> |
---|
| 1033 | <tr> |
---|
[196] | 1034 | <td class="reference"><b id="RFC4288">[RFC4288]</b></td> |
---|
[704] | 1035 | <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="http://tools.ietf.org/html/rfc4288">Media Type Specifications and Registration Procedures</a>”, BCP 13, RFC 4288, December 2005. |
---|
[196] | 1036 | </td> |
---|
| 1037 | </tr> |
---|
[52] | 1038 | </table> |
---|
[662] | 1039 | <div class="avoidbreak"> |
---|
| 1040 | <h1 id="rfc.authors"><a href="#rfc.authors">Authors' Addresses</a></h1> |
---|
| 1041 | <address class="vcard"><span class="vcardline"><span class="fn">Roy T. Fielding</span> |
---|
| 1042 | (editor) |
---|
[704] | 1043 | <span class="n hidden"><span class="family-name">Fielding</span><span class="given-name">Roy T.</span></span></span><span class="org vcardline">Day Software</span><span class="adr"><span class="street-address vcardline">23 Corporate Plaza DR, Suite 280</span><span class="vcardline"><span class="locality">Newport Beach</span>, <span class="region">CA</span> <span class="postal-code">92660</span></span><span class="country-name vcardline">USA</span></span><span class="vcardline tel">Phone: <a href="tel:+1-949-706-5300"><span class="value">+1-949-706-5300</span></a></span><span class="vcardline tel"><span class="type">Fax</span>: <a href="fax:+1-949-706-5305"><span class="value">+1-949-706-5305</span></a></span><span class="vcardline">EMail: <a href="mailto:fielding@gbiv.com"><span class="email">fielding@gbiv.com</span></a></span><span class="vcardline">URI: <a href="http://roy.gbiv.com/" class="url">http://roy.gbiv.com/</a></span></address> |
---|
| 1044 | <address class="vcard"><span class="vcardline"><span class="fn">Jim Gettys</span><span class="n hidden"><span class="family-name">Gettys</span><span class="given-name">Jim</span></span></span><span class="org vcardline">One Laptop per Child</span><span class="adr"><span class="street-address vcardline">21 Oak Knoll Road</span><span class="vcardline"><span class="locality">Carlisle</span>, <span class="region">MA</span> <span class="postal-code">01741</span></span><span class="country-name vcardline">USA</span></span><span class="vcardline">EMail: <a href="mailto:jg@laptop.org"><span class="email">jg@laptop.org</span></a></span><span class="vcardline">URI: <a href="http://www.laptop.org/" class="url">http://www.laptop.org/</a></span></address> |
---|
| 1045 | <address class="vcard"><span class="vcardline"><span class="fn">Jeffrey C. Mogul</span><span class="n hidden"><span class="family-name">Mogul</span><span class="given-name">Jeffrey C.</span></span></span><span class="org vcardline">Hewlett-Packard Company</span><span class="adr"><span class="street-address vcardline">HP Labs, Large Scale Systems Group</span><span class="street-address vcardline">1501 Page Mill Road, MS 1177</span><span class="vcardline"><span class="locality">Palo Alto</span>, <span class="region">CA</span> <span class="postal-code">94304</span></span><span class="country-name vcardline">USA</span></span><span class="vcardline">EMail: <a href="mailto:JeffMogul@acm.org"><span class="email">JeffMogul@acm.org</span></a></span></address> |
---|
| 1046 | <address class="vcard"><span class="vcardline"><span class="fn">Henrik Frystyk Nielsen</span><span class="n hidden"><span class="family-name">Frystyk</span></span></span><span class="org vcardline">Microsoft Corporation</span><span class="adr"><span class="street-address vcardline">1 Microsoft Way</span><span class="vcardline"><span class="locality">Redmond</span>, <span class="region">WA</span> <span class="postal-code">98052</span></span><span class="country-name vcardline">USA</span></span><span class="vcardline">EMail: <a href="mailto:henrikn@microsoft.com"><span class="email">henrikn@microsoft.com</span></a></span></address> |
---|
| 1047 | <address class="vcard"><span class="vcardline"><span class="fn">Larry Masinter</span><span class="n hidden"><span class="family-name">Masinter</span><span class="given-name">Larry</span></span></span><span class="org vcardline">Adobe Systems, Incorporated</span><span class="adr"><span class="street-address vcardline">345 Park Ave</span><span class="vcardline"><span class="locality">San Jose</span>, <span class="region">CA</span> <span class="postal-code">95110</span></span><span class="country-name vcardline">USA</span></span><span class="vcardline">EMail: <a href="mailto:LMM@acm.org"><span class="email">LMM@acm.org</span></a></span><span class="vcardline">URI: <a href="http://larry.masinter.net/" class="url">http://larry.masinter.net/</a></span></address> |
---|
| 1048 | <address class="vcard"><span class="vcardline"><span class="fn">Paul J. Leach</span><span class="n hidden"><span class="family-name">Leach</span><span class="given-name">Paul J.</span></span></span><span class="org vcardline">Microsoft Corporation</span><span class="adr"><span class="street-address vcardline">1 Microsoft Way</span><span class="vcardline"><span class="locality">Redmond</span>, <span class="region">WA</span> <span class="postal-code">98052</span></span></span><span class="vcardline">EMail: <a href="mailto:paulle@microsoft.com"><span class="email">paulle@microsoft.com</span></a></span></address> |
---|
| 1049 | <address class="vcard"><span class="vcardline"><span class="fn">Tim Berners-Lee</span><span class="n hidden"><span class="family-name">Berners-Lee</span><span class="given-name">Tim</span></span></span><span class="org vcardline">World Wide Web Consortium</span><span class="adr"><span class="street-address vcardline">MIT Computer Science and Artificial Intelligence Laboratory</span><span class="street-address vcardline">The Stata Center, Building 32</span><span class="street-address vcardline">32 Vassar Street</span><span class="vcardline"><span class="locality">Cambridge</span>, <span class="region">MA</span> <span class="postal-code">02139</span></span><span class="country-name vcardline">USA</span></span><span class="vcardline">EMail: <a href="mailto:timbl@w3.org"><span class="email">timbl@w3.org</span></a></span><span class="vcardline">URI: <a href="http://www.w3.org/People/Berners-Lee/" class="url">http://www.w3.org/People/Berners-Lee/</a></span></address> |
---|
[662] | 1050 | <address class="vcard"><span class="vcardline"><span class="fn">Yves Lafon</span> |
---|
| 1051 | (editor) |
---|
[704] | 1052 | <span class="n hidden"><span class="family-name">Lafon</span><span class="given-name">Yves</span></span></span><span class="org vcardline">World Wide Web Consortium</span><span class="adr"><span class="street-address vcardline">W3C / ERCIM</span><span class="street-address vcardline">2004, rte des Lucioles</span><span class="vcardline"><span class="locality">Sophia-Antipolis</span>, <span class="region">AM</span> <span class="postal-code">06902</span></span><span class="country-name vcardline">France</span></span><span class="vcardline">EMail: <a href="mailto:ylafon@w3.org"><span class="email">ylafon@w3.org</span></a></span><span class="vcardline">URI: <a href="http://www.raubacapeu.net/people/yves/" class="url">http://www.raubacapeu.net/people/yves/</a></span></address> |
---|
[662] | 1053 | <address class="vcard"><span class="vcardline"><span class="fn">Julian F. Reschke</span> |
---|
| 1054 | (editor) |
---|
[704] | 1055 | <span class="n hidden"><span class="family-name">Reschke</span><span class="given-name">Julian F.</span></span></span><span class="org vcardline">greenbytes GmbH</span><span class="adr"><span class="street-address vcardline">Hafenweg 16</span><span class="vcardline"><span class="locality">Muenster</span>, <span class="region">NW</span> <span class="postal-code">48155</span></span><span class="country-name vcardline">Germany</span></span><span class="vcardline tel">Phone: <a href="tel:+492512807760"><span class="value">+49 251 2807760</span></a></span><span class="vcardline tel"><span class="type">Fax</span>: <a href="fax:+492512807761"><span class="value">+49 251 2807761</span></a></span><span class="vcardline">EMail: <a href="mailto:julian.reschke@greenbytes.de"><span class="email">julian.reschke@greenbytes.de</span></a></span><span class="vcardline">URI: <a href="http://greenbytes.de/tech/webdav/" class="url">http://greenbytes.de/tech/webdav/</a></span></address> |
---|
[662] | 1056 | </div> |
---|
[52] | 1057 | <div id="rfc.iref.m.1"></div> |
---|
| 1058 | <div id="rfc.iref.m.2"></div> |
---|
[662] | 1059 | <h1 id="rfc.section.A" class="np"><a href="#rfc.section.A">A.</a> <a id="internet.media.type.multipart.byteranges" href="#internet.media.type.multipart.byteranges">Internet Media Type multipart/byteranges</a></h1> |
---|
[52] | 1060 | <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 |
---|
[328] | 1061 | 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="http://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>. |
---|
[52] | 1062 | </p> |
---|
[648] | 1063 | <div class="note"> |
---|
| 1064 | <p> <b>Note:</b> Despite the name "multipart/byteranges" is not limited to the byte ranges only. |
---|
| 1065 | </p> |
---|
| 1066 | </div> |
---|
| 1067 | <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 |
---|
[52] | 1068 | required boundary parameter specifies the boundary string used to separate each body-part. |
---|
| 1069 | </p> |
---|
[648] | 1070 | <p id="rfc.section.A.p.4"> </p> |
---|
[52] | 1071 | <dl> |
---|
[196] | 1072 | <dt>Type name:</dt> |
---|
[52] | 1073 | <dd>multipart</dd> |
---|
[196] | 1074 | <dt>Subtype name:</dt> |
---|
[52] | 1075 | <dd>byteranges</dd> |
---|
| 1076 | <dt>Required parameters:</dt> |
---|
| 1077 | <dd>boundary</dd> |
---|
| 1078 | <dt>Optional parameters:</dt> |
---|
| 1079 | <dd>none</dd> |
---|
| 1080 | <dt>Encoding considerations:</dt> |
---|
| 1081 | <dd>only "7bit", "8bit", or "binary" are permitted</dd> |
---|
| 1082 | <dt>Security considerations:</dt> |
---|
| 1083 | <dd>none</dd> |
---|
[196] | 1084 | <dt>Interoperability considerations:</dt> |
---|
| 1085 | <dd>none</dd> |
---|
| 1086 | <dt>Published specification:</dt> |
---|
| 1087 | <dd>This specification (see <a href="#internet.media.type.multipart.byteranges" title="Internet Media Type multipart/byteranges">Appendix A</a>). |
---|
| 1088 | </dd> |
---|
| 1089 | <dt>Applications that use this media type:</dt> |
---|
| 1090 | <dt>Additional information:</dt> |
---|
| 1091 | <dd> |
---|
| 1092 | <dl> |
---|
| 1093 | <dt>Magic number(s):</dt> |
---|
| 1094 | <dd>none</dd> |
---|
| 1095 | <dt>File extension(s):</dt> |
---|
| 1096 | <dd>none</dd> |
---|
| 1097 | <dt>Macintosh file type code(s):</dt> |
---|
| 1098 | <dd>none</dd> |
---|
| 1099 | </dl> |
---|
| 1100 | </dd> |
---|
| 1101 | <dt>Person and email address to contact for further information:</dt> |
---|
| 1102 | <dd>See Authors Section.</dd> |
---|
| 1103 | <dt>Intended usage:</dt> |
---|
| 1104 | <dd>COMMON</dd> |
---|
| 1105 | <dt>Restrictions on usage:</dt> |
---|
| 1106 | <dd>none</dd> |
---|
| 1107 | <dt>Author/Change controller:</dt> |
---|
| 1108 | <dd>IESG</dd> |
---|
[52] | 1109 | </dl> |
---|
[565] | 1110 | <div id="rfc.figure.u.24"></div> |
---|
[435] | 1111 | <p>For example:</p><pre class="text"> HTTP/1.1 206 Partial Content |
---|
| 1112 | Date: Wed, 15 Nov 1995 06:25:24 GMT |
---|
| 1113 | Last-Modified: Wed, 15 Nov 1995 04:58:08 GMT |
---|
| 1114 | Content-type: multipart/byteranges; boundary=THIS_STRING_SEPARATES |
---|
| 1115 | |
---|
| 1116 | --THIS_STRING_SEPARATES |
---|
| 1117 | Content-type: application/pdf |
---|
| 1118 | Content-range: bytes 500-999/8000 |
---|
| 1119 | |
---|
| 1120 | ...the first range... |
---|
| 1121 | --THIS_STRING_SEPARATES |
---|
| 1122 | Content-type: application/pdf |
---|
| 1123 | Content-range: bytes 7000-7999/8000 |
---|
| 1124 | |
---|
| 1125 | ...the second range |
---|
| 1126 | --THIS_STRING_SEPARATES-- |
---|
[648] | 1127 | </pre><div id="rfc.figure.u.25"></div> |
---|
| 1128 | <p>Other example:</p> <pre class="text"> HTTP/1.1 206 Partial Content |
---|
| 1129 | Date: Tue, 14 Nov 1995 06:25:24 GMT |
---|
| 1130 | Last-Modified: Tue, 14 July 04:58:08 GMT |
---|
| 1131 | Content-type: multipart/byteranges; boundary=THIS_STRING_SEPARATES |
---|
| 1132 | |
---|
| 1133 | --THIS_STRING_SEPARATES |
---|
| 1134 | Content-type: video/example |
---|
| 1135 | Content-range: exampleunit 1.2-4.3/25 |
---|
| 1136 | |
---|
| 1137 | ...the first range... |
---|
| 1138 | --THIS_STRING_SEPARATES |
---|
| 1139 | Content-type: video/example |
---|
| 1140 | Content-range: exampleunit 11.2-14.3/25 |
---|
| 1141 | |
---|
| 1142 | ...the second range |
---|
| 1143 | --THIS_STRING_SEPARATES-- |
---|
| 1144 | </pre> <p id="rfc.section.A.p.7">Notes: </p> |
---|
[52] | 1145 | <ol> |
---|
| 1146 | <li>Additional CRLFs may precede the first boundary string in the entity.</li> |
---|
[196] | 1147 | <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. |
---|
[52] | 1148 | </li> |
---|
| 1149 | <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. |
---|
| 1150 | </li> |
---|
| 1151 | </ol> |
---|
[99] | 1152 | <h1 id="rfc.section.B"><a href="#rfc.section.B">B.</a> <a id="compatibility" href="#compatibility">Compatibility with Previous Versions</a></h1> |
---|
| 1153 | <h2 id="rfc.section.B.1"><a href="#rfc.section.B.1">B.1</a> <a id="changes.from.rfc.2068" href="#changes.from.rfc.2068">Changes from RFC 2068</a></h2> |
---|
[138] | 1154 | <p id="rfc.section.B.1.p.1">Transfer-coding and message lengths all interact in ways that required fixing exactly when chunked encoding is used (to allow |
---|
| 1155 | for transfer encoding that may not be self delimiting); it was important to straighten out exactly how message lengths are |
---|
[425] | 1156 | computed. (<a href="#header.content-range" id="rfc.xref.header.content-range.5" title="Content-Range">Section 5.2</a>, see also <a href="#Part1" id="rfc.xref.Part1.7"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>, <a href="#Part3" id="rfc.xref.Part3.1"><cite title="HTTP/1.1, part 3: Message Payload and Content Negotiation">[Part3]</cite></a> and <a href="#Part6" id="rfc.xref.Part6.1"><cite title="HTTP/1.1, part 6: Caching">[Part6]</cite></a>) |
---|
[138] | 1157 | </p> |
---|
| 1158 | <p id="rfc.section.B.1.p.2">There are situations where a server (especially a proxy) does not know the full length of a response but is capable of serving |
---|
[52] | 1159 | a byterange request. We therefore need a mechanism to allow byteranges with a content-range not indicating the full length |
---|
[424] | 1160 | of the message. (<a href="#header.content-range" id="rfc.xref.header.content-range.6" title="Content-Range">Section 5.2</a>) |
---|
[52] | 1161 | </p> |
---|
[138] | 1162 | <p id="rfc.section.B.1.p.3">Range request responses would become very verbose if all meta-data were always returned; by allowing the server to only send |
---|
[700] | 1163 | needed headers in a 206 response, this problem can be avoided. (Section <a href="#status.206" id="rfc.xref.status.206.2" title="206 Partial Content">3.1</a> and <a href="#header.if-range" id="rfc.xref.header.if-range.4" title="If-Range">5.3</a>) |
---|
[52] | 1164 | </p> |
---|
[138] | 1165 | <p id="rfc.section.B.1.p.4">Fix problem with unsatisfiable range requests; there are two cases: syntactic problems, and range doesn't exist in the document. |
---|
[52] | 1166 | The 416 status code was needed to resolve this ambiguity needed to indicate an error for a byte range request that falls outside |
---|
[700] | 1167 | of the actual contents of a document. (Section <a href="#status.416" id="rfc.xref.status.416.3" title="416 Requested Range Not Satisfiable">3.2</a>, <a href="#header.content-range" id="rfc.xref.header.content-range.7" title="Content-Range">5.2</a>) |
---|
[52] | 1168 | </p> |
---|
[99] | 1169 | <h2 id="rfc.section.B.2"><a href="#rfc.section.B.2">B.2</a> <a id="changes.from.rfc.2616" href="#changes.from.rfc.2616">Changes from RFC 2616</a></h2> |
---|
[700] | 1170 | <p id="rfc.section.B.2.p.1">Clarify that it is not ok to use a weak cache validator in a 206 response. (<a href="#status.206" id="rfc.xref.status.206.3" title="206 Partial Content">Section 3.1</a>) |
---|
[105] | 1171 | </p> |
---|
[332] | 1172 | <p id="rfc.section.B.2.p.2">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>) |
---|
| 1173 | </p> |
---|
[421] | 1174 | <h1 id="rfc.section.C"><a href="#rfc.section.C">C.</a> <a id="collected.abnf" href="#collected.abnf">Collected ABNF</a></h1> |
---|
[648] | 1175 | <div id="rfc.figure.u.26"></div> <pre class="inline"><a href="#header.accept-ranges" class="smpl">Accept-Ranges</a> = "Accept-Ranges:" OWS Accept-Ranges-v |
---|
[427] | 1176 | <a href="#header.accept-ranges" class="smpl">Accept-Ranges-v</a> = acceptable-ranges |
---|
| 1177 | |
---|
| 1178 | <a href="#header.content-range" class="smpl">Content-Range</a> = "Content-Range:" OWS Content-Range-v |
---|
| 1179 | <a href="#header.content-range" class="smpl">Content-Range-v</a> = content-range-spec |
---|
| 1180 | |
---|
[678] | 1181 | <a href="#abnf.dependencies" class="smpl">HTTP-date</a> = <HTTP-date, defined in [Part1], Section 6.1> |
---|
[427] | 1182 | |
---|
| 1183 | <a href="#header.if-range" class="smpl">If-Range</a> = "If-Range:" OWS If-Range-v |
---|
| 1184 | <a href="#header.if-range" class="smpl">If-Range-v</a> = entity-tag / HTTP-date |
---|
| 1185 | |
---|
| 1186 | <a href="#core.rules" class="smpl">OWS</a> = <OWS, defined in [Part1], Section 1.2.2> |
---|
| 1187 | |
---|
[434] | 1188 | <a href="#range.retrieval.requests" class="smpl">Range</a> = "Range:" OWS Range-v |
---|
| 1189 | <a href="#range.retrieval.requests" class="smpl">Range-v</a> = byte-ranges-specifier / other-ranges-specifier |
---|
[427] | 1190 | |
---|
| 1191 | <a href="#header.accept-ranges" class="smpl">acceptable-ranges</a> = ( *( "," OWS ) range-unit *( OWS "," [ OWS |
---|
[421] | 1192 | range-unit ] ) ) / "none" |
---|
[428] | 1193 | |
---|
[427] | 1194 | <a href="#header.content-range" class="smpl">byte-content-range-spec</a> = bytes-unit SP byte-range-resp-spec "/" ( |
---|
[421] | 1195 | instance-length / "*" ) |
---|
[427] | 1196 | <a href="#header.content-range" class="smpl">byte-range-resp-spec</a> = ( first-byte-pos "-" last-byte-pos ) / "*" |
---|
| 1197 | <a href="#rule.ranges-specifier" class="smpl">byte-range-set</a> = ( *( "," OWS ) byte-range-spec ) / ( |
---|
[421] | 1198 | suffix-byte-range-spec *( OWS "," [ ( OWS byte-range-spec ) / |
---|
| 1199 | suffix-byte-range-spec ] ) ) |
---|
[427] | 1200 | <a href="#rule.ranges-specifier" class="smpl">byte-range-spec</a> = first-byte-pos "-" [ last-byte-pos ] |
---|
| 1201 | <a href="#rule.ranges-specifier" class="smpl">byte-ranges-specifier</a> = bytes-unit "=" byte-range-set |
---|
| 1202 | <a href="#range.units" class="smpl">bytes-unit</a> = "bytes" |
---|
| 1203 | |
---|
| 1204 | <a href="#header.content-range" class="smpl">content-range-spec</a> = byte-content-range-spec / |
---|
[421] | 1205 | other-content-range-spec |
---|
[428] | 1206 | |
---|
[427] | 1207 | <a href="#abnf.dependencies" class="smpl">entity-tag</a> = <entity-tag, defined in [Part4], Section 2> |
---|
| 1208 | |
---|
| 1209 | <a href="#rule.ranges-specifier" class="smpl">first-byte-pos</a> = 1*DIGIT |
---|
| 1210 | |
---|
| 1211 | <a href="#header.content-range" class="smpl">instance-length</a> = 1*DIGIT |
---|
| 1212 | |
---|
| 1213 | <a href="#rule.ranges-specifier" class="smpl">last-byte-pos</a> = 1*DIGIT |
---|
| 1214 | |
---|
| 1215 | <a href="#header.content-range" class="smpl">other-content-range-spec</a> = other-range-unit SP other-range-resp-spec |
---|
| 1216 | <a href="#header.content-range" class="smpl">other-range-resp-spec</a> = *CHAR |
---|
[647] | 1217 | <a href="#range.retrieval.requests" class="smpl">other-range-set</a> = 1*CHAR |
---|
[427] | 1218 | <a href="#range.units" class="smpl">other-range-unit</a> = token |
---|
[647] | 1219 | <a href="#range.retrieval.requests" class="smpl">other-ranges-specifier</a> = other-range-unit "=" other-range-set |
---|
[427] | 1220 | |
---|
| 1221 | <a href="#range.units" class="smpl">range-unit</a> = bytes-unit / other-range-unit |
---|
| 1222 | |
---|
| 1223 | <a href="#rule.ranges-specifier" class="smpl">suffix-byte-range-spec</a> = "-" suffix-length |
---|
| 1224 | <a href="#rule.ranges-specifier" class="smpl">suffix-length</a> = 1*DIGIT |
---|
| 1225 | |
---|
| 1226 | <a href="#core.rules" class="smpl">token</a> = <token, defined in [Part1], Section 1.2.2> |
---|
[648] | 1227 | </pre> <div id="rfc.figure.u.27"></div> |
---|
[454] | 1228 | <p>ABNF diagnostics:</p><pre class="inline">; Accept-Ranges defined but not used |
---|
[421] | 1229 | ; Content-Range defined but not used |
---|
| 1230 | ; If-Range defined but not used |
---|
| 1231 | ; Range defined but not used |
---|
[454] | 1232 | </pre><h1 id="rfc.section.D"><a href="#rfc.section.D">D.</a> <a id="change.log" href="#change.log">Change Log (to be removed by RFC Editor before publication)</a></h1> |
---|
[421] | 1233 | <h2 id="rfc.section.D.1"><a href="#rfc.section.D.1">D.1</a> Since RFC2616 |
---|
[115] | 1234 | </h2> |
---|
[421] | 1235 | <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>. |
---|
[115] | 1236 | </p> |
---|
[421] | 1237 | <h2 id="rfc.section.D.2"><a href="#rfc.section.D.2">D.2</a> Since draft-ietf-httpbis-p5-range-00 |
---|
[115] | 1238 | </h2> |
---|
[421] | 1239 | <p id="rfc.section.D.2.p.1">Closed issues: </p> |
---|
[116] | 1240 | <ul> |
---|
[324] | 1241 | <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>>) |
---|
[116] | 1242 | </li> |
---|
[324] | 1243 | <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" |
---|
[152] | 1244 | </li> |
---|
[324] | 1245 | <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" |
---|
[131] | 1246 | </li> |
---|
[116] | 1247 | </ul> |
---|
[421] | 1248 | <h2 id="rfc.section.D.3"><a href="#rfc.section.D.3">D.3</a> Since draft-ietf-httpbis-p5-range-01 |
---|
[170] | 1249 | </h2> |
---|
[421] | 1250 | <p id="rfc.section.D.3.p.1">Closed issues: </p> |
---|
[200] | 1251 | <ul> |
---|
[324] | 1252 | <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" |
---|
[200] | 1253 | </li> |
---|
| 1254 | </ul> |
---|
[421] | 1255 | <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>>): |
---|
[205] | 1256 | </p> |
---|
| 1257 | <ul> |
---|
| 1258 | <li>Add explicit references to BNF syntax and rules imported from other parts of the specification.</li> |
---|
| 1259 | </ul> |
---|
[421] | 1260 | <h2 id="rfc.section.D.4"><a href="#rfc.section.D.4">D.4</a> <a id="changes.since.02" href="#changes.since.02">Since draft-ietf-httpbis-p5-range-02</a></h2> |
---|
| 1261 | <p id="rfc.section.D.4.p.1">Ongoing work on IANA Message Header Registration (<<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/40">http://tools.ietf.org/wg/httpbis/trac/ticket/40</a>>): |
---|
[253] | 1262 | </p> |
---|
| 1263 | <ul> |
---|
| 1264 | <li>Reference RFC 3984, and update header registrations for headers defined in this document.</li> |
---|
| 1265 | </ul> |
---|
[421] | 1266 | <h2 id="rfc.section.D.5"><a href="#rfc.section.D.5">D.5</a> <a id="changes.since.03" href="#changes.since.03">Since draft-ietf-httpbis-p5-range-03</a></h2> |
---|
| 1267 | <h2 id="rfc.section.D.6"><a href="#rfc.section.D.6">D.6</a> <a id="changes.since.04" href="#changes.since.04">Since draft-ietf-httpbis-p5-range-04</a></h2> |
---|
| 1268 | <p id="rfc.section.D.6.p.1">Closed issues: </p> |
---|
[332] | 1269 | <ul> |
---|
| 1270 | <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" |
---|
| 1271 | </li> |
---|
| 1272 | </ul> |
---|
[421] | 1273 | <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>>): |
---|
[334] | 1274 | </p> |
---|
| 1275 | <ul> |
---|
| 1276 | <li>Use "/" instead of "|" for alternatives.</li> |
---|
[363] | 1277 | <li>Introduce new ABNF rules for "bad" whitespace ("BWS"), optional whitespace ("OWS") and required whitespace ("RWS").</li> |
---|
| 1278 | <li>Rewrite ABNFs to spell out whitespace rules, factor out header value format definitions.</li> |
---|
[334] | 1279 | </ul> |
---|
[421] | 1280 | <h2 id="rfc.section.D.7"><a href="#rfc.section.D.7">D.7</a> <a id="changes.since.05" href="#changes.since.05">Since draft-ietf-httpbis-p5-range-05</a></h2> |
---|
[438] | 1281 | <p id="rfc.section.D.7.p.1">Closed issues: </p> |
---|
| 1282 | <ul> |
---|
| 1283 | <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" |
---|
| 1284 | </li> |
---|
| 1285 | </ul> |
---|
| 1286 | <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>>): |
---|
[399] | 1287 | </p> |
---|
| 1288 | <ul> |
---|
| 1289 | <li>Remove bias in favor of byte ranges; allow custom ranges in ABNF.</li> |
---|
| 1290 | </ul> |
---|
[543] | 1291 | <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>>): |
---|
[421] | 1292 | </p> |
---|
| 1293 | <ul> |
---|
[424] | 1294 | <li>Add appendix containing collected and expanded ABNF, reorganize ABNF introduction.</li> |
---|
[421] | 1295 | </ul> |
---|
[547] | 1296 | <h2 id="rfc.section.D.8"><a href="#rfc.section.D.8">D.8</a> <a id="changes.since.06" href="#changes.since.06">Since draft-ietf-httpbis-p5-range-06</a></h2> |
---|
[576] | 1297 | <p id="rfc.section.D.8.p.1">Closed issues: </p> |
---|
| 1298 | <ul> |
---|
| 1299 | <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" |
---|
| 1300 | </li> |
---|
| 1301 | </ul> |
---|
[604] | 1302 | <h2 id="rfc.section.D.9"><a href="#rfc.section.D.9">D.9</a> <a id="changes.since.07" href="#changes.since.07">Since draft-ietf-httpbis-p5-range-07</a></h2> |
---|
[619] | 1303 | <p id="rfc.section.D.9.p.1">Closed issues: </p> |
---|
| 1304 | <ul> |
---|
| 1305 | <li>Fixed discrepancy in the If-Range definition about allowed validators.</li> |
---|
[648] | 1306 | <li> <<a href="http://trac.tools.ietf.org/wg/httpbis/trac/ticket/150">http://trac.tools.ietf.org/wg/httpbis/trac/ticket/150</a>>: "multipart/byteranges for custom range units" |
---|
| 1307 | </li> |
---|
[643] | 1308 | <li> <<a href="http://trac.tools.ietf.org/wg/httpbis/trac/ticket/151">http://trac.tools.ietf.org/wg/httpbis/trac/ticket/151</a>>: "range unit missing from other-ranges-specifier in Range header" |
---|
| 1309 | </li> |
---|
[700] | 1310 | <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" |
---|
| 1311 | </li> |
---|
[619] | 1312 | </ul> |
---|
[52] | 1313 | <h1 id="rfc.index"><a href="#rfc.index">Index</a></h1> |
---|
| 1314 | <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> |
---|
| 1315 | </p> |
---|
| 1316 | <div class="print2col"> |
---|
| 1317 | <ul class="ind"> |
---|
| 1318 | <li class="indline0"><a id="rfc.index.2" href="#rfc.index.2"><b>2</b></a><ul class="ind"> |
---|
[700] | 1319 | <li class="indline1">206 Partial Content (status code) <a class="iref" href="#rfc.iref.3"><b>3.1</b></a>, <a class="iref" href="#rfc.xref.status.206.1">6.1</a>, <a class="iref" href="#rfc.xref.status.206.2">B.1</a>, <a class="iref" href="#rfc.xref.status.206.3">B.2</a></li> |
---|
[52] | 1320 | </ul> |
---|
| 1321 | </li> |
---|
| 1322 | <li class="indline0"><a id="rfc.index.4" href="#rfc.index.4"><b>4</b></a><ul class="ind"> |
---|
[700] | 1323 | <li class="indline1">416 Requested Range Not Satisfiable (status code) <a class="iref" href="#rfc.iref.4"><b>3.2</b></a>, <a class="iref" href="#rfc.xref.status.416.1">5.2</a>, <a class="iref" href="#rfc.xref.status.416.2">6.1</a>, <a class="iref" href="#rfc.xref.status.416.3">B.1</a></li> |
---|
[52] | 1324 | </ul> |
---|
| 1325 | </li> |
---|
| 1326 | <li class="indline0"><a id="rfc.index.A" href="#rfc.index.A"><b>A</b></a><ul class="ind"> |
---|
[700] | 1327 | <li class="indline1">Accept-Ranges header <a class="iref" href="#rfc.iref.a.1"><b>5.1</b></a>, <a class="iref" href="#rfc.xref.header.accept-ranges.1">6.2</a></li> |
---|
[52] | 1328 | </ul> |
---|
| 1329 | </li> |
---|
| 1330 | <li class="indline0"><a id="rfc.index.C" href="#rfc.index.C"><b>C</b></a><ul class="ind"> |
---|
[700] | 1331 | <li class="indline1">Content-Range header <a class="iref" href="#rfc.xref.header.content-range.1">2</a>, <a class="iref" href="#rfc.xref.header.content-range.2">3.1</a>, <a class="iref" href="#rfc.xref.header.content-range.3">3.2</a>, <a class="iref" href="#rfc.iref.c.1"><b>5.2</b></a>, <a class="iref" href="#rfc.xref.header.content-range.4">6.2</a>, <a class="iref" href="#rfc.xref.header.content-range.5">B.1</a>, <a class="iref" href="#rfc.xref.header.content-range.6">B.1</a>, <a class="iref" href="#rfc.xref.header.content-range.7">B.1</a></li> |
---|
[52] | 1332 | </ul> |
---|
| 1333 | </li> |
---|
| 1334 | <li class="indline0"><a id="rfc.index.G" href="#rfc.index.G"><b>G</b></a><ul class="ind"> |
---|
| 1335 | <li class="indline1"><tt>Grammar</tt> |
---|
| 1336 | <ul class="ind"> |
---|
[424] | 1337 | <li class="indline1"><tt>Accept-Ranges</tt> <a class="iref" href="#rfc.iref.g.4"><b>5.1</b></a></li> |
---|
| 1338 | <li class="indline1"><tt>Accept-Ranges-v</tt> <a class="iref" href="#rfc.iref.g.5"><b>5.1</b></a></li> |
---|
| 1339 | <li class="indline1"><tt>acceptable-ranges</tt> <a class="iref" href="#rfc.iref.g.6"><b>5.1</b></a></li> |
---|
| 1340 | <li class="indline1"><tt>byte-content-range-spec</tt> <a class="iref" href="#rfc.iref.g.10"><b>5.2</b></a></li> |
---|
| 1341 | <li class="indline1"><tt>byte-range-resp-spec</tt> <a class="iref" href="#rfc.iref.g.11"><b>5.2</b></a></li> |
---|
| 1342 | <li class="indline1"><tt>byte-range-set</tt> <a class="iref" href="#rfc.iref.g.17"><b>5.4.1</b></a></li> |
---|
| 1343 | <li class="indline1"><tt>byte-range-spec</tt> <a class="iref" href="#rfc.iref.g.18"><b>5.4.1</b></a></li> |
---|
| 1344 | <li class="indline1"><tt>byte-ranges-specifier</tt> <a class="iref" href="#rfc.iref.g.16"><b>5.4.1</b></a></li> |
---|
| 1345 | <li class="indline1"><tt>bytes-unit</tt> <a class="iref" href="#rfc.iref.g.2"><b>2</b></a></li> |
---|
| 1346 | <li class="indline1"><tt>Content-Range</tt> <a class="iref" href="#rfc.iref.g.7"><b>5.2</b></a></li> |
---|
| 1347 | <li class="indline1"><tt>content-range-spec</tt> <a class="iref" href="#rfc.iref.g.9"><b>5.2</b></a></li> |
---|
| 1348 | <li class="indline1"><tt>Content-Range-v</tt> <a class="iref" href="#rfc.iref.g.8"><b>5.2</b></a></li> |
---|
| 1349 | <li class="indline1"><tt>first-byte-pos</tt> <a class="iref" href="#rfc.iref.g.19"><b>5.4.1</b></a></li> |
---|
| 1350 | <li class="indline1"><tt>If-Range</tt> <a class="iref" href="#rfc.iref.g.13"><b>5.3</b></a></li> |
---|
| 1351 | <li class="indline1"><tt>If-Range-v</tt> <a class="iref" href="#rfc.iref.g.14"><b>5.3</b></a></li> |
---|
| 1352 | <li class="indline1"><tt>instance-length</tt> <a class="iref" href="#rfc.iref.g.12"><b>5.2</b></a></li> |
---|
| 1353 | <li class="indline1"><tt>last-byte-pos</tt> <a class="iref" href="#rfc.iref.g.20"><b>5.4.1</b></a></li> |
---|
| 1354 | <li class="indline1"><tt>other-range-unit</tt> <a class="iref" href="#rfc.iref.g.3"><b>2</b></a></li> |
---|
| 1355 | <li class="indline1"><tt>Range</tt> <a class="iref" href="#rfc.iref.g.23"><b>5.4.2</b></a></li> |
---|
| 1356 | <li class="indline1"><tt>range-unit</tt> <a class="iref" href="#rfc.iref.g.1"><b>2</b></a></li> |
---|
| 1357 | <li class="indline1"><tt>ranges-specifier</tt> <a class="iref" href="#rfc.iref.g.15"><b>5.4.1</b></a></li> |
---|
| 1358 | <li class="indline1"><tt>suffix-byte-range-spec</tt> <a class="iref" href="#rfc.iref.g.21"><b>5.4.1</b></a></li> |
---|
| 1359 | <li class="indline1"><tt>suffix-length</tt> <a class="iref" href="#rfc.iref.g.22"><b>5.4.1</b></a></li> |
---|
[52] | 1360 | </ul> |
---|
| 1361 | </li> |
---|
| 1362 | </ul> |
---|
| 1363 | </li> |
---|
| 1364 | <li class="indline0"><a id="rfc.index.H" href="#rfc.index.H"><b>H</b></a><ul class="ind"> |
---|
| 1365 | <li class="indline1">Headers |
---|
| 1366 | <ul class="ind"> |
---|
[700] | 1367 | <li class="indline1">Accept-Ranges <a class="iref" href="#rfc.iref.h.1"><b>5.1</b></a>, <a class="iref" href="#rfc.xref.header.accept-ranges.1">6.2</a></li> |
---|
| 1368 | <li class="indline1">Content-Range <a class="iref" href="#rfc.xref.header.content-range.1">2</a>, <a class="iref" href="#rfc.xref.header.content-range.2">3.1</a>, <a class="iref" href="#rfc.xref.header.content-range.3">3.2</a>, <a class="iref" href="#rfc.iref.h.2"><b>5.2</b></a>, <a class="iref" href="#rfc.xref.header.content-range.4">6.2</a>, <a class="iref" href="#rfc.xref.header.content-range.5">B.1</a>, <a class="iref" href="#rfc.xref.header.content-range.6">B.1</a>, <a class="iref" href="#rfc.xref.header.content-range.7">B.1</a></li> |
---|
| 1369 | <li class="indline1">If-Range <a class="iref" href="#rfc.xref.header.if-range.1">3.1</a>, <a class="iref" href="#rfc.iref.h.3"><b>5.3</b></a>, <a class="iref" href="#rfc.xref.header.if-range.2">5.4.2</a>, <a class="iref" href="#rfc.xref.header.if-range.3">6.2</a>, <a class="iref" href="#rfc.xref.header.if-range.4">B.1</a></li> |
---|
| 1370 | <li class="indline1">Range <a class="iref" href="#rfc.xref.header.range.1">2</a>, <a class="iref" href="#rfc.xref.header.range.2">2</a>, <a class="iref" href="#rfc.xref.header.range.3">3.1</a>, <a class="iref" href="#rfc.xref.header.range.4">3.2</a>, <a class="iref" href="#rfc.iref.h.4"><b>5.4</b></a>, <a class="iref" href="#rfc.xref.header.range.5">6.2</a></li> |
---|
[52] | 1371 | </ul> |
---|
| 1372 | </li> |
---|
| 1373 | </ul> |
---|
| 1374 | </li> |
---|
| 1375 | <li class="indline0"><a id="rfc.index.I" href="#rfc.index.I"><b>I</b></a><ul class="ind"> |
---|
[700] | 1376 | <li class="indline1">If-Range header <a class="iref" href="#rfc.xref.header.if-range.1">3.1</a>, <a class="iref" href="#rfc.iref.i.1"><b>5.3</b></a>, <a class="iref" href="#rfc.xref.header.if-range.2">5.4.2</a>, <a class="iref" href="#rfc.xref.header.if-range.3">6.2</a>, <a class="iref" href="#rfc.xref.header.if-range.4">B.1</a></li> |
---|
[52] | 1377 | </ul> |
---|
| 1378 | </li> |
---|
| 1379 | <li class="indline0"><a id="rfc.index.M" href="#rfc.index.M"><b>M</b></a><ul class="ind"> |
---|
| 1380 | <li class="indline1">Media Type |
---|
| 1381 | <ul class="ind"> |
---|
| 1382 | <li class="indline1">multipart/byteranges <a class="iref" href="#rfc.iref.m.1"><b>A</b></a></li> |
---|
| 1383 | <li class="indline1">multipart/x-byteranges <a class="iref" href="#rfc.iref.m.4">A</a></li> |
---|
| 1384 | </ul> |
---|
| 1385 | </li> |
---|
| 1386 | <li class="indline1">multipart/byteranges Media Type <a class="iref" href="#rfc.iref.m.2"><b>A</b></a></li> |
---|
| 1387 | <li class="indline1">multipart/x-byteranges Media Type <a class="iref" href="#rfc.iref.m.3">A</a></li> |
---|
| 1388 | </ul> |
---|
| 1389 | </li> |
---|
| 1390 | <li class="indline0"><a id="rfc.index.P" href="#rfc.index.P"><b>P</b></a><ul class="ind"> |
---|
[425] | 1391 | <li class="indline1"><em>Part1</em> <a class="iref" href="#rfc.xref.Part1.1">1.2</a>, <a class="iref" href="#rfc.xref.Part1.2">1.2.1</a>, <a class="iref" href="#rfc.xref.Part1.3">1.2.1</a>, <a class="iref" href="#rfc.xref.Part1.4">1.2.1</a>, <a class="iref" href="#rfc.xref.Part1.5">1.2.2</a>, <a class="iref" href="#rfc.xref.Part1.6">7</a>, <a class="iref" href="#Part1"><b>9.1</b></a>, <a class="iref" href="#rfc.xref.Part1.7">B.1</a><ul class="ind"> |
---|
[424] | 1392 | <li class="indline1"><em>Section 1.2</em> <a class="iref" href="#rfc.xref.Part1.1">1.2</a></li> |
---|
[425] | 1393 | <li class="indline1"><em>Section 1.2.2</em> <a class="iref" href="#rfc.xref.Part1.2">1.2.1</a>, <a class="iref" href="#rfc.xref.Part1.3">1.2.1</a>, <a class="iref" href="#rfc.xref.Part1.4">1.2.1</a></li> |
---|
[678] | 1394 | <li class="indline1"><em>Section 6.1</em> <a class="iref" href="#rfc.xref.Part1.5">1.2.2</a></li> |
---|
[52] | 1395 | </ul> |
---|
| 1396 | </li> |
---|
[424] | 1397 | <li class="indline1"><em>Part3</em> <a class="iref" href="#Part3"><b>9.1</b></a>, <a class="iref" href="#rfc.xref.Part3.1">B.1</a></li> |
---|
| 1398 | <li class="indline1"><em>Part4</em> <a class="iref" href="#rfc.xref.Part4.1">1.2.2</a>, <a class="iref" href="#rfc.xref.Part4.2">4</a>, <a class="iref" href="#Part4"><b>9.1</b></a><ul class="ind"> |
---|
| 1399 | <li class="indline1"><em>Section 2</em> <a class="iref" href="#rfc.xref.Part4.1">1.2.2</a></li> |
---|
| 1400 | <li class="indline1"><em>Section 4</em> <a class="iref" href="#rfc.xref.Part4.2">4</a></li> |
---|
[205] | 1401 | </ul> |
---|
| 1402 | </li> |
---|
[424] | 1403 | <li class="indline1"><em>Part6</em> <a class="iref" href="#Part6"><b>9.1</b></a>, <a class="iref" href="#rfc.xref.Part6.1">B.1</a></li> |
---|
[52] | 1404 | </ul> |
---|
| 1405 | </li> |
---|
| 1406 | <li class="indline0"><a id="rfc.index.R" href="#rfc.index.R"><b>R</b></a><ul class="ind"> |
---|
[700] | 1407 | <li class="indline1">Range header <a class="iref" href="#rfc.xref.header.range.1">2</a>, <a class="iref" href="#rfc.xref.header.range.2">2</a>, <a class="iref" href="#rfc.xref.header.range.3">3.1</a>, <a class="iref" href="#rfc.xref.header.range.4">3.2</a>, <a class="iref" href="#rfc.iref.r.1"><b>5.4</b></a>, <a class="iref" href="#rfc.xref.header.range.5">6.2</a></li> |
---|
[424] | 1408 | <li class="indline1"><em>RFC2046</em> <a class="iref" href="#RFC2046"><b>9.1</b></a>, <a class="iref" href="#rfc.xref.RFC2046.1">A</a>, <a class="iref" href="#rfc.xref.RFC2046.2">A</a><ul class="ind"> |
---|
[328] | 1409 | <li class="indline1"><em>Section 5.1</em> <a class="iref" href="#rfc.xref.RFC2046.1">A</a></li> |
---|
| 1410 | </ul> |
---|
| 1411 | </li> |
---|
[424] | 1412 | <li class="indline1"><em>RFC2119</em> <a class="iref" href="#rfc.xref.RFC2119.1">1.1</a>, <a class="iref" href="#RFC2119"><b>9.1</b></a></li> |
---|
| 1413 | <li class="indline1"><em>RFC2616</em> <a class="iref" href="#RFC2616"><b>9.2</b></a>, <a class="iref" href="#rfc.xref.RFC2616.1">D.1</a></li> |
---|
[700] | 1414 | <li class="indline1"><em>RFC3864</em> <a class="iref" href="#rfc.xref.RFC3864.1">6.2</a>, <a class="iref" href="#RFC3864"><b>9.2</b></a></li> |
---|
[424] | 1415 | <li class="indline1"><em>RFC4288</em> <a class="iref" href="#RFC4288"><b>9.2</b></a>, <a class="iref" href="#rfc.xref.RFC4288.1">A</a></li> |
---|
[543] | 1416 | <li class="indline1"><em>RFC5234</em> <a class="iref" href="#rfc.xref.RFC5234.1">1.2</a>, <a class="iref" href="#rfc.xref.RFC5234.2">1.2</a>, <a class="iref" href="#RFC5234"><b>9.1</b></a><ul class="ind"> |
---|
| 1417 | <li class="indline1"><em>Appendix B.1</em> <a class="iref" href="#rfc.xref.RFC5234.2">1.2</a></li> |
---|
[425] | 1418 | </ul> |
---|
| 1419 | </li> |
---|
[52] | 1420 | </ul> |
---|
| 1421 | </li> |
---|
| 1422 | <li class="indline0"><a id="rfc.index.S" href="#rfc.index.S"><b>S</b></a><ul class="ind"> |
---|
| 1423 | <li class="indline1">Status Codes |
---|
| 1424 | <ul class="ind"> |
---|
[700] | 1425 | <li class="indline1">206 Partial Content <a class="iref" href="#rfc.iref.s.1"><b>3.1</b></a>, <a class="iref" href="#rfc.xref.status.206.1">6.1</a>, <a class="iref" href="#rfc.xref.status.206.2">B.1</a>, <a class="iref" href="#rfc.xref.status.206.3">B.2</a></li> |
---|
| 1426 | <li class="indline1">416 Requested Range Not Satisfiable <a class="iref" href="#rfc.iref.s.2"><b>3.2</b></a>, <a class="iref" href="#rfc.xref.status.416.1">5.2</a>, <a class="iref" href="#rfc.xref.status.416.2">6.1</a>, <a class="iref" href="#rfc.xref.status.416.3">B.1</a></li> |
---|
[52] | 1427 | </ul> |
---|
| 1428 | </li> |
---|
| 1429 | </ul> |
---|
| 1430 | </li> |
---|
| 1431 | </ul> |
---|
| 1432 | </div> |
---|
| 1433 | </body> |
---|
| 1434 | </html> |
---|