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