[231] | 1 | <!DOCTYPE html |
---|
| 2 | PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
---|
| 3 | <html lang="en"> |
---|
[1099] | 4 | <head profile="http://www.w3.org/2006/03/hcard http://dublincore.org/documents/2008/08/04/dc-html/"> |
---|
[231] | 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
---|
| 6 | <title>HTTP/1.1, part 3: Message Payload and Content Negotiation</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 | } |
---|
| 32 | dd { |
---|
| 33 | margin-right: 2em; |
---|
| 34 | } |
---|
| 35 | dl { |
---|
| 36 | margin-left: 2em; |
---|
| 37 | } |
---|
| 38 | |
---|
[1099] | 39 | ul.empty { |
---|
| 40 | list-style-type: none; |
---|
| 41 | } |
---|
| 42 | ul.empty li { |
---|
[231] | 43 | margin-top: .5em; |
---|
| 44 | } |
---|
| 45 | dl p { |
---|
| 46 | margin-left: 0em; |
---|
| 47 | } |
---|
| 48 | dt { |
---|
| 49 | margin-top: .5em; |
---|
| 50 | } |
---|
| 51 | h1 { |
---|
| 52 | font-size: 14pt; |
---|
| 53 | line-height: 21pt; |
---|
| 54 | page-break-after: avoid; |
---|
| 55 | } |
---|
| 56 | h1.np { |
---|
| 57 | page-break-before: always; |
---|
| 58 | } |
---|
| 59 | h1 a { |
---|
| 60 | color: #333333; |
---|
| 61 | } |
---|
| 62 | h2 { |
---|
| 63 | font-size: 12pt; |
---|
| 64 | line-height: 15pt; |
---|
| 65 | page-break-after: avoid; |
---|
| 66 | } |
---|
[1099] | 67 | h3, h4, h5, h6 { |
---|
[231] | 68 | font-size: 10pt; |
---|
| 69 | page-break-after: avoid; |
---|
| 70 | } |
---|
[1099] | 71 | h2 a, h3 a, h4 a, h5 a, h6 a { |
---|
[231] | 72 | color: black; |
---|
| 73 | } |
---|
| 74 | img { |
---|
| 75 | margin-left: 3em; |
---|
| 76 | } |
---|
| 77 | li { |
---|
| 78 | margin-left: 2em; |
---|
| 79 | margin-right: 2em; |
---|
| 80 | } |
---|
| 81 | ol { |
---|
| 82 | margin-left: 2em; |
---|
| 83 | margin-right: 2em; |
---|
| 84 | } |
---|
| 85 | ol p { |
---|
| 86 | margin-left: 0em; |
---|
| 87 | } |
---|
| 88 | p { |
---|
| 89 | margin-left: 2em; |
---|
| 90 | margin-right: 2em; |
---|
| 91 | } |
---|
| 92 | pre { |
---|
| 93 | margin-left: 3em; |
---|
| 94 | background-color: lightyellow; |
---|
| 95 | padding: .25em; |
---|
| 96 | } |
---|
| 97 | pre.text2 { |
---|
| 98 | border-style: dotted; |
---|
| 99 | border-width: 1px; |
---|
| 100 | background-color: #f0f0f0; |
---|
| 101 | width: 69em; |
---|
| 102 | } |
---|
| 103 | pre.inline { |
---|
| 104 | background-color: white; |
---|
| 105 | padding: 0em; |
---|
| 106 | } |
---|
| 107 | pre.text { |
---|
| 108 | border-style: dotted; |
---|
| 109 | border-width: 1px; |
---|
| 110 | background-color: #f8f8f8; |
---|
| 111 | width: 69em; |
---|
| 112 | } |
---|
| 113 | pre.drawing { |
---|
| 114 | border-style: solid; |
---|
| 115 | border-width: 1px; |
---|
| 116 | background-color: #f8f8f8; |
---|
| 117 | padding: 2em; |
---|
| 118 | } |
---|
| 119 | table { |
---|
| 120 | margin-left: 2em; |
---|
| 121 | } |
---|
| 122 | table.header { |
---|
[1099] | 123 | border-spacing: 1px; |
---|
[231] | 124 | width: 95%; |
---|
| 125 | font-size: 10pt; |
---|
| 126 | color: white; |
---|
| 127 | } |
---|
| 128 | td.top { |
---|
| 129 | vertical-align: top; |
---|
| 130 | } |
---|
| 131 | td.topnowrap { |
---|
| 132 | vertical-align: top; |
---|
| 133 | white-space: nowrap; |
---|
| 134 | } |
---|
[1099] | 135 | table.header td { |
---|
[231] | 136 | background-color: gray; |
---|
| 137 | width: 50%; |
---|
| 138 | } |
---|
[1099] | 139 | table.header a { |
---|
[231] | 140 | color: white; |
---|
| 141 | } |
---|
| 142 | td.reference { |
---|
| 143 | vertical-align: top; |
---|
| 144 | white-space: nowrap; |
---|
| 145 | padding-right: 1em; |
---|
| 146 | } |
---|
| 147 | thead { |
---|
| 148 | display:table-header-group; |
---|
| 149 | } |
---|
[1099] | 150 | ul.toc, ul.toc ul { |
---|
[231] | 151 | list-style: none; |
---|
| 152 | margin-left: 1.5em; |
---|
| 153 | margin-right: 0em; |
---|
| 154 | padding-left: 0em; |
---|
| 155 | } |
---|
[1099] | 156 | ul.toc li { |
---|
[231] | 157 | line-height: 150%; |
---|
| 158 | font-weight: bold; |
---|
| 159 | font-size: 10pt; |
---|
| 160 | margin-left: 0em; |
---|
| 161 | margin-right: 0em; |
---|
| 162 | } |
---|
[1099] | 163 | ul.toc li li { |
---|
[231] | 164 | line-height: normal; |
---|
| 165 | font-weight: normal; |
---|
| 166 | font-size: 9pt; |
---|
| 167 | margin-left: 0em; |
---|
| 168 | margin-right: 0em; |
---|
| 169 | } |
---|
[1099] | 170 | li.excluded { |
---|
[231] | 171 | font-size: 0pt; |
---|
| 172 | } |
---|
| 173 | ul p { |
---|
| 174 | margin-left: 0em; |
---|
| 175 | } |
---|
[1099] | 176 | ul.ind, ul.ind ul { |
---|
[231] | 177 | list-style: none; |
---|
| 178 | margin-left: 1.5em; |
---|
| 179 | margin-right: 0em; |
---|
| 180 | padding-left: 0em; |
---|
[1099] | 181 | page-break-before: avoid; |
---|
[231] | 182 | } |
---|
[1099] | 183 | ul.ind li { |
---|
[231] | 184 | font-weight: bold; |
---|
| 185 | line-height: 200%; |
---|
| 186 | margin-left: 0em; |
---|
| 187 | margin-right: 0em; |
---|
| 188 | } |
---|
[1099] | 189 | ul.ind li li { |
---|
[231] | 190 | font-weight: normal; |
---|
| 191 | line-height: 150%; |
---|
| 192 | margin-left: 0em; |
---|
| 193 | margin-right: 0em; |
---|
| 194 | } |
---|
[1099] | 195 | .avoidbreak { |
---|
| 196 | page-break-inside: avoid; |
---|
| 197 | } |
---|
[231] | 198 | .bcp14 { |
---|
| 199 | font-style: normal; |
---|
| 200 | text-transform: lowercase; |
---|
| 201 | font-variant: small-caps; |
---|
| 202 | } |
---|
| 203 | .comment { |
---|
| 204 | background-color: yellow; |
---|
| 205 | } |
---|
| 206 | .center { |
---|
| 207 | text-align: center; |
---|
| 208 | } |
---|
| 209 | .error { |
---|
| 210 | color: red; |
---|
| 211 | font-style: italic; |
---|
| 212 | font-weight: bold; |
---|
| 213 | } |
---|
| 214 | .figure { |
---|
| 215 | font-weight: bold; |
---|
| 216 | text-align: center; |
---|
| 217 | font-size: 9pt; |
---|
| 218 | } |
---|
| 219 | .filename { |
---|
| 220 | color: #333333; |
---|
| 221 | font-weight: bold; |
---|
| 222 | font-size: 12pt; |
---|
| 223 | line-height: 21pt; |
---|
| 224 | text-align: center; |
---|
| 225 | } |
---|
| 226 | .fn { |
---|
| 227 | font-weight: bold; |
---|
| 228 | } |
---|
| 229 | .hidden { |
---|
| 230 | display: none; |
---|
| 231 | } |
---|
| 232 | .left { |
---|
| 233 | text-align: left; |
---|
| 234 | } |
---|
| 235 | .right { |
---|
| 236 | text-align: right; |
---|
| 237 | } |
---|
| 238 | .title { |
---|
| 239 | color: #990000; |
---|
| 240 | font-size: 18pt; |
---|
| 241 | line-height: 18pt; |
---|
| 242 | font-weight: bold; |
---|
| 243 | text-align: center; |
---|
| 244 | margin-top: 36pt; |
---|
| 245 | } |
---|
| 246 | .vcardline { |
---|
| 247 | display: block; |
---|
| 248 | } |
---|
| 249 | .warning { |
---|
| 250 | font-size: 14pt; |
---|
| 251 | background-color: yellow; |
---|
| 252 | } |
---|
| 253 | |
---|
| 254 | |
---|
| 255 | @media print { |
---|
| 256 | .noprint { |
---|
| 257 | display: none; |
---|
| 258 | } |
---|
| 259 | |
---|
| 260 | a { |
---|
| 261 | color: black; |
---|
| 262 | text-decoration: none; |
---|
| 263 | } |
---|
| 264 | |
---|
| 265 | table.header { |
---|
| 266 | width: 90%; |
---|
| 267 | } |
---|
| 268 | |
---|
| 269 | td.header { |
---|
| 270 | width: 50%; |
---|
| 271 | color: black; |
---|
| 272 | background-color: white; |
---|
| 273 | vertical-align: top; |
---|
| 274 | font-size: 12pt; |
---|
| 275 | } |
---|
| 276 | |
---|
| 277 | ul.toc a::after { |
---|
| 278 | content: leader('.') target-counter(attr(href), page); |
---|
| 279 | } |
---|
| 280 | |
---|
[1099] | 281 | ul.ind li li a { |
---|
[231] | 282 | content: target-counter(attr(href), page); |
---|
| 283 | } |
---|
| 284 | |
---|
| 285 | .print2col { |
---|
| 286 | column-count: 2; |
---|
| 287 | -moz-column-count: 2; |
---|
| 288 | column-fill: auto; |
---|
| 289 | } |
---|
| 290 | } |
---|
| 291 | |
---|
| 292 | @page { |
---|
| 293 | @top-left { |
---|
[1099] | 294 | content: "Internet-Draft"; |
---|
[231] | 295 | } |
---|
| 296 | @top-right { |
---|
| 297 | content: "February 2008"; |
---|
| 298 | } |
---|
| 299 | @top-center { |
---|
| 300 | content: "HTTP/1.1, Part 3"; |
---|
| 301 | } |
---|
| 302 | @bottom-left { |
---|
| 303 | content: "Fielding, et al."; |
---|
| 304 | } |
---|
| 305 | @bottom-center { |
---|
| 306 | content: "Standards Track"; |
---|
| 307 | } |
---|
| 308 | @bottom-right { |
---|
| 309 | content: "[Page " counter(page) "]"; |
---|
| 310 | } |
---|
| 311 | } |
---|
| 312 | |
---|
| 313 | @page:first { |
---|
| 314 | @top-left { |
---|
| 315 | content: normal; |
---|
| 316 | } |
---|
| 317 | @top-right { |
---|
| 318 | content: normal; |
---|
| 319 | } |
---|
| 320 | @top-center { |
---|
| 321 | content: normal; |
---|
| 322 | } |
---|
| 323 | } |
---|
| 324 | </style><link rel="Contents" href="#rfc.toc"> |
---|
| 325 | <link rel="Author" href="#rfc.authors"> |
---|
| 326 | <link rel="Copyright" href="#rfc.copyright"> |
---|
| 327 | <link rel="Index" href="#rfc.index"> |
---|
| 328 | <link rel="Chapter" title="1 Introduction" href="#rfc.section.1"> |
---|
| 329 | <link rel="Chapter" title="2 Notational Conventions and Generic Grammar" href="#rfc.section.2"> |
---|
| 330 | <link rel="Chapter" title="3 Protocol Parameters" href="#rfc.section.3"> |
---|
| 331 | <link rel="Chapter" title="4 Entity" href="#rfc.section.4"> |
---|
| 332 | <link rel="Chapter" title="5 Content Negotiation" href="#rfc.section.5"> |
---|
| 333 | <link rel="Chapter" title="6 Header Field Definitions" href="#rfc.section.6"> |
---|
| 334 | <link rel="Chapter" title="7 IANA Considerations" href="#rfc.section.7"> |
---|
| 335 | <link rel="Chapter" title="8 Security Considerations" href="#rfc.section.8"> |
---|
| 336 | <link rel="Chapter" title="9 Acknowledgments" href="#rfc.section.9"> |
---|
| 337 | <link rel="Chapter" href="#rfc.section.10" title="10 References"> |
---|
| 338 | <link rel="Appendix" title="A Differences Between HTTP Entities and RFC 2045 Entities" href="#rfc.section.A"> |
---|
| 339 | <link rel="Appendix" title="B Additional Features" href="#rfc.section.B"> |
---|
| 340 | <link rel="Appendix" title="C Compatibility with Previous Versions" href="#rfc.section.C"> |
---|
| 341 | <link rel="Appendix" title="D Change Log (to be removed by RFC Editor before publication)" href="#rfc.section.D"> |
---|
[1099] | 342 | <meta name="generator" content="http://greenbytes.de/tech/webdav/rfc2629.xslt, Revision 1.537, 2010-12-30 14:21:59, XSLT vendor: SAXON 8.9 from Saxonica http://www.saxonica.com/"> |
---|
| 343 | <link rel="schema.dct" href="http://purl.org/dc/terms/"> |
---|
| 344 | <meta name="dct.creator" content="Fielding, R."> |
---|
| 345 | <meta name="dct.creator" content="Gettys, J."> |
---|
| 346 | <meta name="dct.creator" content="Mogul, J."> |
---|
| 347 | <meta name="dct.creator" content="Frystyk, H."> |
---|
| 348 | <meta name="dct.creator" content="Masinter, L."> |
---|
| 349 | <meta name="dct.creator" content="Leach, P."> |
---|
| 350 | <meta name="dct.creator" content="Berners-Lee, T."> |
---|
| 351 | <meta name="dct.creator" content="Lafon, Y."> |
---|
| 352 | <meta name="dct.creator" content="Reschke, J. F."> |
---|
| 353 | <meta name="dct.identifier" content="urn:ietf:id:draft-ietf-httpbis-p3-payload-02"> |
---|
| 354 | <meta name="dct.issued" scheme="ISO8601" content="2008-02-24"> |
---|
| 355 | <meta name="dct.replaces" content="urn:ietf:rfc:2616"> |
---|
| 356 | <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 3 of the seven-part specification that defines the protocol referred to as "HTTP/1.1" and, taken together, obsoletes RFC 2616. Part 3 defines HTTP message content, metadata, and content negotiation."> |
---|
| 357 | <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 3 of the seven-part specification that defines the protocol referred to as "HTTP/1.1" and, taken together, obsoletes RFC 2616. Part 3 defines HTTP message content, metadata, and content negotiation."> |
---|
[231] | 358 | </head> |
---|
| 359 | <body> |
---|
[1099] | 360 | <table class="header"> |
---|
| 361 | <tbody> |
---|
| 362 | <tr> |
---|
| 363 | <td class="left">Network Working Group</td> |
---|
| 364 | <td class="right">R. Fielding, Editor</td> |
---|
| 365 | </tr> |
---|
| 366 | <tr> |
---|
| 367 | <td class="left">Internet-Draft</td> |
---|
| 368 | <td class="right">Day Software</td> |
---|
| 369 | </tr> |
---|
| 370 | <tr> |
---|
| 371 | <td class="left">Obsoletes: <a href="http://tools.ietf.org/html/rfc2616">2616</a> (if approved) |
---|
| 372 | </td> |
---|
| 373 | <td class="right">J. Gettys</td> |
---|
| 374 | </tr> |
---|
| 375 | <tr> |
---|
| 376 | <td class="left">Intended status: Standards Track</td> |
---|
| 377 | <td class="right">One Laptop per Child</td> |
---|
| 378 | </tr> |
---|
| 379 | <tr> |
---|
| 380 | <td class="left">Expires: August 27, 2008</td> |
---|
| 381 | <td class="right">J. Mogul</td> |
---|
| 382 | </tr> |
---|
| 383 | <tr> |
---|
| 384 | <td class="left"></td> |
---|
| 385 | <td class="right">HP</td> |
---|
| 386 | </tr> |
---|
| 387 | <tr> |
---|
| 388 | <td class="left"></td> |
---|
| 389 | <td class="right">H. Frystyk</td> |
---|
| 390 | </tr> |
---|
| 391 | <tr> |
---|
| 392 | <td class="left"></td> |
---|
| 393 | <td class="right">Microsoft</td> |
---|
| 394 | </tr> |
---|
| 395 | <tr> |
---|
| 396 | <td class="left"></td> |
---|
| 397 | <td class="right">L. Masinter</td> |
---|
| 398 | </tr> |
---|
| 399 | <tr> |
---|
| 400 | <td class="left"></td> |
---|
| 401 | <td class="right">Adobe Systems</td> |
---|
| 402 | </tr> |
---|
| 403 | <tr> |
---|
| 404 | <td class="left"></td> |
---|
| 405 | <td class="right">P. Leach</td> |
---|
| 406 | </tr> |
---|
| 407 | <tr> |
---|
| 408 | <td class="left"></td> |
---|
| 409 | <td class="right">Microsoft</td> |
---|
| 410 | </tr> |
---|
| 411 | <tr> |
---|
| 412 | <td class="left"></td> |
---|
| 413 | <td class="right">T. Berners-Lee</td> |
---|
| 414 | </tr> |
---|
| 415 | <tr> |
---|
| 416 | <td class="left"></td> |
---|
| 417 | <td class="right">W3C/MIT</td> |
---|
| 418 | </tr> |
---|
| 419 | <tr> |
---|
| 420 | <td class="left"></td> |
---|
| 421 | <td class="right">Y. Lafon, Editor</td> |
---|
| 422 | </tr> |
---|
| 423 | <tr> |
---|
| 424 | <td class="left"></td> |
---|
| 425 | <td class="right">W3C</td> |
---|
| 426 | </tr> |
---|
| 427 | <tr> |
---|
| 428 | <td class="left"></td> |
---|
| 429 | <td class="right">J. Reschke, Editor</td> |
---|
| 430 | </tr> |
---|
| 431 | <tr> |
---|
| 432 | <td class="left"></td> |
---|
| 433 | <td class="right">greenbytes</td> |
---|
| 434 | </tr> |
---|
| 435 | <tr> |
---|
| 436 | <td class="left"></td> |
---|
| 437 | <td class="right">February 24, 2008</td> |
---|
| 438 | </tr> |
---|
| 439 | </tbody> |
---|
[231] | 440 | </table> |
---|
| 441 | <p class="title">HTTP/1.1, part 3: Message Payload and Content Negotiation<br><span class="filename">draft-ietf-httpbis-p3-payload-02</span></p> |
---|
| 442 | <h1><a id="rfc.status" href="#rfc.status">Status of this Memo</a></h1> |
---|
| 443 | <p>By submitting this Internet-Draft, each author represents that any applicable patent or other IPR claims of which he or she |
---|
| 444 | is aware have been or will be disclosed, and any of which he or she becomes aware will be disclosed, in accordance with Section |
---|
| 445 | 6 of BCP 79. |
---|
| 446 | </p> |
---|
| 447 | <p>Internet-Drafts are working documents of the Internet Engineering Task Force (IETF), its areas, and its working groups. Note |
---|
| 448 | that other groups may also distribute working documents as Internet-Drafts. |
---|
| 449 | </p> |
---|
| 450 | <p>Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other |
---|
| 451 | documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as “work |
---|
| 452 | in progress”. |
---|
| 453 | </p> |
---|
[1099] | 454 | <p>The list of current Internet-Drafts can be accessed at <a href="http://www.ietf.org/ietf/1id-abstracts.txt">http://www.ietf.org/ietf/1id-abstracts.txt</a>. |
---|
[231] | 455 | </p> |
---|
[1099] | 456 | <p>The list of Internet-Draft Shadow Directories can be accessed at <a href="http://www.ietf.org/shadow.html">http://www.ietf.org/shadow.html</a>. |
---|
[231] | 457 | </p> |
---|
[1099] | 458 | <p>This Internet-Draft will expire on August 27, 2008.</p> |
---|
[231] | 459 | <h1 id="rfc.abstract"><a href="#rfc.abstract">Abstract</a></h1> |
---|
| 460 | <p>The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypermedia information |
---|
| 461 | systems. HTTP has been in use by the World Wide Web global information initiative since 1990. This document is Part 3 of the |
---|
| 462 | seven-part specification that defines the protocol referred to as "HTTP/1.1" and, taken together, obsoletes RFC 2616. Part |
---|
| 463 | 3 defines HTTP message content, metadata, and content negotiation. |
---|
| 464 | </p> |
---|
| 465 | <h1 id="rfc.note.1"><a href="#rfc.note.1">Editorial Note (To be removed by RFC Editor)</a></h1> |
---|
| 466 | <p>Discussion of this draft should take place on the HTTPBIS working group mailing list (ietf-http-wg@w3.org). The current issues |
---|
| 467 | list is at <<a href="http://www.tools.ietf.org/wg/httpbis/trac/report/11">http://www.tools.ietf.org/wg/httpbis/trac/report/11</a>> and related documents (including fancy diffs) can be found at <<a href="http://www.tools.ietf.org/wg/httpbis/">http://www.tools.ietf.org/wg/httpbis/</a>>. |
---|
| 468 | </p> |
---|
| 469 | <p>This draft incorporates those issue resolutions that were either collected in the original RFC2616 errata list (<<a href="http://purl.org/NET/http-errata">http://purl.org/NET/http-errata</a>>), or which were agreed upon on the mailing list between October 2006 and November 2007 (as published in "draft-lafon-rfc2616bis-03"). |
---|
| 470 | </p> |
---|
| 471 | <hr class="noprint"> |
---|
| 472 | <h1 class="np" id="rfc.toc"><a href="#rfc.toc">Table of Contents</a></h1> |
---|
| 473 | <ul class="toc"> |
---|
[1099] | 474 | <li>1. <a href="#introduction">Introduction</a><ul> |
---|
| 475 | <li>1.1 <a href="#intro.requirements">Requirements</a></li> |
---|
[231] | 476 | </ul> |
---|
| 477 | </li> |
---|
[1099] | 478 | <li>2. <a href="#notation">Notational Conventions and Generic Grammar</a></li> |
---|
| 479 | <li>3. <a href="#protocol.parameters">Protocol Parameters</a><ul> |
---|
| 480 | <li>3.1 <a href="#character.sets">Character Sets</a><ul> |
---|
| 481 | <li>3.1.1 <a href="#missing.charset">Missing Charset</a></li> |
---|
[231] | 482 | </ul> |
---|
| 483 | </li> |
---|
[1099] | 484 | <li>3.2 <a href="#content.codings">Content Codings</a></li> |
---|
| 485 | <li>3.3 <a href="#media.types">Media Types</a><ul> |
---|
| 486 | <li>3.3.1 <a href="#canonicalization.and.text.defaults">Canonicalization and Text Defaults</a></li> |
---|
| 487 | <li>3.3.2 <a href="#multipart.types">Multipart Types</a></li> |
---|
[231] | 488 | </ul> |
---|
| 489 | </li> |
---|
[1099] | 490 | <li>3.4 <a href="#quality.values">Quality Values</a></li> |
---|
| 491 | <li>3.5 <a href="#language.tags">Language Tags</a></li> |
---|
[231] | 492 | </ul> |
---|
| 493 | </li> |
---|
[1099] | 494 | <li>4. <a href="#entity">Entity</a><ul> |
---|
| 495 | <li>4.1 <a href="#entity.header.fields">Entity Header Fields</a></li> |
---|
| 496 | <li>4.2 <a href="#entity.body">Entity Body</a><ul> |
---|
| 497 | <li>4.2.1 <a href="#type">Type</a></li> |
---|
| 498 | <li>4.2.2 <a href="#entity.length">Entity Length</a></li> |
---|
[231] | 499 | </ul> |
---|
| 500 | </li> |
---|
| 501 | </ul> |
---|
| 502 | </li> |
---|
[1099] | 503 | <li>5. <a href="#content.negotiation">Content Negotiation</a><ul> |
---|
| 504 | <li>5.1 <a href="#server-driven.negotiation">Server-driven Negotiation</a></li> |
---|
| 505 | <li>5.2 <a href="#agent-driven.negotiation">Agent-driven Negotiation</a></li> |
---|
| 506 | <li>5.3 <a href="#transparent.negotiation">Transparent Negotiation</a></li> |
---|
[231] | 507 | </ul> |
---|
| 508 | </li> |
---|
[1099] | 509 | <li>6. <a href="#header.fields">Header Field Definitions</a><ul> |
---|
| 510 | <li>6.1 <a href="#header.accept">Accept</a></li> |
---|
| 511 | <li>6.2 <a href="#header.accept-charset">Accept-Charset</a></li> |
---|
| 512 | <li>6.3 <a href="#header.accept-encoding">Accept-Encoding</a></li> |
---|
| 513 | <li>6.4 <a href="#header.accept-language">Accept-Language</a></li> |
---|
| 514 | <li>6.5 <a href="#header.content-encoding">Content-Encoding</a></li> |
---|
| 515 | <li>6.6 <a href="#header.content-language">Content-Language</a></li> |
---|
| 516 | <li>6.7 <a href="#header.content-location">Content-Location</a></li> |
---|
| 517 | <li>6.8 <a href="#header.content-md5">Content-MD5</a></li> |
---|
| 518 | <li>6.9 <a href="#header.content-type">Content-Type</a></li> |
---|
[231] | 519 | </ul> |
---|
| 520 | </li> |
---|
[1099] | 521 | <li>7. <a href="#IANA.considerations">IANA Considerations</a></li> |
---|
| 522 | <li>8. <a href="#security.considerations">Security Considerations</a><ul> |
---|
| 523 | <li>8.1 <a href="#privacy.issues.connected.to.accept.headers">Privacy Issues Connected to Accept Headers</a></li> |
---|
| 524 | <li>8.2 <a href="#content-disposition.issues">Content-Disposition Issues</a></li> |
---|
[231] | 525 | </ul> |
---|
| 526 | </li> |
---|
[1099] | 527 | <li>9. <a href="#ack">Acknowledgments</a></li> |
---|
| 528 | <li>10. <a href="#rfc.references">References</a><ul> |
---|
| 529 | <li>10.1 <a href="#rfc.references.1">Normative References</a></li> |
---|
| 530 | <li>10.2 <a href="#rfc.references.2">Informative References</a></li> |
---|
[231] | 531 | </ul> |
---|
| 532 | </li> |
---|
[1099] | 533 | <li><a href="#rfc.authors">Authors' Addresses</a></li> |
---|
| 534 | <li>A. <a href="#differences.between.http.entities.and.rfc.2045.entities">Differences Between HTTP Entities and RFC 2045 Entities</a><ul> |
---|
| 535 | <li>A.1 <a href="#mime-version">MIME-Version</a></li> |
---|
| 536 | <li>A.2 <a href="#conversion.to.canonical.form">Conversion to Canonical Form</a></li> |
---|
| 537 | <li>A.3 <a href="#introduction.of.content-encoding">Introduction of Content-Encoding</a></li> |
---|
| 538 | <li>A.4 <a href="#no.content-transfer-encoding">No Content-Transfer-Encoding</a></li> |
---|
| 539 | <li>A.5 <a href="#introduction.of.transfer-encoding">Introduction of Transfer-Encoding</a></li> |
---|
| 540 | <li>A.6 <a href="#mhtml.line.length">MHTML and Line Length Limitations</a></li> |
---|
[231] | 541 | </ul> |
---|
| 542 | </li> |
---|
[1099] | 543 | <li>B. <a href="#additional.features">Additional Features</a><ul> |
---|
| 544 | <li>B.1 <a href="#content-disposition">Content-Disposition</a></li> |
---|
[231] | 545 | </ul> |
---|
| 546 | </li> |
---|
[1099] | 547 | <li>C. <a href="#compatibility">Compatibility with Previous Versions</a><ul> |
---|
| 548 | <li>C.1 <a href="#changes.from.rfc.2068">Changes from RFC 2068</a></li> |
---|
| 549 | <li>C.2 <a href="#changes.from.rfc.2616">Changes from RFC 2616</a></li> |
---|
[231] | 550 | </ul> |
---|
| 551 | </li> |
---|
[1099] | 552 | <li>D. <a href="#rfc.section.D">Change Log (to be removed by RFC Editor before publication)</a><ul> |
---|
| 553 | <li>D.1 <a href="#rfc.section.D.1">Since RFC2616</a></li> |
---|
| 554 | <li>D.2 <a href="#rfc.section.D.2">Since draft-ietf-httpbis-p3-payload-00</a></li> |
---|
| 555 | <li>D.3 <a href="#rfc.section.D.3">Since draft-ietf-httpbis-p3-payload-01</a></li> |
---|
[231] | 556 | </ul> |
---|
| 557 | </li> |
---|
[1099] | 558 | <li><a href="#rfc.index">Index</a></li> |
---|
| 559 | <li><a href="#rfc.ipr">Intellectual Property and Copyright Statements</a></li> |
---|
[231] | 560 | </ul> |
---|
| 561 | <h1 id="rfc.section.1" class="np"><a href="#rfc.section.1">1.</a> <a id="introduction" href="#introduction">Introduction</a></h1> |
---|
| 562 | <p id="rfc.section.1.p.1">This document defines HTTP/1.1 message payloads (a.k.a., content), the associated metadata header fields that define how the |
---|
| 563 | payload is intended to be interpreted by a recipient, the request header fields that may influence content selection, and |
---|
| 564 | the various selection algorithms that are collectively referred to as HTTP content negotiation. |
---|
| 565 | </p> |
---|
| 566 | <p id="rfc.section.1.p.2">This document is currently disorganized in order to minimize the changes between drafts and enable reviewers to see the smaller |
---|
| 567 | errata changes. The next draft will reorganize the sections to better reflect the content. In particular, the sections on |
---|
| 568 | entities will be renamed payload and moved to the first half of the document, while the sections on content negotiation and |
---|
| 569 | associated request header fields will be moved to the second half. The current mess reflects how widely dispersed these topics |
---|
| 570 | and associated requirements had become in <a href="#RFC2616" id="rfc.xref.RFC2616.1"><cite title="Hypertext Transfer Protocol -- HTTP/1.1">[RFC2616]</cite></a>. |
---|
| 571 | </p> |
---|
| 572 | <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> |
---|
| 573 | <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" |
---|
| 574 | 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>. |
---|
| 575 | </p> |
---|
| 576 | <p id="rfc.section.1.1.p.2">An implementation is not compliant if it fails to satisfy one or more of the <em class="bcp14">MUST</em> or <em class="bcp14">REQUIRED</em> level requirements for the protocols it implements. An implementation that satisfies all the <em class="bcp14">MUST</em> or <em class="bcp14">REQUIRED</em> level and all the <em class="bcp14">SHOULD</em> level requirements for its protocols is said to be "unconditionally compliant"; one that satisfies all the <em class="bcp14">MUST</em> level requirements but not all the <em class="bcp14">SHOULD</em> level requirements for its protocols is said to be "conditionally compliant." |
---|
| 577 | </p> |
---|
| 578 | <h1 id="rfc.section.2"><a href="#rfc.section.2">2.</a> <a id="notation" href="#notation">Notational Conventions and Generic Grammar</a></h1> |
---|
[1099] | 579 | <p id="rfc.section.2.p.1">This specification uses the ABNF syntax defined in <a href="p1-messaging.html#notation.abnf" title="Augmented BNF">Section 2.1</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> and the core rules defined in <a href="p1-messaging.html#basic.rules" title="Basic Rules">Section 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>: <span class="comment" id="abnf.dep">[<a href="#abnf.dep" class="smpl">abnf.dep</a>: ABNF syntax and basic rules will be adopted from RFC 5234, see <<a href="http://tools.ietf.org/wg/httpbis/trac/ticket/36">http://tools.ietf.org/wg/httpbis/trac/ticket/36</a>>.]</span> |
---|
[231] | 580 | </p> |
---|
| 581 | <div id="rfc.figure.u.1"></div><pre class="inline"> ALPHA = <ALPHA, 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 2.2</a>> |
---|
| 582 | DIGIT = <DIGIT, 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 2.2</a>> |
---|
| 583 | OCTET = <OCTET, 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#basic.rules" title="Basic Rules">Section 2.2</a>> |
---|
| 584 | </pre><div id="rfc.figure.u.2"></div><pre class="inline"> quoted-string = <quoted-string, defined in <a href="#Part1" id="rfc.xref.Part1.6"><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 2.2</a>> |
---|
| 585 | token = <token, defined in <a href="#Part1" id="rfc.xref.Part1.7"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>, <a href="p1-messaging.html#basic.rules" title="Basic Rules">Section 2.2</a>> |
---|
| 586 | </pre><div id="abnf.dependencies"> |
---|
| 587 | <p id="rfc.section.2.p.4">The ABNF rules below are defined in other parts:</p> |
---|
| 588 | </div> |
---|
| 589 | <div id="rfc.figure.u.3"></div><pre class="inline"> absoluteURI = <absoluteURI, defined in <a href="#Part1" id="rfc.xref.Part1.8"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>, <a href="p1-messaging.html#general.syntax" title="General Syntax">Section 3.2.1</a>> |
---|
| 590 | Content-Length = <Content-Length, defined in <a href="#Part1" id="rfc.xref.Part1.9"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>, <a href="p1-messaging.html#header.content-length" title="Content-Length">Section 8.2</a>> |
---|
| 591 | relativeURI = <relativeURI, defined in <a href="#Part1" id="rfc.xref.Part1.10"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>, <a href="p1-messaging.html#general.syntax" title="General Syntax">Section 3.2.1</a>> |
---|
| 592 | message-header = <message-header, defined in <a href="#Part1" id="rfc.xref.Part1.11"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>, <a href="p1-messaging.html#message.headers" title="Message Headers">Section 4.2</a>> |
---|
| 593 | </pre><div id="rfc.figure.u.4"></div><pre class="inline"> Allow = <Allow, defined in <a href="#Part2" id="rfc.xref.Part2.1"><cite title="HTTP/1.1, part 2: Message Semantics">[Part2]</cite></a>, <a href="p2-semantics.html#header.allow" title="Allow">Section 10.1</a>> |
---|
| 594 | </pre><div id="rfc.figure.u.5"></div><pre class="inline"> Last-Modified = <Last-Modified, 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.last-modified" title="Last-Modified">Section 7.6</a>> |
---|
| 595 | </pre><div id="rfc.figure.u.6"></div><pre class="inline"> Content-Range = <Content-Range, defined in <a href="#Part5" id="rfc.xref.Part5.1"><cite title="HTTP/1.1, part 5: Range Requests and Partial Responses">[Part5]</cite></a>, <a href="p5-range.html#header.content-range" title="Content-Range">Section 6.2</a>> |
---|
| 596 | </pre><div id="rfc.figure.u.7"></div><pre class="inline"> Expires = <Expires, defined in <a href="#Part6" id="rfc.xref.Part6.1"><cite title="HTTP/1.1, part 6: Caching">[Part6]</cite></a>, <a href="p6-cache.html#header.expires" title="Expires">Section 16.3</a>> |
---|
| 597 | </pre><h1 id="rfc.section.3"><a href="#rfc.section.3">3.</a> <a id="protocol.parameters" href="#protocol.parameters">Protocol Parameters</a></h1> |
---|
| 598 | <h2 id="rfc.section.3.1"><a href="#rfc.section.3.1">3.1</a> <a id="character.sets" href="#character.sets">Character Sets</a></h2> |
---|
| 599 | <p id="rfc.section.3.1.p.1">HTTP uses the same definition of the term "character set" as that described for MIME:</p> |
---|
| 600 | <p id="rfc.section.3.1.p.2">The term "character set" is used in this document to refer to a method used with one or more tables to convert a sequence |
---|
| 601 | of octets into a sequence of characters. Note that unconditional conversion in the other direction is not required, in that |
---|
| 602 | not all characters may be available in a given character set and a character set may provide more than one sequence of octets |
---|
| 603 | to represent a particular character. This definition is intended to allow various kinds of character encoding, from simple |
---|
| 604 | single-table mappings such as US-ASCII to complex table switching methods such as those that use ISO-2022's techniques. However, |
---|
| 605 | the definition associated with a MIME character set name <em class="bcp14">MUST</em> fully specify the mapping to be performed from octets to characters. In particular, use of external profiling information |
---|
| 606 | to determine the exact mapping is not permitted. |
---|
| 607 | </p> |
---|
[1099] | 608 | <ul class="empty"> |
---|
| 609 | <li> <b>Note:</b> This use of the term "character set" is more commonly referred to as a "character encoding." However, since HTTP and MIME |
---|
[231] | 610 | share the same registry, it is important that the terminology also be shared. |
---|
[1099] | 611 | </li> |
---|
| 612 | </ul> |
---|
[231] | 613 | <p id="rfc.section.3.1.p.4">HTTP character sets are identified by case-insensitive tokens. The complete set of tokens is defined by the IANA Character |
---|
| 614 | Set registry (<<a href="http://www.iana.org/assignments/character-sets">http://www.iana.org/assignments/character-sets</a>>). |
---|
| 615 | </p> |
---|
| 616 | <div id="rfc.figure.u.8"></div><pre class="inline"><span id="rfc.iref.g.1"></span> charset = token |
---|
| 617 | </pre><p id="rfc.section.3.1.p.6">Although HTTP allows an arbitrary token to be used as a charset value, any token that has a predefined value within the IANA |
---|
| 618 | Character Set registry <em class="bcp14">MUST</em> represent the character set defined by that registry. Applications <em class="bcp14">SHOULD</em> limit their use of character sets to those defined by the IANA registry. |
---|
| 619 | </p> |
---|
| 620 | <p id="rfc.section.3.1.p.7">HTTP uses charset in two contexts: within an Accept-Charset request header (in which the charset value is an unquoted token) |
---|
| 621 | and as the value of a parameter in a Content-Type header (within a request or response), in which case the parameter value |
---|
| 622 | of the charset parameter may be quoted. |
---|
| 623 | </p> |
---|
| 624 | <p id="rfc.section.3.1.p.8">Implementors should be aware of IETF character set requirements <a href="#RFC3629" id="rfc.xref.RFC3629.1"><cite title="UTF-8, a transformation format of ISO 10646">[RFC3629]</cite></a> <a href="#RFC2277" id="rfc.xref.RFC2277.1"><cite title="IETF Policy on Character Sets and Languages">[RFC2277]</cite></a>. |
---|
| 625 | </p> |
---|
| 626 | <h3 id="rfc.section.3.1.1"><a href="#rfc.section.3.1.1">3.1.1</a> <a id="missing.charset" href="#missing.charset">Missing Charset</a></h3> |
---|
| 627 | <p id="rfc.section.3.1.1.p.1">Some HTTP/1.0 software has interpreted a Content-Type header without charset parameter incorrectly to mean "recipient should |
---|
| 628 | guess." Senders wishing to defeat this behavior <em class="bcp14">MAY</em> include a charset parameter even when the charset is ISO-8859-1 (<a href="#ISO-8859-1" id="rfc.xref.ISO-8859-1.1"><cite title="Information technology -- 8-bit single-byte coded graphic character sets -- Part 1: Latin alphabet No. 1">[ISO-8859-1]</cite></a>) and <em class="bcp14">SHOULD</em> do so when it is known that it will not confuse the recipient. |
---|
| 629 | </p> |
---|
| 630 | <p id="rfc.section.3.1.1.p.2">Unfortunately, some older HTTP/1.0 clients did not deal properly with an explicit charset parameter. HTTP/1.1 recipients <em class="bcp14">MUST</em> respect the charset label provided by the sender; and those user agents that have a provision to "guess" a charset <em class="bcp14">MUST</em> use the charset from the content-type field if they support that charset, rather than the recipient's preference, when initially |
---|
| 631 | displaying a document. See <a href="#canonicalization.and.text.defaults" title="Canonicalization and Text Defaults">Section 3.3.1</a>. |
---|
| 632 | </p> |
---|
| 633 | <h2 id="rfc.section.3.2"><a href="#rfc.section.3.2">3.2</a> <a id="content.codings" href="#content.codings">Content Codings</a></h2> |
---|
| 634 | <p id="rfc.section.3.2.p.1">Content coding values indicate an encoding transformation that has been or can be applied to an entity. Content codings are |
---|
| 635 | primarily used to allow a document to be compressed or otherwise usefully transformed without losing the identity of its underlying |
---|
| 636 | media type and without loss of information. Frequently, the entity is stored in coded form, transmitted directly, and only |
---|
| 637 | decoded by the recipient. |
---|
| 638 | </p> |
---|
| 639 | <div id="rfc.figure.u.9"></div><pre class="inline"><span id="rfc.iref.g.2"></span> content-coding = token |
---|
| 640 | </pre><p id="rfc.section.3.2.p.3">All content-coding values are case-insensitive. HTTP/1.1 uses content-coding values in the Accept-Encoding (<a href="#header.accept-encoding" id="rfc.xref.header.accept-encoding.1" title="Accept-Encoding">Section 6.3</a>) and Content-Encoding (<a href="#header.content-encoding" id="rfc.xref.header.content-encoding.1" title="Content-Encoding">Section 6.5</a>) header fields. Although the value describes the content-coding, what is more important is that it indicates what decoding |
---|
| 641 | mechanism will be required to remove the encoding. |
---|
| 642 | </p> |
---|
| 643 | <p id="rfc.section.3.2.p.4">The Internet Assigned Numbers Authority (IANA) acts as a registry for content-coding value tokens. Initially, the registry |
---|
| 644 | contains the following tokens: |
---|
| 645 | </p> |
---|
| 646 | <p id="rfc.section.3.2.p.5">gzip<span id="rfc.iref.g.3"></span> |
---|
| 647 | </p> |
---|
[1099] | 648 | <ul class="empty"> |
---|
| 649 | <li>An encoding format produced by the file compression program "gzip" (GNU zip) as described in <a href="#RFC1952" id="rfc.xref.RFC1952.1"><cite title="GZIP file format specification version 4.3">[RFC1952]</cite></a>. This format is a Lempel-Ziv coding (LZ77) with a 32 bit CRC. |
---|
| 650 | </li> |
---|
| 651 | </ul> |
---|
[231] | 652 | <p id="rfc.section.3.2.p.6">compress<span id="rfc.iref.c.1"></span> |
---|
| 653 | </p> |
---|
[1099] | 654 | <ul class="empty"> |
---|
| 655 | <li>The encoding format produced by the common UNIX file compression program "compress". This format is an adaptive Lempel-Ziv-Welch |
---|
[231] | 656 | coding (LZW). |
---|
[1099] | 657 | </li> |
---|
| 658 | <li>Use of program names for the identification of encoding formats is not desirable and is discouraged for future encodings. |
---|
[231] | 659 | Their use here is representative of historical practice, not good design. For compatibility with previous implementations |
---|
| 660 | of HTTP, applications <em class="bcp14">SHOULD</em> consider "x-gzip" and "x-compress" to be equivalent to "gzip" and "compress" respectively. |
---|
[1099] | 661 | </li> |
---|
| 662 | </ul> |
---|
[231] | 663 | <p id="rfc.section.3.2.p.7">deflate<span id="rfc.iref.d.1"></span> |
---|
| 664 | </p> |
---|
[1099] | 665 | <ul class="empty"> |
---|
| 666 | <li>The "zlib" format defined in <a href="#RFC1950" id="rfc.xref.RFC1950.1"><cite title="ZLIB Compressed Data Format Specification version 3.3">[RFC1950]</cite></a> in combination with the "deflate" compression mechanism described in <a href="#RFC1951" id="rfc.xref.RFC1951.1"><cite title="DEFLATE Compressed Data Format Specification version 1.3">[RFC1951]</cite></a>. |
---|
| 667 | </li> |
---|
| 668 | </ul> |
---|
[231] | 669 | <p id="rfc.section.3.2.p.8">identity<span id="rfc.iref.i.1"></span> |
---|
| 670 | </p> |
---|
[1099] | 671 | <ul class="empty"> |
---|
| 672 | <li>The default (identity) encoding; the use of no transformation whatsoever. This content-coding is used only in the Accept-Encoding |
---|
[231] | 673 | header, and <em class="bcp14">SHOULD NOT</em> be used in the Content-Encoding header. |
---|
[1099] | 674 | </li> |
---|
| 675 | </ul> |
---|
[231] | 676 | <p id="rfc.section.3.2.p.9">New content-coding value tokens <em class="bcp14">SHOULD</em> be registered; to allow interoperability between clients and servers, specifications of the content coding algorithms needed |
---|
| 677 | to implement a new value <em class="bcp14">SHOULD</em> be publicly available and adequate for independent implementation, and conform to the purpose of content coding defined in |
---|
| 678 | this section. |
---|
| 679 | </p> |
---|
| 680 | <h2 id="rfc.section.3.3"><a href="#rfc.section.3.3">3.3</a> <a id="media.types" href="#media.types">Media Types</a></h2> |
---|
| 681 | <p id="rfc.section.3.3.p.1">HTTP uses Internet Media Types <a href="#RFC2046" id="rfc.xref.RFC2046.1"><cite title="Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types">[RFC2046]</cite></a> in the Content-Type (<a href="#header.content-type" id="rfc.xref.header.content-type.1" title="Content-Type">Section 6.9</a>) and Accept (<a href="#header.accept" id="rfc.xref.header.accept.1" title="Accept">Section 6.1</a>) header fields in order to provide open and extensible data typing and type negotiation. |
---|
| 682 | </p> |
---|
| 683 | <div id="rfc.figure.u.10"></div><pre class="inline"><span id="rfc.iref.g.4"></span><span id="rfc.iref.g.5"></span><span id="rfc.iref.g.6"></span> media-type = type "/" subtype *( ";" parameter ) |
---|
| 684 | type = token |
---|
| 685 | subtype = token |
---|
| 686 | </pre><p id="rfc.section.3.3.p.3">Parameters <em class="bcp14">MAY</em> follow the type/subtype in the form of attribute/value pairs. |
---|
| 687 | </p> |
---|
| 688 | <div id="rfc.figure.u.11"></div><pre class="inline"><span id="rfc.iref.g.7"></span><span id="rfc.iref.g.8"></span><span id="rfc.iref.g.9"></span> parameter = attribute "=" value |
---|
| 689 | attribute = token |
---|
| 690 | value = token | quoted-string |
---|
| 691 | </pre><p id="rfc.section.3.3.p.5">The type, subtype, and parameter attribute names are case-insensitive. Parameter values might or might not be case-sensitive, |
---|
| 692 | depending on the semantics of the parameter name. Linear white space (LWS) <em class="bcp14">MUST NOT</em> be used between the type and subtype, nor between an attribute and its value. The presence or absence of a parameter might |
---|
| 693 | be significant to the processing of a media-type, depending on its definition within the media type registry. |
---|
| 694 | </p> |
---|
| 695 | <p id="rfc.section.3.3.p.6">Note that some older HTTP applications do not recognize media type parameters. When sending data to older HTTP applications, |
---|
| 696 | implementations <em class="bcp14">SHOULD</em> only use media type parameters when they are required by that type/subtype definition. |
---|
| 697 | </p> |
---|
| 698 | <p id="rfc.section.3.3.p.7">Media-type values are registered with the Internet Assigned Number Authority (IANA). The media type registration process is |
---|
| 699 | outlined in <a href="#RFC4288" id="rfc.xref.RFC4288.1"><cite title="Media Type Specifications and Registration Procedures">[RFC4288]</cite></a>. Use of non-registered media types is discouraged. |
---|
| 700 | </p> |
---|
| 701 | <h3 id="rfc.section.3.3.1"><a href="#rfc.section.3.3.1">3.3.1</a> <a id="canonicalization.and.text.defaults" href="#canonicalization.and.text.defaults">Canonicalization and Text Defaults</a></h3> |
---|
| 702 | <p id="rfc.section.3.3.1.p.1">Internet media types are registered with a canonical form. An entity-body transferred via HTTP messages <em class="bcp14">MUST</em> be represented in the appropriate canonical form prior to its transmission except for "text" types, as defined in the next |
---|
| 703 | paragraph. |
---|
| 704 | </p> |
---|
| 705 | <p id="rfc.section.3.3.1.p.2">When in canonical form, media subtypes of the "text" type use CRLF as the text line break. HTTP relaxes this requirement and |
---|
| 706 | allows the transport of text media with plain CR or LF alone representing a line break when it is done consistently for an |
---|
| 707 | entire entity-body. HTTP applications <em class="bcp14">MUST</em> accept CRLF, bare CR, and bare LF as being representative of a line break in text media received via HTTP. In addition, if |
---|
| 708 | the text is represented in a character set that does not use octets 13 and 10 for CR and LF respectively, as is the case for |
---|
| 709 | some multi-byte character sets, HTTP allows the use of whatever octet sequences are defined by that character set to represent |
---|
| 710 | the equivalent of CR and LF for line breaks. This flexibility regarding line breaks applies only to text media in the entity-body; |
---|
| 711 | a bare CR or LF <em class="bcp14">MUST NOT</em> be substituted for CRLF within any of the HTTP control structures (such as header fields and multipart boundaries). |
---|
| 712 | </p> |
---|
| 713 | <p id="rfc.section.3.3.1.p.3">If an entity-body is encoded with a content-coding, the underlying data <em class="bcp14">MUST</em> be in a form defined above prior to being encoded. |
---|
| 714 | </p> |
---|
| 715 | <p id="rfc.section.3.3.1.p.4">The "charset" parameter is used with some media types to define the character set (<a href="#character.sets" title="Character Sets">Section 3.1</a>) of the data. When no explicit charset parameter is provided by the sender, media subtypes of the "text" type are defined |
---|
| 716 | to have a default charset value of "ISO-8859-1" when received via HTTP. Data in character sets other than "ISO-8859-1" or |
---|
| 717 | its subsets <em class="bcp14">MUST</em> be labeled with an appropriate charset value. See <a href="#missing.charset" title="Missing Charset">Section 3.1.1</a> for compatibility problems. |
---|
| 718 | </p> |
---|
| 719 | <h3 id="rfc.section.3.3.2"><a href="#rfc.section.3.3.2">3.3.2</a> <a id="multipart.types" href="#multipart.types">Multipart Types</a></h3> |
---|
| 720 | <p id="rfc.section.3.3.2.p.1">MIME provides for a number of "multipart" types -- encapsulations of one or more entities within a single message-body. All |
---|
| 721 | multipart types share a common syntax, as defined in <a href="http://tools.ietf.org/html/rfc2046#section-5.1.1">Section 5.1.1</a> of <a href="#RFC2046" id="rfc.xref.RFC2046.2"><cite title="Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types">[RFC2046]</cite></a>, and <em class="bcp14">MUST</em> include a boundary parameter as part of the media type value. The message body is itself a protocol element and <em class="bcp14">MUST</em> therefore use only CRLF to represent line breaks between body-parts. Unlike in RFC 2046, the epilogue of any multipart message <em class="bcp14">MUST</em> be empty; HTTP applications <em class="bcp14">MUST NOT</em> transmit the epilogue (even if the original multipart contains an epilogue). These restrictions exist in order to preserve |
---|
| 722 | the self-delimiting nature of a multipart message-body, wherein the "end" of the message-body is indicated by the ending multipart |
---|
| 723 | boundary. |
---|
| 724 | </p> |
---|
| 725 | <p id="rfc.section.3.3.2.p.2">In general, HTTP treats a multipart message-body no differently than any other media type: strictly as payload. The one exception |
---|
[1099] | 726 | is the "multipart/byteranges" type (<a href="p5-range.html#internet.media.type.multipart.byteranges" title="Internet Media Type multipart/byteranges">Appendix A</a> of <a href="#Part5" id="rfc.xref.Part5.2"><cite title="HTTP/1.1, part 5: Range Requests and Partial Responses">[Part5]</cite></a>) when it appears in a 206 (Partial Content) response. In all other cases, an HTTP user agent <em class="bcp14">SHOULD</em> follow the same or similar behavior as a MIME user agent would upon receipt of a multipart type. The MIME header fields within |
---|
| 727 | each body-part of a multipart message-body do not have any significance to HTTP beyond that defined by their MIME semantics. |
---|
[231] | 728 | </p> |
---|
| 729 | <p id="rfc.section.3.3.2.p.3">In general, an HTTP user agent <em class="bcp14">SHOULD</em> follow the same or similar behavior as a MIME user agent would upon receipt of a multipart type. If an application receives |
---|
| 730 | an unrecognized multipart subtype, the application <em class="bcp14">MUST</em> treat it as being equivalent to "multipart/mixed". |
---|
| 731 | </p> |
---|
[1099] | 732 | <ul class="empty"> |
---|
| 733 | <li> <b>Note:</b> The "multipart/form-data" type has been specifically defined for carrying form data suitable for processing via the POST request |
---|
[231] | 734 | method, as described in <a href="#RFC2388" id="rfc.xref.RFC2388.1"><cite title="Returning Values from Forms: multipart/form-data">[RFC2388]</cite></a>. |
---|
[1099] | 735 | </li> |
---|
| 736 | </ul> |
---|
[231] | 737 | <h2 id="rfc.section.3.4"><a href="#rfc.section.3.4">3.4</a> <a id="quality.values" href="#quality.values">Quality Values</a></h2> |
---|
| 738 | <p id="rfc.section.3.4.p.1">HTTP content negotiation (<a href="#content.negotiation" title="Content Negotiation">Section 5</a>) uses short "floating point" numbers to indicate the relative importance ("weight") of various negotiable parameters. A weight |
---|
| 739 | is normalized to a real number in the range 0 through 1, where 0 is the minimum and 1 the maximum value. If a parameter has |
---|
| 740 | a quality value of 0, then content with this parameter is `not acceptable' for the client. HTTP/1.1 applications <em class="bcp14">MUST NOT</em> generate more than three digits after the decimal point. User configuration of these values <em class="bcp14">SHOULD</em> also be limited in this fashion. |
---|
| 741 | </p> |
---|
| 742 | <div id="rfc.figure.u.12"></div><pre class="inline"><span id="rfc.iref.g.10"></span> qvalue = ( "0" [ "." 0*3DIGIT ] ) |
---|
| 743 | | ( "1" [ "." 0*3("0") ] ) |
---|
| 744 | </pre><p id="rfc.section.3.4.p.3">"Quality values" is a misnomer, since these values merely represent relative degradation in desired quality.</p> |
---|
| 745 | <h2 id="rfc.section.3.5"><a href="#rfc.section.3.5">3.5</a> <a id="language.tags" href="#language.tags">Language Tags</a></h2> |
---|
| 746 | <p id="rfc.section.3.5.p.1">A language tag identifies a natural language spoken, written, or otherwise conveyed by human beings for communication of information |
---|
| 747 | to other human beings. Computer languages are explicitly excluded. HTTP uses language tags within the Accept-Language and |
---|
| 748 | Content-Language fields. |
---|
| 749 | </p> |
---|
| 750 | <p id="rfc.section.3.5.p.2">The syntax and registry of HTTP language tags is the same as that defined by <a href="#RFC1766" id="rfc.xref.RFC1766.1"><cite title="Tags for the Identification of Languages">[RFC1766]</cite></a>. In summary, a language tag is composed of 1 or more parts: A primary language tag and a possibly empty series of subtags: |
---|
| 751 | </p> |
---|
| 752 | <div id="rfc.figure.u.13"></div><pre class="inline"><span id="rfc.iref.g.11"></span><span id="rfc.iref.g.12"></span><span id="rfc.iref.g.13"></span> language-tag = primary-tag *( "-" subtag ) |
---|
| 753 | primary-tag = 1*8ALPHA |
---|
| 754 | subtag = 1*8ALPHA |
---|
| 755 | </pre><p id="rfc.section.3.5.p.4">White space is not allowed within the tag and all tags are case-insensitive. The name space of language tags is administered |
---|
| 756 | by the IANA. Example tags include: |
---|
| 757 | </p> |
---|
| 758 | <div id="rfc.figure.u.14"></div><pre class="text"> en, en-US, en-cockney, i-cherokee, x-pig-latin |
---|
| 759 | </pre><p id="rfc.section.3.5.p.6">where any two-letter primary-tag is an ISO-639 language abbreviation and any two-letter initial subtag is an ISO-3166 country |
---|
| 760 | code. (The last three tags above are not registered tags; all but the last are examples of tags which could be registered |
---|
| 761 | in future.) |
---|
| 762 | </p> |
---|
| 763 | <h1 id="rfc.section.4"><a href="#rfc.section.4">4.</a> <a id="entity" href="#entity">Entity</a></h1> |
---|
| 764 | <p id="rfc.section.4.p.1">Request and Response messages <em class="bcp14">MAY</em> transfer an entity if not otherwise restricted by the request method or response status code. An entity consists of entity-header |
---|
| 765 | fields and an entity-body, although some responses will only include the entity-headers. |
---|
| 766 | </p> |
---|
| 767 | <p id="rfc.section.4.p.2">In this section, both sender and recipient refer to either the client or the server, depending on who sends and who receives |
---|
| 768 | the entity. |
---|
| 769 | </p> |
---|
| 770 | <h2 id="rfc.section.4.1"><a href="#rfc.section.4.1">4.1</a> <a id="entity.header.fields" href="#entity.header.fields">Entity Header Fields</a></h2> |
---|
| 771 | <p id="rfc.section.4.1.p.1">Entity-header fields define metainformation about the entity-body or, if no body is present, about the resource identified |
---|
| 772 | by the request. |
---|
| 773 | </p> |
---|
| 774 | <div id="rfc.figure.u.15"></div><pre class="inline"><span id="rfc.iref.g.14"></span><span id="rfc.iref.g.15"></span> entity-header = Allow ; <a href="#Part2" id="rfc.xref.Part2.2"><cite title="HTTP/1.1, part 2: Message Semantics">[Part2]</cite></a>, <a href="p2-semantics.html#header.allow" title="Allow">Section 10.1</a> |
---|
| 775 | | Content-Encoding ; <a href="#header.content-encoding" id="rfc.xref.header.content-encoding.2" title="Content-Encoding">Section 6.5</a> |
---|
| 776 | | Content-Language ; <a href="#header.content-language" id="rfc.xref.header.content-language.1" title="Content-Language">Section 6.6</a> |
---|
| 777 | | Content-Length ; <a href="#Part1" id="rfc.xref.Part1.12"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>, <a href="p1-messaging.html#header.content-length" title="Content-Length">Section 8.2</a> |
---|
| 778 | | Content-Location ; <a href="#header.content-location" id="rfc.xref.header.content-location.1" title="Content-Location">Section 6.7</a> |
---|
| 779 | | Content-MD5 ; <a href="#header.content-md5" id="rfc.xref.header.content-md5.1" title="Content-MD5">Section 6.8</a> |
---|
| 780 | | Content-Range ; <a href="#Part5" id="rfc.xref.Part5.3"><cite title="HTTP/1.1, part 5: Range Requests and Partial Responses">[Part5]</cite></a>, <a href="p5-range.html#header.content-range" title="Content-Range">Section 6.2</a> |
---|
| 781 | | Content-Type ; <a href="#header.content-type" id="rfc.xref.header.content-type.2" title="Content-Type">Section 6.9</a> |
---|
| 782 | | Expires ; <a href="#Part6" id="rfc.xref.Part6.2"><cite title="HTTP/1.1, part 6: Caching">[Part6]</cite></a>, <a href="p6-cache.html#header.expires" title="Expires">Section 16.3</a> |
---|
| 783 | | Last-Modified ; <a href="#Part4" id="rfc.xref.Part4.2"><cite title="HTTP/1.1, part 4: Conditional Requests">[Part4]</cite></a>, <a href="p4-conditional.html#header.last-modified" title="Last-Modified">Section 7.6</a> |
---|
| 784 | | extension-header |
---|
| 785 | |
---|
| 786 | extension-header = message-header |
---|
| 787 | </pre><p id="rfc.section.4.1.p.3">The extension-header mechanism allows additional entity-header fields to be defined without changing the protocol, but these |
---|
| 788 | fields cannot be assumed to be recognizable by the recipient. Unrecognized header fields <em class="bcp14">SHOULD</em> be ignored by the recipient and <em class="bcp14">MUST</em> be forwarded by transparent proxies. |
---|
| 789 | </p> |
---|
| 790 | <h2 id="rfc.section.4.2"><a href="#rfc.section.4.2">4.2</a> <a id="entity.body" href="#entity.body">Entity Body</a></h2> |
---|
| 791 | <p id="rfc.section.4.2.p.1">The entity-body (if any) sent with an HTTP request or response is in a format and encoding defined by the entity-header fields.</p> |
---|
| 792 | <div id="rfc.figure.u.16"></div><pre class="inline"><span id="rfc.iref.g.16"></span> entity-body = *OCTET |
---|
| 793 | </pre><p id="rfc.section.4.2.p.3">An entity-body is only present in a message when a message-body is present, as described in <a href="p1-messaging.html#message.body" title="Message Body">Section 4.3</a> of <a href="#Part1" id="rfc.xref.Part1.13"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>. The entity-body is obtained from the message-body by decoding any Transfer-Encoding that might have been applied to ensure |
---|
| 794 | safe and proper transfer of the message. |
---|
| 795 | </p> |
---|
| 796 | <h3 id="rfc.section.4.2.1"><a href="#rfc.section.4.2.1">4.2.1</a> <a id="type" href="#type">Type</a></h3> |
---|
| 797 | <p id="rfc.section.4.2.1.p.1">When an entity-body is included with a message, the data type of that body is determined via the header fields Content-Type |
---|
| 798 | and Content-Encoding. These define a two-layer, ordered encoding model: |
---|
| 799 | </p> |
---|
| 800 | <div id="rfc.figure.u.17"></div><pre class="text"> entity-body := Content-Encoding( Content-Type( data ) ) |
---|
| 801 | </pre><p id="rfc.section.4.2.1.p.3">Content-Type specifies the media type of the underlying data. Content-Encoding may be used to indicate any additional content |
---|
| 802 | codings applied to the data, usually for the purpose of data compression, that are a property of the requested resource. There |
---|
| 803 | is no default encoding. |
---|
| 804 | </p> |
---|
| 805 | <p id="rfc.section.4.2.1.p.4">Any HTTP/1.1 message containing an entity-body <em class="bcp14">SHOULD</em> include a Content-Type header field defining the media type of that body. If and only if the media type is not given by a |
---|
| 806 | Content-Type field, the recipient <em class="bcp14">MAY</em> attempt to guess the media type via inspection of its content and/or the name extension(s) of the URI used to identify the |
---|
| 807 | resource. If the media type remains unknown, the recipient <em class="bcp14">SHOULD</em> treat it as type "application/octet-stream". |
---|
| 808 | </p> |
---|
| 809 | <h3 id="rfc.section.4.2.2"><a href="#rfc.section.4.2.2">4.2.2</a> <a id="entity.length" href="#entity.length">Entity Length</a></h3> |
---|
| 810 | <p id="rfc.section.4.2.2.p.1">The entity-length of a message is the length of the message-body before any transfer-codings have been applied. <a href="p1-messaging.html#message.length" title="Message Length">Section 4.4</a> of <a href="#Part1" id="rfc.xref.Part1.14"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a> defines how the transfer-length of a message-body is determined. |
---|
| 811 | </p> |
---|
| 812 | <h1 id="rfc.section.5"><a href="#rfc.section.5">5.</a> <a id="content.negotiation" href="#content.negotiation">Content Negotiation</a></h1> |
---|
| 813 | <p id="rfc.section.5.p.1">Most HTTP responses include an entity which contains information for interpretation by a human user. Naturally, it is desirable |
---|
| 814 | to supply the user with the "best available" entity corresponding to the request. Unfortunately for servers and caches, not |
---|
| 815 | all users have the same preferences for what is "best," and not all user agents are equally capable of rendering all entity |
---|
| 816 | types. For that reason, HTTP has provisions for several mechanisms for "content negotiation" -- the process of selecting the |
---|
| 817 | best representation for a given response when there are multiple representations available. |
---|
| 818 | </p> |
---|
[1099] | 819 | <ul class="empty"> |
---|
| 820 | <li> <b>Note:</b> This is not called "format negotiation" because the alternate representations may be of the same media type, but use different |
---|
[231] | 821 | capabilities of that type, be in different languages, etc. |
---|
[1099] | 822 | </li> |
---|
| 823 | </ul> |
---|
[231] | 824 | <p id="rfc.section.5.p.2">Any response containing an entity-body <em class="bcp14">MAY</em> be subject to negotiation, including error responses. |
---|
| 825 | </p> |
---|
| 826 | <p id="rfc.section.5.p.3">There are two kinds of content negotiation which are possible in HTTP: server-driven and agent-driven negotiation. These two |
---|
| 827 | kinds of negotiation are orthogonal and thus may be used separately or in combination. One method of combination, referred |
---|
| 828 | to as transparent negotiation, occurs when a cache uses the agent-driven negotiation information provided by the origin server |
---|
| 829 | in order to provide server-driven negotiation for subsequent requests. |
---|
| 830 | </p> |
---|
| 831 | <h2 id="rfc.section.5.1"><a href="#rfc.section.5.1">5.1</a> <a id="server-driven.negotiation" href="#server-driven.negotiation">Server-driven Negotiation</a></h2> |
---|
| 832 | <p id="rfc.section.5.1.p.1">If the selection of the best representation for a response is made by an algorithm located at the server, it is called server-driven |
---|
| 833 | negotiation. Selection is based on the available representations of the response (the dimensions over which it can vary; e.g. |
---|
| 834 | language, content-coding, etc.) and the contents of particular header fields in the request message or on other information |
---|
| 835 | pertaining to the request (such as the network address of the client). |
---|
| 836 | </p> |
---|
| 837 | <p id="rfc.section.5.1.p.2">Server-driven negotiation is advantageous when the algorithm for selecting from among the available representations is difficult |
---|
| 838 | to describe to the user agent, or when the server desires to send its "best guess" to the client along with the first response |
---|
| 839 | (hoping to avoid the round-trip delay of a subsequent request if the "best guess" is good enough for the user). In order to |
---|
| 840 | improve the server's guess, the user agent <em class="bcp14">MAY</em> include request header fields (Accept, Accept-Language, Accept-Encoding, etc.) which describe its preferences for such a response. |
---|
| 841 | </p> |
---|
| 842 | <p id="rfc.section.5.1.p.3">Server-driven negotiation has disadvantages: </p> |
---|
| 843 | <ol> |
---|
| 844 | <li>It is impossible for the server to accurately determine what might be "best" for any given user, since that would require |
---|
| 845 | complete knowledge of both the capabilities of the user agent and the intended use for the response (e.g., does the user want |
---|
| 846 | to view it on screen or print it on paper?). |
---|
| 847 | </li> |
---|
| 848 | <li>Having the user agent describe its capabilities in every request can be both very inefficient (given that only a small percentage |
---|
| 849 | of responses have multiple representations) and a potential violation of the user's privacy. |
---|
| 850 | </li> |
---|
| 851 | <li>It complicates the implementation of an origin server and the algorithms for generating responses to a request.</li> |
---|
| 852 | <li>It may limit a public cache's ability to use the same response for multiple user's requests.</li> |
---|
| 853 | </ol> |
---|
| 854 | <p id="rfc.section.5.1.p.4">HTTP/1.1 includes the following request-header fields for enabling server-driven negotiation through description of user agent |
---|
| 855 | capabilities and user preferences: Accept (<a href="#header.accept" id="rfc.xref.header.accept.2" title="Accept">Section 6.1</a>), Accept-Charset (<a href="#header.accept-charset" id="rfc.xref.header.accept-charset.1" title="Accept-Charset">Section 6.2</a>), Accept-Encoding (<a href="#header.accept-encoding" id="rfc.xref.header.accept-encoding.2" title="Accept-Encoding">Section 6.3</a>), Accept-Language (<a href="#header.accept-language" id="rfc.xref.header.accept-language.1" title="Accept-Language">Section 6.4</a>), and User-Agent (<a href="p2-semantics.html#header.user-agent" title="User-Agent">Section 10.9</a> of <a href="#Part2" id="rfc.xref.Part2.3"><cite title="HTTP/1.1, part 2: Message Semantics">[Part2]</cite></a>). However, an origin server is not limited to these dimensions and <em class="bcp14">MAY</em> vary the response based on any aspect of the request, including information outside the request-header fields or within extension |
---|
| 856 | header fields not defined by this specification. |
---|
| 857 | </p> |
---|
| 858 | <p id="rfc.section.5.1.p.5">The Vary header field (<a href="p6-cache.html#header.vary" title="Vary">Section 16.5</a> of <a href="#Part6" id="rfc.xref.Part6.3"><cite title="HTTP/1.1, part 6: Caching">[Part6]</cite></a>) can be used to express the parameters the server uses to select a representation that is subject to server-driven negotiation. |
---|
| 859 | </p> |
---|
| 860 | <h2 id="rfc.section.5.2"><a href="#rfc.section.5.2">5.2</a> <a id="agent-driven.negotiation" href="#agent-driven.negotiation">Agent-driven Negotiation</a></h2> |
---|
| 861 | <p id="rfc.section.5.2.p.1">With agent-driven negotiation, selection of the best representation for a response is performed by the user agent after receiving |
---|
| 862 | an initial response from the origin server. Selection is based on a list of the available representations of the response |
---|
| 863 | included within the header fields or entity-body of the initial response, with each representation identified by its own URI. |
---|
| 864 | Selection from among the representations may be performed automatically (if the user agent is capable of doing so) or manually |
---|
| 865 | by the user selecting from a generated (possibly hypertext) menu. |
---|
| 866 | </p> |
---|
| 867 | <p id="rfc.section.5.2.p.2">Agent-driven negotiation is advantageous when the response would vary over commonly-used dimensions (such as type, language, |
---|
| 868 | or encoding), when the origin server is unable to determine a user agent's capabilities from examining the request, and generally |
---|
| 869 | when public caches are used to distribute server load and reduce network usage. |
---|
| 870 | </p> |
---|
| 871 | <p id="rfc.section.5.2.p.3">Agent-driven negotiation suffers from the disadvantage of needing a second request to obtain the best alternate representation. |
---|
| 872 | This second request is only efficient when caching is used. In addition, this specification does not define any mechanism |
---|
| 873 | for supporting automatic selection, though it also does not prevent any such mechanism from being developed as an extension |
---|
| 874 | and used within HTTP/1.1. |
---|
| 875 | </p> |
---|
| 876 | <p id="rfc.section.5.2.p.4">HTTP/1.1 defines the 300 (Multiple Choices) and 406 (Not Acceptable) status codes for enabling agent-driven negotiation when |
---|
| 877 | the server is unwilling or unable to provide a varying response using server-driven negotiation. |
---|
| 878 | </p> |
---|
| 879 | <h2 id="rfc.section.5.3"><a href="#rfc.section.5.3">5.3</a> <a id="transparent.negotiation" href="#transparent.negotiation">Transparent Negotiation</a></h2> |
---|
| 880 | <p id="rfc.section.5.3.p.1">Transparent negotiation is a combination of both server-driven and agent-driven negotiation. When a cache is supplied with |
---|
| 881 | a form of the list of available representations of the response (as in agent-driven negotiation) and the dimensions of variance |
---|
| 882 | are completely understood by the cache, then the cache becomes capable of performing server-driven negotiation on behalf of |
---|
| 883 | the origin server for subsequent requests on that resource. |
---|
| 884 | </p> |
---|
| 885 | <p id="rfc.section.5.3.p.2">Transparent negotiation has the advantage of distributing the negotiation work that would otherwise be required of the origin |
---|
| 886 | server and also removing the second request delay of agent-driven negotiation when the cache is able to correctly guess the |
---|
| 887 | right response. |
---|
| 888 | </p> |
---|
| 889 | <p id="rfc.section.5.3.p.3">This specification does not define any mechanism for transparent negotiation, though it also does not prevent any such mechanism |
---|
| 890 | from being developed as an extension that could be used within HTTP/1.1. |
---|
| 891 | </p> |
---|
| 892 | <h1 id="rfc.section.6"><a href="#rfc.section.6">6.</a> <a id="header.fields" href="#header.fields">Header Field Definitions</a></h1> |
---|
| 893 | <p id="rfc.section.6.p.1">This section defines the syntax and semantics of HTTP/1.1 header fields related to the payload of messages.</p> |
---|
| 894 | <p id="rfc.section.6.p.2">For entity-header fields, both sender and recipient refer to either the client or the server, depending on who sends and who |
---|
| 895 | receives the entity. |
---|
| 896 | </p> |
---|
| 897 | <div id="rfc.iref.a.1"></div> |
---|
| 898 | <div id="rfc.iref.h.1"></div> |
---|
| 899 | <h2 id="rfc.section.6.1"><a href="#rfc.section.6.1">6.1</a> <a id="header.accept" href="#header.accept">Accept</a></h2> |
---|
| 900 | <p id="rfc.section.6.1.p.1">The Accept request-header field can be used to specify certain media types which are acceptable for the response. Accept headers |
---|
| 901 | can be used to indicate that the request is specifically limited to a small set of desired types, as in the case of a request |
---|
| 902 | for an in-line image. |
---|
| 903 | </p> |
---|
| 904 | <div id="rfc.figure.u.18"></div><pre class="inline"><span id="rfc.iref.g.17"></span><span id="rfc.iref.g.18"></span><span id="rfc.iref.g.19"></span><span id="rfc.iref.g.20"></span> Accept = "Accept" ":" |
---|
| 905 | #( media-range [ accept-params ] ) |
---|
| 906 | |
---|
| 907 | media-range = ( "*/*" |
---|
| 908 | | ( type "/" "*" ) |
---|
| 909 | | ( type "/" subtype ) |
---|
| 910 | ) *( ";" parameter ) |
---|
| 911 | accept-params = ";" "q" "=" qvalue *( accept-extension ) |
---|
| 912 | accept-extension = ";" token [ "=" ( token | quoted-string ) ] |
---|
| 913 | </pre><p id="rfc.section.6.1.p.3">The asterisk "*" character is used to group media types into ranges, with "*/*" indicating all media types and "type/*" indicating |
---|
| 914 | all subtypes of that type. The media-range <em class="bcp14">MAY</em> include media type parameters that are applicable to that range. |
---|
| 915 | </p> |
---|
| 916 | <p id="rfc.section.6.1.p.4">Each media-range <em class="bcp14">MAY</em> be followed by one or more accept-params, beginning with the "q" parameter for indicating a relative quality factor. The first |
---|
| 917 | "q" parameter (if any) separates the media-range parameter(s) from the accept-params. Quality factors allow the user or user |
---|
| 918 | agent to indicate the relative degree of preference for that media-range, using the qvalue scale from 0 to 1 (<a href="#quality.values" title="Quality Values">Section 3.4</a>). The default value is q=1. |
---|
| 919 | </p> |
---|
[1099] | 920 | <ul class="empty"> |
---|
| 921 | <li> <b>Note:</b> Use of the "q" parameter name to separate media type parameters from Accept extension parameters is due to historical practice. |
---|
[231] | 922 | Although this prevents any media type parameter named "q" from being used with a media range, such an event is believed to |
---|
| 923 | be unlikely given the lack of any "q" parameters in the IANA media type registry and the rare usage of any media type parameters |
---|
| 924 | in Accept. Future media types are discouraged from registering any parameter named "q". |
---|
[1099] | 925 | </li> |
---|
| 926 | </ul> |
---|
[231] | 927 | <p id="rfc.section.6.1.p.5">The example</p> |
---|
| 928 | <div id="rfc.figure.u.19"></div><pre class="text"> Accept: audio/*; q=0.2, audio/basic |
---|
| 929 | </pre><p id="rfc.section.6.1.p.7"> <em class="bcp14">SHOULD</em> be interpreted as "I prefer audio/basic, but send me any audio type if it is the best available after an 80% mark-down in |
---|
| 930 | quality." |
---|
| 931 | </p> |
---|
| 932 | <p id="rfc.section.6.1.p.8">If no Accept header field is present, then it is assumed that the client accepts all media types. If an Accept header field |
---|
| 933 | is present, and if the server cannot send a response which is acceptable according to the combined Accept field value, then |
---|
| 934 | the server <em class="bcp14">SHOULD</em> send a 406 (Not Acceptable) response. |
---|
| 935 | </p> |
---|
| 936 | <p id="rfc.section.6.1.p.9">A more elaborate example is</p> |
---|
| 937 | <div id="rfc.figure.u.20"></div><pre class="text"> Accept: text/plain; q=0.5, text/html, |
---|
| 938 | text/x-dvi; q=0.8, text/x-c |
---|
| 939 | </pre><p id="rfc.section.6.1.p.11">Verbally, this would be interpreted as "text/html and text/x-c are the preferred media types, but if they do not exist, then |
---|
| 940 | send the text/x-dvi entity, and if that does not exist, send the text/plain entity." |
---|
| 941 | </p> |
---|
| 942 | <p id="rfc.section.6.1.p.12">Media ranges can be overridden by more specific media ranges or specific media types. If more than one media range applies |
---|
| 943 | to a given type, the most specific reference has precedence. For example, |
---|
| 944 | </p> |
---|
| 945 | <div id="rfc.figure.u.21"></div><pre class="text"> Accept: text/*, text/html, text/html;level=1, */* |
---|
| 946 | </pre><p id="rfc.section.6.1.p.14">have the following precedence:</p> |
---|
| 947 | <div id="rfc.figure.u.22"></div><pre class="text"> 1) text/html;level=1 |
---|
| 948 | 2) text/html |
---|
| 949 | 3) text/* |
---|
| 950 | 4) */* |
---|
| 951 | </pre><p id="rfc.section.6.1.p.16">The media type quality factor associated with a given type is determined by finding the media range with the highest precedence |
---|
| 952 | which matches that type. For example, |
---|
| 953 | </p> |
---|
| 954 | <div id="rfc.figure.u.23"></div><pre class="text"> Accept: text/*;q=0.3, text/html;q=0.7, text/html;level=1, |
---|
| 955 | text/html;level=2;q=0.4, */*;q=0.5 |
---|
| 956 | </pre><p id="rfc.section.6.1.p.18">would cause the following values to be associated:</p> |
---|
| 957 | <div id="rfc.figure.u.24"></div><pre class="text"> text/html;level=1 = 1 |
---|
| 958 | text/html = 0.7 |
---|
| 959 | text/plain = 0.3 |
---|
| 960 | image/jpeg = 0.5 |
---|
| 961 | text/html;level=2 = 0.4 |
---|
| 962 | text/html;level=3 = 0.7 |
---|
| 963 | </pre><p id="rfc.section.6.1.p.20"> <b>Note:</b> A user agent might be provided with a default set of quality values for certain media ranges. However, unless the user agent |
---|
| 964 | is a closed system which cannot interact with other rendering agents, this default set ought to be configurable by the user. |
---|
| 965 | </p> |
---|
| 966 | <div id="rfc.iref.a.2"></div> |
---|
| 967 | <div id="rfc.iref.h.2"></div> |
---|
| 968 | <h2 id="rfc.section.6.2"><a href="#rfc.section.6.2">6.2</a> <a id="header.accept-charset" href="#header.accept-charset">Accept-Charset</a></h2> |
---|
| 969 | <p id="rfc.section.6.2.p.1">The Accept-Charset request-header field can be used to indicate what character sets are acceptable for the response. This |
---|
| 970 | field allows clients capable of understanding more comprehensive or special-purpose character sets to signal that capability |
---|
| 971 | to a server which is capable of representing documents in those character sets. |
---|
| 972 | </p> |
---|
| 973 | <div id="rfc.figure.u.25"></div><pre class="inline"><span id="rfc.iref.g.21"></span> Accept-Charset = "Accept-Charset" ":" |
---|
| 974 | 1#( ( charset | "*" ) [ ";" "q" "=" qvalue ] ) |
---|
| 975 | </pre><p id="rfc.section.6.2.p.3">Character set values are described in <a href="#character.sets" title="Character Sets">Section 3.1</a>. Each charset <em class="bcp14">MAY</em> be given an associated quality value which represents the user's preference for that charset. The default value is q=1. An |
---|
| 976 | example is |
---|
| 977 | </p> |
---|
| 978 | <div id="rfc.figure.u.26"></div><pre class="text"> Accept-Charset: iso-8859-5, unicode-1-1;q=0.8 |
---|
| 979 | </pre><p id="rfc.section.6.2.p.5">The special value "*", if present in the Accept-Charset field, matches every character set (including ISO-8859-1) which is |
---|
| 980 | not mentioned elsewhere in the Accept-Charset field. If no "*" is present in an Accept-Charset field, then all character sets |
---|
| 981 | not explicitly mentioned get a quality value of 0, except for ISO-8859-1, which gets a quality value of 1 if not explicitly |
---|
| 982 | mentioned. |
---|
| 983 | </p> |
---|
| 984 | <p id="rfc.section.6.2.p.6">If no Accept-Charset header is present, the default is that any character set is acceptable. If an Accept-Charset header is |
---|
| 985 | present, and if the server cannot send a response which is acceptable according to the Accept-Charset header, then the server <em class="bcp14">SHOULD</em> send an error response with the 406 (Not Acceptable) status code, though the sending of an unacceptable response is also allowed. |
---|
| 986 | </p> |
---|
| 987 | <div id="rfc.iref.a.3"></div> |
---|
| 988 | <div id="rfc.iref.h.3"></div> |
---|
| 989 | <h2 id="rfc.section.6.3"><a href="#rfc.section.6.3">6.3</a> <a id="header.accept-encoding" href="#header.accept-encoding">Accept-Encoding</a></h2> |
---|
| 990 | <p id="rfc.section.6.3.p.1">The Accept-Encoding request-header field is similar to Accept, but restricts the content-codings (<a href="#content.codings" title="Content Codings">Section 3.2</a>) that are acceptable in the response. |
---|
| 991 | </p> |
---|
| 992 | <div id="rfc.figure.u.27"></div><pre class="inline"><span id="rfc.iref.g.22"></span><span id="rfc.iref.g.23"></span> Accept-Encoding = "Accept-Encoding" ":" |
---|
| 993 | #( codings [ ";" "q" "=" qvalue ] ) |
---|
| 994 | codings = ( content-coding | "*" ) |
---|
| 995 | </pre><p id="rfc.section.6.3.p.3">Examples of its use are:</p> |
---|
| 996 | <div id="rfc.figure.u.28"></div><pre class="text"> Accept-Encoding: compress, gzip |
---|
| 997 | Accept-Encoding: |
---|
| 998 | Accept-Encoding: * |
---|
| 999 | Accept-Encoding: compress;q=0.5, gzip;q=1.0 |
---|
| 1000 | Accept-Encoding: gzip;q=1.0, identity; q=0.5, *;q=0 |
---|
| 1001 | </pre><p id="rfc.section.6.3.p.5">A server tests whether a content-coding is acceptable, according to an Accept-Encoding field, using these rules: </p> |
---|
| 1002 | <ol> |
---|
| 1003 | <li>If the content-coding is one of the content-codings listed in the Accept-Encoding field, then it is acceptable, unless it |
---|
| 1004 | is accompanied by a qvalue of 0. (As defined in <a href="#quality.values" title="Quality Values">Section 3.4</a>, a qvalue of 0 means "not acceptable.") |
---|
| 1005 | </li> |
---|
| 1006 | <li>The special "*" symbol in an Accept-Encoding field matches any available content-coding not explicitly listed in the header |
---|
| 1007 | field. |
---|
| 1008 | </li> |
---|
| 1009 | <li>If multiple content-codings are acceptable, then the acceptable content-coding with the highest non-zero qvalue is preferred.</li> |
---|
| 1010 | <li>The "identity" content-coding is always acceptable, unless specifically refused because the Accept-Encoding field includes |
---|
| 1011 | "identity;q=0", or because the field includes "*;q=0" and does not explicitly include the "identity" content-coding. If the |
---|
| 1012 | Accept-Encoding field-value is empty, then only the "identity" encoding is acceptable. |
---|
| 1013 | </li> |
---|
| 1014 | </ol> |
---|
| 1015 | <p id="rfc.section.6.3.p.6">If an Accept-Encoding field is present in a request, and if the server cannot send a response which is acceptable according |
---|
| 1016 | to the Accept-Encoding header, then the server <em class="bcp14">SHOULD</em> send an error response with the 406 (Not Acceptable) status code. |
---|
| 1017 | </p> |
---|
| 1018 | <p id="rfc.section.6.3.p.7">If no Accept-Encoding field is present in a request, the server <em class="bcp14">MAY</em> assume that the client will accept any content coding. In this case, if "identity" is one of the available content-codings, |
---|
| 1019 | then the server <em class="bcp14">SHOULD</em> use the "identity" content-coding, unless it has additional information that a different content-coding is meaningful to the |
---|
| 1020 | client. |
---|
| 1021 | </p> |
---|
[1099] | 1022 | <ul class="empty"> |
---|
| 1023 | <li> <b>Note:</b> If the request does not include an Accept-Encoding field, and if the "identity" content-coding is unavailable, then content-codings |
---|
[231] | 1024 | commonly understood by HTTP/1.0 clients (i.e., "gzip" and "compress") are preferred; some older clients improperly display |
---|
| 1025 | messages sent with other content-codings. The server might also make this decision based on information about the particular |
---|
| 1026 | user-agent or client. |
---|
[1099] | 1027 | </li> |
---|
| 1028 | <li> <b>Note:</b> Most HTTP/1.0 applications do not recognize or obey qvalues associated with content-codings. This means that qvalues will |
---|
[231] | 1029 | not work and are not permitted with x-gzip or x-compress. |
---|
[1099] | 1030 | </li> |
---|
| 1031 | </ul> |
---|
[231] | 1032 | <div id="rfc.iref.a.4"></div> |
---|
| 1033 | <div id="rfc.iref.h.4"></div> |
---|
| 1034 | <h2 id="rfc.section.6.4"><a href="#rfc.section.6.4">6.4</a> <a id="header.accept-language" href="#header.accept-language">Accept-Language</a></h2> |
---|
| 1035 | <p id="rfc.section.6.4.p.1">The Accept-Language request-header field is similar to Accept, but restricts the set of natural languages that are preferred |
---|
| 1036 | as a response to the request. Language tags are defined in <a href="#language.tags" title="Language Tags">Section 3.5</a>. |
---|
| 1037 | </p> |
---|
| 1038 | <div id="rfc.figure.u.29"></div><pre class="inline"><span id="rfc.iref.g.24"></span><span id="rfc.iref.g.25"></span> Accept-Language = "Accept-Language" ":" |
---|
| 1039 | 1#( language-range [ ";" "q" "=" qvalue ] ) |
---|
| 1040 | language-range = ( ( 1*8ALPHA *( "-" 1*8ALPHA ) ) | "*" ) |
---|
| 1041 | </pre><p id="rfc.section.6.4.p.3">Each language-range <em class="bcp14">MAY</em> be given an associated quality value which represents an estimate of the user's preference for the languages specified by |
---|
| 1042 | that range. The quality value defaults to "q=1". For example, |
---|
| 1043 | </p> |
---|
| 1044 | <div id="rfc.figure.u.30"></div><pre class="text"> Accept-Language: da, en-gb;q=0.8, en;q=0.7 |
---|
| 1045 | </pre><p id="rfc.section.6.4.p.5">would mean: "I prefer Danish, but will accept British English and other types of English." A language-range matches a language-tag |
---|
| 1046 | if it exactly equals the tag, or if it exactly equals a prefix of the tag such that the first tag character following the |
---|
| 1047 | prefix is "-". The special range "*", if present in the Accept-Language field, matches every tag not matched by any other |
---|
| 1048 | range present in the Accept-Language field. |
---|
| 1049 | </p> |
---|
[1099] | 1050 | <ul class="empty"> |
---|
| 1051 | <li> <b>Note:</b> This use of a prefix matching rule does not imply that language tags are assigned to languages in such a way that it is always |
---|
[231] | 1052 | true that if a user understands a language with a certain tag, then this user will also understand all languages with tags |
---|
| 1053 | for which this tag is a prefix. The prefix rule simply allows the use of prefix tags if this is the case. |
---|
[1099] | 1054 | </li> |
---|
| 1055 | </ul> |
---|
[231] | 1056 | <p id="rfc.section.6.4.p.6">The language quality factor assigned to a language-tag by the Accept-Language field is the quality value of the longest language-range |
---|
| 1057 | in the field that matches the language-tag. If no language-range in the field matches the tag, the language quality factor |
---|
| 1058 | assigned is 0. If no Accept-Language header is present in the request, the server <em class="bcp14">SHOULD</em> assume that all languages are equally acceptable. If an Accept-Language header is present, then all languages which are assigned |
---|
| 1059 | a quality factor greater than 0 are acceptable. |
---|
| 1060 | </p> |
---|
| 1061 | <p id="rfc.section.6.4.p.7">It might be contrary to the privacy expectations of the user to send an Accept-Language header with the complete linguistic |
---|
| 1062 | preferences of the user in every request. For a discussion of this issue, see <a href="#privacy.issues.connected.to.accept.headers" title="Privacy Issues Connected to Accept Headers">Section 8.1</a>. |
---|
| 1063 | </p> |
---|
| 1064 | <p id="rfc.section.6.4.p.8">As intelligibility is highly dependent on the individual user, it is recommended that client applications make the choice |
---|
| 1065 | of linguistic preference available to the user. If the choice is not made available, then the Accept-Language header field <em class="bcp14">MUST NOT</em> be given in the request. |
---|
| 1066 | </p> |
---|
[1099] | 1067 | <ul class="empty"> |
---|
| 1068 | <li> <b>Note:</b> When making the choice of linguistic preference available to the user, we remind implementors of the fact that users are not |
---|
[231] | 1069 | familiar with the details of language matching as described above, and should provide appropriate guidance. As an example, |
---|
| 1070 | users might assume that on selecting "en-gb", they will be served any kind of English document if British English is not available. |
---|
| 1071 | A user agent might suggest in such a case to add "en" to get the best matching behavior. |
---|
[1099] | 1072 | </li> |
---|
| 1073 | </ul> |
---|
[231] | 1074 | <div id="rfc.iref.c.2"></div> |
---|
| 1075 | <div id="rfc.iref.h.5"></div> |
---|
| 1076 | <h2 id="rfc.section.6.5"><a href="#rfc.section.6.5">6.5</a> <a id="header.content-encoding" href="#header.content-encoding">Content-Encoding</a></h2> |
---|
| 1077 | <p id="rfc.section.6.5.p.1">The Content-Encoding entity-header field is used as a modifier to the media-type. When present, its value indicates what additional |
---|
| 1078 | content codings have been applied to the entity-body, and thus what decoding mechanisms must be applied in order to obtain |
---|
| 1079 | the media-type referenced by the Content-Type header field. Content-Encoding is primarily used to allow a document to be compressed |
---|
| 1080 | without losing the identity of its underlying media type. |
---|
| 1081 | </p> |
---|
| 1082 | <div id="rfc.figure.u.31"></div><pre class="inline"><span id="rfc.iref.g.26"></span> Content-Encoding = "Content-Encoding" ":" 1#content-coding |
---|
| 1083 | </pre><p id="rfc.section.6.5.p.3">Content codings are defined in <a href="#content.codings" title="Content Codings">Section 3.2</a>. An example of its use is |
---|
| 1084 | </p> |
---|
| 1085 | <div id="rfc.figure.u.32"></div><pre class="text"> Content-Encoding: gzip |
---|
| 1086 | </pre><p id="rfc.section.6.5.p.5">The content-coding is a characteristic of the entity identified by the Request-URI. Typically, the entity-body is stored with |
---|
| 1087 | this encoding and is only decoded before rendering or analogous usage. However, a non-transparent proxy <em class="bcp14">MAY</em> modify the content-coding if the new coding is known to be acceptable to the recipient, unless the "no-transform" cache-control |
---|
| 1088 | directive is present in the message. |
---|
| 1089 | </p> |
---|
| 1090 | <p id="rfc.section.6.5.p.6">If the content-coding of an entity is not "identity", then the response <em class="bcp14">MUST</em> include a Content-Encoding entity-header (<a href="#header.content-encoding" id="rfc.xref.header.content-encoding.3" title="Content-Encoding">Section 6.5</a>) that lists the non-identity content-coding(s) used. |
---|
| 1091 | </p> |
---|
| 1092 | <p id="rfc.section.6.5.p.7">If the content-coding of an entity in a request message is not acceptable to the origin server, the server <em class="bcp14">SHOULD</em> respond with a status code of 415 (Unsupported Media Type). |
---|
| 1093 | </p> |
---|
| 1094 | <p id="rfc.section.6.5.p.8">If multiple encodings have been applied to an entity, the content codings <em class="bcp14">MUST</em> be listed in the order in which they were applied. Additional information about the encoding parameters <em class="bcp14">MAY</em> be provided by other entity-header fields not defined by this specification. |
---|
| 1095 | </p> |
---|
| 1096 | <div id="rfc.iref.c.3"></div> |
---|
| 1097 | <div id="rfc.iref.h.6"></div> |
---|
| 1098 | <h2 id="rfc.section.6.6"><a href="#rfc.section.6.6">6.6</a> <a id="header.content-language" href="#header.content-language">Content-Language</a></h2> |
---|
| 1099 | <p id="rfc.section.6.6.p.1">The Content-Language entity-header field describes the natural language(s) of the intended audience for the enclosed entity. |
---|
| 1100 | Note that this might not be equivalent to all the languages used within the entity-body. |
---|
| 1101 | </p> |
---|
| 1102 | <div id="rfc.figure.u.33"></div><pre class="inline"><span id="rfc.iref.g.27"></span> Content-Language = "Content-Language" ":" 1#language-tag |
---|
| 1103 | </pre><p id="rfc.section.6.6.p.3">Language tags are defined in <a href="#language.tags" title="Language Tags">Section 3.5</a>. The primary purpose of Content-Language is to allow a user to identify and differentiate entities according to the user's |
---|
| 1104 | own preferred language. Thus, if the body content is intended only for a Danish-literate audience, the appropriate field is |
---|
| 1105 | </p> |
---|
| 1106 | <div id="rfc.figure.u.34"></div><pre class="text"> Content-Language: da |
---|
| 1107 | </pre><p id="rfc.section.6.6.p.5">If no Content-Language is specified, the default is that the content is intended for all language audiences. This might mean |
---|
| 1108 | that the sender does not consider it to be specific to any natural language, or that the sender does not know for which language |
---|
| 1109 | it is intended. |
---|
| 1110 | </p> |
---|
| 1111 | <p id="rfc.section.6.6.p.6">Multiple languages <em class="bcp14">MAY</em> be listed for content that is intended for multiple audiences. For example, a rendition of the "Treaty of Waitangi," presented |
---|
| 1112 | simultaneously in the original Maori and English versions, would call for |
---|
| 1113 | </p> |
---|
| 1114 | <div id="rfc.figure.u.35"></div><pre class="text"> Content-Language: mi, en |
---|
| 1115 | </pre><p id="rfc.section.6.6.p.8">However, just because multiple languages are present within an entity does not mean that it is intended for multiple linguistic |
---|
| 1116 | audiences. An example would be a beginner's language primer, such as "A First Lesson in Latin," which is clearly intended |
---|
| 1117 | to be used by an English-literate audience. In this case, the Content-Language would properly only include "en". |
---|
| 1118 | </p> |
---|
| 1119 | <p id="rfc.section.6.6.p.9">Content-Language <em class="bcp14">MAY</em> be applied to any media type -- it is not limited to textual documents. |
---|
| 1120 | </p> |
---|
| 1121 | <div id="rfc.iref.c.4"></div> |
---|
| 1122 | <div id="rfc.iref.h.7"></div> |
---|
| 1123 | <h2 id="rfc.section.6.7"><a href="#rfc.section.6.7">6.7</a> <a id="header.content-location" href="#header.content-location">Content-Location</a></h2> |
---|
| 1124 | <p id="rfc.section.6.7.p.1">The Content-Location entity-header field <em class="bcp14">MAY</em> be used to supply the resource location for the entity enclosed in the message when that entity is accessible from a location |
---|
| 1125 | separate from the requested resource's URI. A server <em class="bcp14">SHOULD</em> provide a Content-Location for the variant corresponding to the response entity; especially in the case where a resource has |
---|
| 1126 | multiple entities associated with it, and those entities actually have separate locations by which they might be individually |
---|
| 1127 | accessed, the server <em class="bcp14">SHOULD</em> provide a Content-Location for the particular variant which is returned. |
---|
| 1128 | </p> |
---|
| 1129 | <div id="rfc.figure.u.36"></div><pre class="inline"><span id="rfc.iref.g.28"></span> Content-Location = "Content-Location" ":" |
---|
| 1130 | ( absoluteURI | relativeURI ) |
---|
| 1131 | </pre><p id="rfc.section.6.7.p.3">The value of Content-Location also defines the base URI for the entity.</p> |
---|
| 1132 | <p id="rfc.section.6.7.p.4">The Content-Location value is not a replacement for the original requested URI; it is only a statement of the location of |
---|
| 1133 | the resource corresponding to this particular entity at the time of the request. Future requests <em class="bcp14">MAY</em> specify the Content-Location URI as the request-URI if the desire is to identify the source of that particular entity. |
---|
| 1134 | </p> |
---|
| 1135 | <p id="rfc.section.6.7.p.5">A cache cannot assume that an entity with a Content-Location different from the URI used to retrieve it can be used to respond |
---|
| 1136 | to later requests on that Content-Location URI. However, the Content-Location can be used to differentiate between multiple |
---|
| 1137 | entities retrieved from a single requested resource, as described in <a href="p6-cache.html#caching.negotiated.responses" title="Caching Negotiated Responses">Section 8</a> of <a href="#Part6" id="rfc.xref.Part6.4"><cite title="HTTP/1.1, part 6: Caching">[Part6]</cite></a>. |
---|
| 1138 | </p> |
---|
| 1139 | <p id="rfc.section.6.7.p.6">If the Content-Location is a relative URI, the relative URI is interpreted relative to the Request-URI.</p> |
---|
| 1140 | <p id="rfc.section.6.7.p.7">The meaning of the Content-Location header in PUT or POST requests is undefined; servers are free to ignore it in those cases.</p> |
---|
| 1141 | <div id="rfc.iref.c.5"></div> |
---|
| 1142 | <div id="rfc.iref.h.8"></div> |
---|
| 1143 | <h2 id="rfc.section.6.8"><a href="#rfc.section.6.8">6.8</a> <a id="header.content-md5" href="#header.content-md5">Content-MD5</a></h2> |
---|
| 1144 | <p id="rfc.section.6.8.p.1">The Content-MD5 entity-header field, as defined in <a href="#RFC1864" id="rfc.xref.RFC1864.1"><cite title="The Content-MD5 Header Field">[RFC1864]</cite></a>, is an MD5 digest of the entity-body for the purpose of providing an end-to-end message integrity check (MIC) of the entity-body. |
---|
| 1145 | (Note: a MIC is good for detecting accidental modification of the entity-body in transit, but is not proof against malicious |
---|
| 1146 | attacks.) |
---|
| 1147 | </p> |
---|
| 1148 | <div id="rfc.figure.u.37"></div><pre class="inline"><span id="rfc.iref.g.29"></span><span id="rfc.iref.g.30"></span> Content-MD5 = "Content-MD5" ":" md5-digest |
---|
| 1149 | md5-digest = <base64 of 128 bit MD5 digest as per <a href="#RFC1864" id="rfc.xref.RFC1864.2"><cite title="The Content-MD5 Header Field">[RFC1864]</cite></a>> |
---|
| 1150 | </pre><p id="rfc.section.6.8.p.3">The Content-MD5 header field <em class="bcp14">MAY</em> be generated by an origin server or client to function as an integrity check of the entity-body. Only origin servers or clients <em class="bcp14">MAY</em> generate the Content-MD5 header field; proxies and gateways <em class="bcp14">MUST NOT</em> generate it, as this would defeat its value as an end-to-end integrity check. Any recipient of the entity-body, including |
---|
| 1151 | gateways and proxies, <em class="bcp14">MAY</em> check that the digest value in this header field matches that of the entity-body as received. |
---|
| 1152 | </p> |
---|
| 1153 | <p id="rfc.section.6.8.p.4">The MD5 digest is computed based on the content of the entity-body, including any content-coding that has been applied, but |
---|
| 1154 | not including any transfer-encoding applied to the message-body. If the message is received with a transfer-encoding, that |
---|
| 1155 | encoding <em class="bcp14">MUST</em> be removed prior to checking the Content-MD5 value against the received entity. |
---|
| 1156 | </p> |
---|
| 1157 | <p id="rfc.section.6.8.p.5">This has the result that the digest is computed on the octets of the entity-body exactly as, and in the order that, they would |
---|
| 1158 | be sent if no transfer-encoding were being applied. |
---|
| 1159 | </p> |
---|
| 1160 | <p id="rfc.section.6.8.p.6">HTTP extends RFC 1864 to permit the digest to be computed for MIME composite media-types (e.g., multipart/* and message/rfc822), |
---|
| 1161 | but this does not change how the digest is computed as defined in the preceding paragraph. |
---|
| 1162 | </p> |
---|
| 1163 | <p id="rfc.section.6.8.p.7">There are several consequences of this. The entity-body for composite types <em class="bcp14">MAY</em> contain many body-parts, each with its own MIME and HTTP headers (including Content-MD5, Content-Transfer-Encoding, and Content-Encoding |
---|
| 1164 | headers). If a body-part has a Content-Transfer-Encoding or Content-Encoding header, it is assumed that the content of the |
---|
| 1165 | body-part has had the encoding applied, and the body-part is included in the Content-MD5 digest as is -- i.e., after the application. |
---|
| 1166 | The Transfer-Encoding header field is not allowed within body-parts. |
---|
| 1167 | </p> |
---|
| 1168 | <p id="rfc.section.6.8.p.8">Conversion of all line breaks to CRLF <em class="bcp14">MUST NOT</em> be done before computing or checking the digest: the line break convention used in the text actually transmitted <em class="bcp14">MUST</em> be left unaltered when computing the digest. |
---|
| 1169 | </p> |
---|
[1099] | 1170 | <ul class="empty"> |
---|
| 1171 | <li> <b>Note:</b> while the definition of Content-MD5 is exactly the same for HTTP as in RFC 1864 for MIME entity-bodies, there are several |
---|
[231] | 1172 | ways in which the application of Content-MD5 to HTTP entity-bodies differs from its application to MIME entity-bodies. One |
---|
| 1173 | is that HTTP, unlike MIME, does not use Content-Transfer-Encoding, and does use Transfer-Encoding and Content-Encoding. Another |
---|
| 1174 | is that HTTP more frequently uses binary content types than MIME, so it is worth noting that, in such cases, the byte order |
---|
| 1175 | used to compute the digest is the transmission byte order defined for the type. Lastly, HTTP allows transmission of text types |
---|
| 1176 | with any of several line break conventions and not just the canonical form using CRLF. |
---|
[1099] | 1177 | </li> |
---|
| 1178 | </ul> |
---|
[231] | 1179 | <div id="rfc.iref.c.6"></div> |
---|
| 1180 | <div id="rfc.iref.h.9"></div> |
---|
| 1181 | <h2 id="rfc.section.6.9"><a href="#rfc.section.6.9">6.9</a> <a id="header.content-type" href="#header.content-type">Content-Type</a></h2> |
---|
| 1182 | <p id="rfc.section.6.9.p.1">The Content-Type entity-header field indicates the media type of the entity-body sent to the recipient or, in the case of |
---|
| 1183 | the HEAD method, the media type that would have been sent had the request been a GET. |
---|
| 1184 | </p> |
---|
| 1185 | <div id="rfc.figure.u.38"></div><pre class="inline"><span id="rfc.iref.g.31"></span> Content-Type = "Content-Type" ":" media-type |
---|
| 1186 | </pre><p id="rfc.section.6.9.p.3">Media types are defined in <a href="#media.types" title="Media Types">Section 3.3</a>. An example of the field is |
---|
| 1187 | </p> |
---|
| 1188 | <div id="rfc.figure.u.39"></div><pre class="text"> Content-Type: text/html; charset=ISO-8859-4 |
---|
| 1189 | </pre><p id="rfc.section.6.9.p.5">Further discussion of methods for identifying the media type of an entity is provided in <a href="#type" title="Type">Section 4.2.1</a>. |
---|
| 1190 | </p> |
---|
| 1191 | <h1 id="rfc.section.7"><a href="#rfc.section.7">7.</a> <a id="IANA.considerations" href="#IANA.considerations">IANA Considerations</a></h1> |
---|
[1099] | 1192 | <p id="rfc.section.7.p.1"> <span class="comment" id="rfc.comment.1">[<a href="#rfc.comment.1" class="smpl">rfc.comment.1</a>: TBD.]</span> |
---|
[231] | 1193 | </p> |
---|
| 1194 | <h1 id="rfc.section.8"><a href="#rfc.section.8">8.</a> <a id="security.considerations" href="#security.considerations">Security Considerations</a></h1> |
---|
| 1195 | <p id="rfc.section.8.p.1">This section is meant to inform application developers, information providers, and users of the security limitations in HTTP/1.1 |
---|
| 1196 | as described by this document. The discussion does not include definitive solutions to the problems revealed, though it does |
---|
| 1197 | make some suggestions for reducing security risks. |
---|
| 1198 | </p> |
---|
| 1199 | <h2 id="rfc.section.8.1"><a href="#rfc.section.8.1">8.1</a> <a id="privacy.issues.connected.to.accept.headers" href="#privacy.issues.connected.to.accept.headers">Privacy Issues Connected to Accept Headers</a></h2> |
---|
| 1200 | <p id="rfc.section.8.1.p.1">Accept request-headers can reveal information about the user to all servers which are accessed. The Accept-Language header |
---|
| 1201 | in particular can reveal information the user would consider to be of a private nature, because the understanding of particular |
---|
| 1202 | languages is often strongly correlated to the membership of a particular ethnic group. User agents which offer the option |
---|
| 1203 | to configure the contents of an Accept-Language header to be sent in every request are strongly encouraged to let the configuration |
---|
| 1204 | process include a message which makes the user aware of the loss of privacy involved. |
---|
| 1205 | </p> |
---|
| 1206 | <p id="rfc.section.8.1.p.2">An approach that limits the loss of privacy would be for a user agent to omit the sending of Accept-Language headers by default, |
---|
| 1207 | and to ask the user whether or not to start sending Accept-Language headers to a server if it detects, by looking for any |
---|
| 1208 | Vary response-header fields generated by the server, that such sending could improve the quality of service. |
---|
| 1209 | </p> |
---|
| 1210 | <p id="rfc.section.8.1.p.3">Elaborate user-customized accept header fields sent in every request, in particular if these include quality values, can be |
---|
| 1211 | used by servers as relatively reliable and long-lived user identifiers. Such user identifiers would allow content providers |
---|
| 1212 | to do click-trail tracking, and would allow collaborating content providers to match cross-server click-trails or form submissions |
---|
| 1213 | of individual users. Note that for many users not behind a proxy, the network address of the host running the user agent will |
---|
| 1214 | also serve as a long-lived user identifier. In environments where proxies are used to enhance privacy, user agents ought to |
---|
| 1215 | be conservative in offering accept header configuration options to end users. As an extreme privacy measure, proxies could |
---|
| 1216 | filter the accept headers in relayed requests. General purpose user agents which provide a high degree of header configurability <em class="bcp14">SHOULD</em> warn users about the loss of privacy which can be involved. |
---|
| 1217 | </p> |
---|
| 1218 | <h2 id="rfc.section.8.2"><a href="#rfc.section.8.2">8.2</a> <a id="content-disposition.issues" href="#content-disposition.issues">Content-Disposition Issues</a></h2> |
---|
| 1219 | <p id="rfc.section.8.2.p.1"> <a href="#RFC1806" id="rfc.xref.RFC1806.1"><cite title="Communicating Presentation Information in Internet Messages: The Content-Disposition Header">[RFC1806]</cite></a>, from which the often implemented Content-Disposition (see <a href="#content-disposition" id="rfc.xref.content-disposition.1" title="Content-Disposition">Appendix B.1</a>) header in HTTP is derived, has a number of very serious security considerations. Content-Disposition is not part of the |
---|
| 1220 | HTTP standard, but since it is widely implemented, we are documenting its use and risks for implementors. See <a href="#RFC2183" id="rfc.xref.RFC2183.1"><cite title="Communicating Presentation Information in Internet Messages: The Content-Disposition Header Field">[RFC2183]</cite></a> (which updates <a href="#RFC1806" id="rfc.xref.RFC1806.2"><cite title="Communicating Presentation Information in Internet Messages: The Content-Disposition Header">[RFC1806]</cite></a>) for details. |
---|
| 1221 | </p> |
---|
| 1222 | <h1 id="rfc.section.9"><a href="#rfc.section.9">9.</a> <a id="ack" href="#ack">Acknowledgments</a></h1> |
---|
| 1223 | <h1 id="rfc.references"><a id="rfc.section.10" href="#rfc.section.10">10.</a> References |
---|
| 1224 | </h1> |
---|
| 1225 | <h2 id="rfc.references.1"><a href="#rfc.section.10.1" id="rfc.section.10.1">10.1</a> Normative References |
---|
| 1226 | </h2> |
---|
[1099] | 1227 | <table> |
---|
[231] | 1228 | <tr> |
---|
| 1229 | <td class="reference"><b id="ISO-8859-1">[ISO-8859-1]</b></td> |
---|
[1099] | 1230 | <td class="top">International Organization for Standardization, “Information technology -- 8-bit single-byte coded graphic character sets -- Part 1: Latin alphabet No. 1”, ISO/IEC 8859-1:1998, 1998.</td> |
---|
[231] | 1231 | </tr> |
---|
| 1232 | <tr> |
---|
| 1233 | <td class="reference"><b id="Part1">[Part1]</b></td> |
---|
[1099] | 1234 | <td class="top"><a href="mailto:fielding@gbiv.com" title="Day Software">Fielding, R., Ed.</a>, <a href="mailto:jg@laptop.org" title="One Laptop per Child">Gettys, J.</a>, <a href="mailto:JeffMogul@acm.org" title="Hewlett-Packard Company">Mogul, J.</a>, <a href="mailto:henrikn@microsoft.com" title="Microsoft Corporation">Frystyk, H.</a>, <a href="mailto:LMM@acm.org" title="Adobe Systems, Incorporated">Masinter, L.</a>, <a href="mailto:paulle@microsoft.com" title="Microsoft Corporation">Leach, P.</a>, <a href="mailto:timbl@w3.org" title="World Wide Web Consortium">Berners-Lee, T.</a>, <a href="mailto:ylafon@w3.org" title="World Wide Web Consortium">Lafon, Y., Ed.</a>, and <a href="mailto:julian.reschke@greenbytes.de" title="greenbytes GmbH">J. Reschke, Ed.</a>, “<a href="http://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-02">HTTP/1.1, part 1: URIs, Connections, and Message Parsing</a>”, Internet-Draft draft-ietf-httpbis-p1-messaging-02 (work in progress), February 2008. |
---|
[231] | 1235 | </td> |
---|
| 1236 | </tr> |
---|
| 1237 | <tr> |
---|
| 1238 | <td class="reference"><b id="Part2">[Part2]</b></td> |
---|
[1099] | 1239 | <td class="top"><a href="mailto:fielding@gbiv.com" title="Day Software">Fielding, R., Ed.</a>, <a href="mailto:jg@laptop.org" title="One Laptop per Child">Gettys, J.</a>, <a href="mailto:JeffMogul@acm.org" title="Hewlett-Packard Company">Mogul, J.</a>, <a href="mailto:henrikn@microsoft.com" title="Microsoft Corporation">Frystyk, H.</a>, <a href="mailto:LMM@acm.org" title="Adobe Systems, Incorporated">Masinter, L.</a>, <a href="mailto:paulle@microsoft.com" title="Microsoft Corporation">Leach, P.</a>, <a href="mailto:timbl@w3.org" title="World Wide Web Consortium">Berners-Lee, T.</a>, <a href="mailto:ylafon@w3.org" title="World Wide Web Consortium">Lafon, Y., Ed.</a>, and <a href="mailto:julian.reschke@greenbytes.de" title="greenbytes GmbH">J. Reschke, Ed.</a>, “<a href="http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-02">HTTP/1.1, part 2: Message Semantics</a>”, Internet-Draft draft-ietf-httpbis-p2-semantics-02 (work in progress), February 2008. |
---|
[231] | 1240 | </td> |
---|
| 1241 | </tr> |
---|
| 1242 | <tr> |
---|
| 1243 | <td class="reference"><b id="Part4">[Part4]</b></td> |
---|
[1099] | 1244 | <td class="top"><a href="mailto:fielding@gbiv.com" title="Day Software">Fielding, R., Ed.</a>, <a href="mailto:jg@laptop.org" title="One Laptop per Child">Gettys, J.</a>, <a href="mailto:JeffMogul@acm.org" title="Hewlett-Packard Company">Mogul, J.</a>, <a href="mailto:henrikn@microsoft.com" title="Microsoft Corporation">Frystyk, H.</a>, <a href="mailto:LMM@acm.org" title="Adobe Systems, Incorporated">Masinter, L.</a>, <a href="mailto:paulle@microsoft.com" title="Microsoft Corporation">Leach, P.</a>, <a href="mailto:timbl@w3.org" title="World Wide Web Consortium">Berners-Lee, T.</a>, <a href="mailto:ylafon@w3.org" title="World Wide Web Consortium">Lafon, Y., Ed.</a>, and <a href="mailto:julian.reschke@greenbytes.de" title="greenbytes GmbH">J. Reschke, Ed.</a>, “<a href="http://tools.ietf.org/html/draft-ietf-httpbis-p4-conditional-02">HTTP/1.1, part 4: Conditional Requests</a>”, Internet-Draft draft-ietf-httpbis-p4-conditional-02 (work in progress), February 2008. |
---|
[231] | 1245 | </td> |
---|
| 1246 | </tr> |
---|
| 1247 | <tr> |
---|
| 1248 | <td class="reference"><b id="Part5">[Part5]</b></td> |
---|
[1099] | 1249 | <td class="top"><a href="mailto:fielding@gbiv.com" title="Day Software">Fielding, R., Ed.</a>, <a href="mailto:jg@laptop.org" title="One Laptop per Child">Gettys, J.</a>, <a href="mailto:JeffMogul@acm.org" title="Hewlett-Packard Company">Mogul, J.</a>, <a href="mailto:henrikn@microsoft.com" title="Microsoft Corporation">Frystyk, H.</a>, <a href="mailto:LMM@acm.org" title="Adobe Systems, Incorporated">Masinter, L.</a>, <a href="mailto:paulle@microsoft.com" title="Microsoft Corporation">Leach, P.</a>, <a href="mailto:timbl@w3.org" title="World Wide Web Consortium">Berners-Lee, T.</a>, <a href="mailto:ylafon@w3.org" title="World Wide Web Consortium">Lafon, Y., Ed.</a>, and <a href="mailto:julian.reschke@greenbytes.de" title="greenbytes GmbH">J. Reschke, Ed.</a>, “<a href="http://tools.ietf.org/html/draft-ietf-httpbis-p5-range-02">HTTP/1.1, part 5: Range Requests and Partial Responses</a>”, Internet-Draft draft-ietf-httpbis-p5-range-02 (work in progress), February 2008. |
---|
[231] | 1250 | </td> |
---|
| 1251 | </tr> |
---|
| 1252 | <tr> |
---|
| 1253 | <td class="reference"><b id="Part6">[Part6]</b></td> |
---|
[1099] | 1254 | <td class="top"><a href="mailto:fielding@gbiv.com" title="Day Software">Fielding, R., Ed.</a>, <a href="mailto:jg@laptop.org" title="One Laptop per Child">Gettys, J.</a>, <a href="mailto:JeffMogul@acm.org" title="Hewlett-Packard Company">Mogul, J.</a>, <a href="mailto:henrikn@microsoft.com" title="Microsoft Corporation">Frystyk, H.</a>, <a href="mailto:LMM@acm.org" title="Adobe Systems, Incorporated">Masinter, L.</a>, <a href="mailto:paulle@microsoft.com" title="Microsoft Corporation">Leach, P.</a>, <a href="mailto:timbl@w3.org" title="World Wide Web Consortium">Berners-Lee, T.</a>, <a href="mailto:ylafon@w3.org" title="World Wide Web Consortium">Lafon, Y., Ed.</a>, and <a href="mailto:julian.reschke@greenbytes.de" title="greenbytes GmbH">J. Reschke, Ed.</a>, “<a href="http://tools.ietf.org/html/draft-ietf-httpbis-p6-cache-02">HTTP/1.1, part 6: Caching</a>”, Internet-Draft draft-ietf-httpbis-p6-cache-02 (work in progress), February 2008. |
---|
[231] | 1255 | </td> |
---|
| 1256 | </tr> |
---|
| 1257 | <tr> |
---|
| 1258 | <td class="reference"><b id="RFC1766">[RFC1766]</b></td> |
---|
[1099] | 1259 | <td class="top"><a href="mailto:Harald.T.Alvestrand@uninett.no" title="UNINETT">Alvestrand, H.</a>, “<a href="http://tools.ietf.org/html/rfc1766">Tags for the Identification of Languages</a>”, RFC 1766, March 1995. |
---|
[231] | 1260 | </td> |
---|
| 1261 | </tr> |
---|
| 1262 | <tr> |
---|
| 1263 | <td class="reference"><b id="RFC1864">[RFC1864]</b></td> |
---|
[1099] | 1264 | <td class="top"><a href="mailto:jgm+@cmu.edu" title="Carnegie Mellon University">Myers, J.</a> and <a href="mailto:mrose@dbc.mtview.ca.us" title="Dover Beach Consulting, Inc.">M. Rose</a>, “<a href="http://tools.ietf.org/html/rfc1864">The Content-MD5 Header Field</a>”, RFC 1864, October 1995. |
---|
[231] | 1265 | </td> |
---|
| 1266 | </tr> |
---|
| 1267 | <tr> |
---|
| 1268 | <td class="reference"><b id="RFC1950">[RFC1950]</b></td> |
---|
[1099] | 1269 | <td class="top"><a href="mailto:ghost@aladdin.com" title="Aladdin Enterprises">Deutsch, L.</a> and J-L. Gailly, “<a href="http://tools.ietf.org/html/rfc1950">ZLIB Compressed Data Format Specification version 3.3</a>”, RFC 1950, May 1996.<br>RFC1950 is an Informational RFC, thus it may be less stable than this specification. On the other hand, this downward reference |
---|
[231] | 1270 | was present since <a href="#RFC2068" id="rfc.xref.RFC2068.1"><cite title="Hypertext Transfer Protocol -- HTTP/1.1">[RFC2068]</cite></a> (published in 1997), therefore it is unlikely to cause problems in practice. |
---|
| 1271 | </td> |
---|
| 1272 | </tr> |
---|
| 1273 | <tr> |
---|
| 1274 | <td class="reference"><b id="RFC1951">[RFC1951]</b></td> |
---|
[1099] | 1275 | <td class="top"><a href="mailto:ghost@aladdin.com" title="Aladdin Enterprises">Deutsch, P.</a>, “<a href="http://tools.ietf.org/html/rfc1951">DEFLATE Compressed Data Format Specification version 1.3</a>”, RFC 1951, May 1996.<br>RFC1951 is an Informational RFC, thus it may be less stable than this specification. On the other hand, this downward reference |
---|
[231] | 1276 | was present since <a href="#RFC2068" id="rfc.xref.RFC2068.2"><cite title="Hypertext Transfer Protocol -- HTTP/1.1">[RFC2068]</cite></a> (published in 1997), therefore it is unlikely to cause problems in practice. |
---|
| 1277 | </td> |
---|
| 1278 | </tr> |
---|
| 1279 | <tr> |
---|
| 1280 | <td class="reference"><b id="RFC1952">[RFC1952]</b></td> |
---|
[1099] | 1281 | <td class="top"><a href="mailto:ghost@aladdin.com" title="Aladdin Enterprises">Deutsch, P.</a>, <a href="mailto:gzip@prep.ai.mit.edu">Gailly, J-L.</a>, <a href="mailto:madler@alumni.caltech.edu">Adler, M.</a>, <a href="mailto:ghost@aladdin.com">Deutsch, L.</a>, and <a href="mailto:randeg@alumni.rpi.edu">G. Randers-Pehrson</a>, “<a href="http://tools.ietf.org/html/rfc1952">GZIP file format specification version 4.3</a>”, RFC 1952, May 1996.<br>RFC1952 is an Informational RFC, thus it may be less stable than this specification. On the other hand, this downward reference |
---|
[231] | 1282 | was present since <a href="#RFC2068" id="rfc.xref.RFC2068.3"><cite title="Hypertext Transfer Protocol -- HTTP/1.1">[RFC2068]</cite></a> (published in 1997), therefore it is unlikely to cause problems in practice. |
---|
| 1283 | </td> |
---|
| 1284 | </tr> |
---|
| 1285 | <tr> |
---|
| 1286 | <td class="reference"><b id="RFC2045">[RFC2045]</b></td> |
---|
[1099] | 1287 | <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/rfc2045">Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies</a>”, RFC 2045, November 1996. |
---|
[231] | 1288 | </td> |
---|
| 1289 | </tr> |
---|
| 1290 | <tr> |
---|
| 1291 | <td class="reference"><b id="RFC2046">[RFC2046]</b></td> |
---|
[1099] | 1292 | <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. |
---|
[231] | 1293 | </td> |
---|
| 1294 | </tr> |
---|
| 1295 | <tr> |
---|
| 1296 | <td class="reference"><b id="RFC2119">[RFC2119]</b></td> |
---|
[1099] | 1297 | <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. |
---|
[231] | 1298 | </td> |
---|
| 1299 | </tr> |
---|
| 1300 | </table> |
---|
| 1301 | <h2 id="rfc.references.2"><a href="#rfc.section.10.2" id="rfc.section.10.2">10.2</a> Informative References |
---|
| 1302 | </h2> |
---|
[1099] | 1303 | <table> |
---|
[231] | 1304 | <tr> |
---|
| 1305 | <td class="reference"><b id="RFC1806">[RFC1806]</b></td> |
---|
[1099] | 1306 | <td class="top"><a href="mailto:rens@century.com" title="New Century Systems">Troost, R.</a> and <a href="mailto:sdorner@qualcomm.com" title="QUALCOMM Incorporated">S. Dorner</a>, “<a href="http://tools.ietf.org/html/rfc1806">Communicating Presentation Information in Internet Messages: The Content-Disposition Header</a>”, RFC 1806, June 1995. |
---|
[231] | 1307 | </td> |
---|
| 1308 | </tr> |
---|
| 1309 | <tr> |
---|
| 1310 | <td class="reference"><b id="RFC1945">[RFC1945]</b></td> |
---|
[1099] | 1311 | <td class="top"><a href="mailto:timbl@w3.org" title="MIT, Laboratory for Computer Science">Berners-Lee, T.</a>, <a href="mailto:fielding@ics.uci.edu" title="University of California, Irvine, Department of Information and Computer Science">Fielding, R.</a>, and <a href="mailto:frystyk@w3.org" title="W3 Consortium, MIT Laboratory for Computer Science">H. Nielsen</a>, “<a href="http://tools.ietf.org/html/rfc1945">Hypertext Transfer Protocol -- HTTP/1.0</a>”, RFC 1945, May 1996. |
---|
[231] | 1312 | </td> |
---|
| 1313 | </tr> |
---|
| 1314 | <tr> |
---|
| 1315 | <td class="reference"><b id="RFC2049">[RFC2049]</b></td> |
---|
[1099] | 1316 | <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/rfc2049">Multipurpose Internet Mail Extensions (MIME) Part Five: Conformance Criteria and Examples</a>”, RFC 2049, November 1996. |
---|
[231] | 1317 | </td> |
---|
| 1318 | </tr> |
---|
| 1319 | <tr> |
---|
| 1320 | <td class="reference"><b id="RFC2068">[RFC2068]</b></td> |
---|
[1099] | 1321 | <td class="top"><a href="mailto:fielding@ics.uci.edu" title="University of California, Irvine, Department of Information and Computer Science">Fielding, R.</a>, <a href="mailto:jg@w3.org" title="MIT Laboratory for Computer Science">Gettys, J.</a>, <a href="mailto:mogul@wrl.dec.com" title="Digital Equipment Corporation, Western Research Laboratory">Mogul, J.</a>, <a href="mailto:frystyk@w3.org" title="MIT Laboratory for Computer Science">Nielsen, H.</a>, and <a href="mailto:timbl@w3.org" title="MIT Laboratory for Computer Science">T. Berners-Lee</a>, “<a href="http://tools.ietf.org/html/rfc2068">Hypertext Transfer Protocol -- HTTP/1.1</a>”, RFC 2068, January 1997. |
---|
[231] | 1322 | </td> |
---|
| 1323 | </tr> |
---|
| 1324 | <tr> |
---|
| 1325 | <td class="reference"><b id="RFC2076">[RFC2076]</b></td> |
---|
[1099] | 1326 | <td class="top"><a href="mailto:jpalme@dsv.su.se" title="Stockholm University/KTH">Palme, J.</a>, “<a href="http://tools.ietf.org/html/rfc2076">Common Internet Message Headers</a>”, RFC 2076, February 1997. |
---|
[231] | 1327 | </td> |
---|
| 1328 | </tr> |
---|
| 1329 | <tr> |
---|
| 1330 | <td class="reference"><b id="RFC2183">[RFC2183]</b></td> |
---|
[1099] | 1331 | <td class="top"><a href="mailto:rens@century.com" title="New Century Systems">Troost, R.</a>, <a href="mailto:sdorner@qualcomm.com" title="QUALCOMM Incorporated">Dorner, S.</a>, and <a href="mailto:moore@cs.utk.edu" title="Department of Computer Science">K. Moore</a>, “<a href="http://tools.ietf.org/html/rfc2183">Communicating Presentation Information in Internet Messages: The Content-Disposition Header Field</a>”, RFC 2183, August 1997. |
---|
[231] | 1332 | </td> |
---|
| 1333 | </tr> |
---|
| 1334 | <tr> |
---|
| 1335 | <td class="reference"><b id="RFC2277">[RFC2277]</b></td> |
---|
[1099] | 1336 | <td class="top"><a href="mailto:Harald.T.Alvestrand@uninett.no" title="UNINETT">Alvestrand, H.</a>, “<a href="http://tools.ietf.org/html/rfc2277">IETF Policy on Character Sets and Languages</a>”, BCP 18, RFC 2277, January 1998. |
---|
[231] | 1337 | </td> |
---|
| 1338 | </tr> |
---|
| 1339 | <tr> |
---|
| 1340 | <td class="reference"><b id="RFC2388">[RFC2388]</b></td> |
---|
[1099] | 1341 | <td class="top"><a href="mailto:masinter@parc.xerox.com" title="Xerox Palo Alto Research Center">Masinter, L.</a>, “<a href="http://tools.ietf.org/html/rfc2388">Returning Values from Forms: multipart/form-data</a>”, RFC 2388, August 1998. |
---|
[231] | 1342 | </td> |
---|
| 1343 | </tr> |
---|
| 1344 | <tr> |
---|
| 1345 | <td class="reference"><b id="RFC2557">[RFC2557]</b></td> |
---|
[1099] | 1346 | <td class="top"><a href="mailto:jpalme@dsv.su.se" title="Stockholm University and KTH">Palme, F.</a>, <a href="mailto:alexhop@microsoft.com" title="Microsoft Corporation">Hopmann, A.</a>, <a href="mailto:Shelness@lotus.com" title="Lotus Development Corporation">Shelness, N.</a>, and <a href="mailto:stef@nma.com">E. Stefferud</a>, “<a href="http://tools.ietf.org/html/rfc2557">MIME Encapsulation of Aggregate Documents, such as HTML (MHTML)</a>”, RFC 2557, March 1999. |
---|
[231] | 1347 | </td> |
---|
| 1348 | </tr> |
---|
| 1349 | <tr> |
---|
| 1350 | <td class="reference"><b id="RFC2616">[RFC2616]</b></td> |
---|
[1099] | 1351 | <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. |
---|
[231] | 1352 | </td> |
---|
| 1353 | </tr> |
---|
| 1354 | <tr> |
---|
| 1355 | <td class="reference"><b id="RFC2822">[RFC2822]</b></td> |
---|
| 1356 | <td class="top">Resnick, P., “<a href="http://tools.ietf.org/html/rfc2822">Internet Message Format</a>”, RFC 2822, April 2001. |
---|
| 1357 | </td> |
---|
| 1358 | </tr> |
---|
| 1359 | <tr> |
---|
| 1360 | <td class="reference"><b id="RFC3629">[RFC3629]</b></td> |
---|
[1099] | 1361 | <td class="top"><a href="mailto:fyergeau@alis.com" title="Alis Technologies">Yergeau, F.</a>, “<a href="http://tools.ietf.org/html/rfc3629">UTF-8, a transformation format of ISO 10646</a>”, RFC 3629, STD 63, November 2003. |
---|
[231] | 1362 | </td> |
---|
| 1363 | </tr> |
---|
| 1364 | <tr> |
---|
| 1365 | <td class="reference"><b id="RFC4288">[RFC4288]</b></td> |
---|
[1099] | 1366 | <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. |
---|
[231] | 1367 | </td> |
---|
| 1368 | </tr> |
---|
| 1369 | </table> |
---|
[1099] | 1370 | <div class="avoidbreak"> |
---|
| 1371 | <h1 id="rfc.authors"><a href="#rfc.authors">Authors' Addresses</a></h1> |
---|
| 1372 | <address class="vcard"><span class="vcardline"><span class="fn">Roy T. Fielding</span> |
---|
| 1373 | (editor) |
---|
| 1374 | <span class="n hidden"><span class="family-name">Fielding</span><span class="given-name">Roy T.</span></span></span><span class="org vcardline">Day Software</span><span class="adr"><span class="street-address vcardline">23 Corporate Plaza DR, Suite 280</span><span class="vcardline"><span class="locality">Newport Beach</span>, <span class="region">CA</span> <span class="postal-code">92660</span></span><span class="country-name vcardline">USA</span></span><span class="vcardline tel">Phone: <a href="tel:+1-949-706-5300"><span class="value">+1-949-706-5300</span></a></span><span class="vcardline tel"><span class="type">Fax</span>: <a href="fax:+1-949-706-5305"><span class="value">+1-949-706-5305</span></a></span><span class="vcardline">EMail: <a href="mailto:fielding@gbiv.com"><span class="email">fielding@gbiv.com</span></a></span><span class="vcardline">URI: <a href="http://roy.gbiv.com/" class="url">http://roy.gbiv.com/</a></span></address> |
---|
| 1375 | <address class="vcard"><span class="vcardline"><span class="fn">Jim Gettys</span><span class="n hidden"><span class="family-name">Gettys</span><span class="given-name">Jim</span></span></span><span class="org vcardline">One Laptop per Child</span><span class="adr"><span class="street-address vcardline">21 Oak Knoll Road</span><span class="vcardline"><span class="locality">Carlisle</span>, <span class="region">MA</span> <span class="postal-code">01741</span></span><span class="country-name vcardline">USA</span></span><span class="vcardline">EMail: <a href="mailto:jg@laptop.org"><span class="email">jg@laptop.org</span></a></span><span class="vcardline">URI: <a href="http://www.laptop.org/" class="url">http://www.laptop.org/</a></span></address> |
---|
| 1376 | <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> |
---|
| 1377 | <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> |
---|
| 1378 | <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> |
---|
| 1379 | <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> |
---|
| 1380 | <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> |
---|
| 1381 | <address class="vcard"><span class="vcardline"><span class="fn">Yves Lafon</span> |
---|
| 1382 | (editor) |
---|
| 1383 | <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> |
---|
| 1384 | <address class="vcard"><span class="vcardline"><span class="fn">Julian F. Reschke</span> |
---|
| 1385 | (editor) |
---|
| 1386 | <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> |
---|
| 1387 | </div> |
---|
| 1388 | <h1 id="rfc.section.A" class="np"><a href="#rfc.section.A">A.</a> <a id="differences.between.http.entities.and.rfc.2045.entities" href="#differences.between.http.entities.and.rfc.2045.entities">Differences Between HTTP Entities and RFC 2045 Entities</a></h1> |
---|
[231] | 1389 | <p id="rfc.section.A.p.1">HTTP/1.1 uses many of the constructs defined for Internet Mail (<a href="#RFC2822" id="rfc.xref.RFC2822.1"><cite title="Internet Message Format">[RFC2822]</cite></a>) and the Multipurpose Internet Mail Extensions (MIME <a href="#RFC2045" id="rfc.xref.RFC2045.1"><cite title="Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies">[RFC2045]</cite></a>) to allow entities to be transmitted in an open variety of representations and with extensible mechanisms. However, RFC 2045 |
---|
| 1390 | discusses mail, and HTTP has a few features that are different from those described in RFC 2045. These differences were carefully |
---|
| 1391 | chosen to optimize performance over binary connections, to allow greater freedom in the use of new media types, to make date |
---|
| 1392 | comparisons easier, and to acknowledge the practice of some early HTTP servers and clients. |
---|
| 1393 | </p> |
---|
| 1394 | <p id="rfc.section.A.p.2">This appendix describes specific areas where HTTP differs from RFC 2045. Proxies and gateways to strict MIME environments <em class="bcp14">SHOULD</em> be aware of these differences and provide the appropriate conversions where necessary. Proxies and gateways from MIME environments |
---|
| 1395 | to HTTP also need to be aware of the differences because some conversions might be required. |
---|
| 1396 | </p> |
---|
| 1397 | <h2 id="rfc.section.A.1"><a href="#rfc.section.A.1">A.1</a> <a id="mime-version" href="#mime-version">MIME-Version</a></h2> |
---|
| 1398 | <p id="rfc.section.A.1.p.1">HTTP is not a MIME-compliant protocol. However, HTTP/1.1 messages <em class="bcp14">MAY</em> include a single MIME-Version general-header field to indicate what version of the MIME protocol was used to construct the |
---|
| 1399 | message. Use of the MIME-Version header field indicates that the message is in full compliance with the MIME protocol (as |
---|
| 1400 | defined in <a href="#RFC2045" id="rfc.xref.RFC2045.2"><cite title="Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies">[RFC2045]</cite></a>). Proxies/gateways are responsible for ensuring full compliance (where possible) when exporting HTTP messages to strict MIME |
---|
| 1401 | environments. |
---|
| 1402 | </p> |
---|
| 1403 | <div id="rfc.figure.u.40"></div><pre class="inline"><span id="rfc.iref.g.32"></span> MIME-Version = "MIME-Version" ":" 1*DIGIT "." 1*DIGIT |
---|
| 1404 | </pre><p id="rfc.section.A.1.p.3">MIME version "1.0" is the default for use in HTTP/1.1. However, HTTP/1.1 message parsing and semantics are defined by this |
---|
| 1405 | document and not the MIME specification. |
---|
| 1406 | </p> |
---|
| 1407 | <h2 id="rfc.section.A.2"><a href="#rfc.section.A.2">A.2</a> <a id="conversion.to.canonical.form" href="#conversion.to.canonical.form">Conversion to Canonical Form</a></h2> |
---|
| 1408 | <p id="rfc.section.A.2.p.1"> <a href="#RFC2045" id="rfc.xref.RFC2045.3"><cite title="Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies">[RFC2045]</cite></a> requires that an Internet mail entity be converted to canonical form prior to being transferred, as described in <a href="http://tools.ietf.org/html/rfc2049#section-4">Section 4</a> of <a href="#RFC2049" id="rfc.xref.RFC2049.1"><cite title="Multipurpose Internet Mail Extensions (MIME) Part Five: Conformance Criteria and Examples">[RFC2049]</cite></a>. <a href="#canonicalization.and.text.defaults" title="Canonicalization and Text Defaults">Section 3.3.1</a> of this document describes the forms allowed for subtypes of the "text" media type when transmitted over HTTP. <a href="#RFC2046" id="rfc.xref.RFC2046.3"><cite title="Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types">[RFC2046]</cite></a> requires that content with a type of "text" represent line breaks as CRLF and forbids the use of CR or LF outside of line |
---|
| 1409 | break sequences. HTTP allows CRLF, bare CR, and bare LF to indicate a line break within text content when a message is transmitted |
---|
| 1410 | over HTTP. |
---|
| 1411 | </p> |
---|
| 1412 | <p id="rfc.section.A.2.p.2">Where it is possible, a proxy or gateway from HTTP to a strict MIME environment <em class="bcp14">SHOULD</em> translate all line breaks within the text media types described in <a href="#canonicalization.and.text.defaults" title="Canonicalization and Text Defaults">Section 3.3.1</a> of this document to the RFC 2049 canonical form of CRLF. Note, however, that this might be complicated by the presence of |
---|
| 1413 | a Content-Encoding and by the fact that HTTP allows the use of some character sets which do not use octets 13 and 10 to represent |
---|
| 1414 | CR and LF, as is the case for some multi-byte character sets. |
---|
| 1415 | </p> |
---|
| 1416 | <p id="rfc.section.A.2.p.3">Implementors should note that conversion will break any cryptographic checksums applied to the original content unless the |
---|
| 1417 | original content is already in canonical form. Therefore, the canonical form is recommended for any content that uses such |
---|
| 1418 | checksums in HTTP. |
---|
| 1419 | </p> |
---|
| 1420 | <h2 id="rfc.section.A.3"><a href="#rfc.section.A.3">A.3</a> <a id="introduction.of.content-encoding" href="#introduction.of.content-encoding">Introduction of Content-Encoding</a></h2> |
---|
| 1421 | <p id="rfc.section.A.3.p.1">RFC 2045 does not include any concept equivalent to HTTP/1.1's Content-Encoding header field. Since this acts as a modifier |
---|
| 1422 | on the media type, proxies and gateways from HTTP to MIME-compliant protocols <em class="bcp14">MUST</em> either change the value of the Content-Type header field or decode the entity-body before forwarding the message. (Some experimental |
---|
| 1423 | applications of Content-Type for Internet mail have used a media-type parameter of ";conversions=<content-coding>" to perform |
---|
| 1424 | a function equivalent to Content-Encoding. However, this parameter is not part of RFC 2045). |
---|
| 1425 | </p> |
---|
| 1426 | <h2 id="rfc.section.A.4"><a href="#rfc.section.A.4">A.4</a> <a id="no.content-transfer-encoding" href="#no.content-transfer-encoding">No Content-Transfer-Encoding</a></h2> |
---|
| 1427 | <p id="rfc.section.A.4.p.1">HTTP does not use the Content-Transfer-Encoding field of RFC 2045. Proxies and gateways from MIME-compliant protocols to HTTP <em class="bcp14">MUST</em> remove any Content-Transfer-Encoding prior to delivering the response message to an HTTP client. |
---|
| 1428 | </p> |
---|
| 1429 | <p id="rfc.section.A.4.p.2">Proxies and gateways from HTTP to MIME-compliant protocols are responsible for ensuring that the message is in the correct |
---|
| 1430 | format and encoding for safe transport on that protocol, where "safe transport" is defined by the limitations of the protocol |
---|
| 1431 | being used. Such a proxy or gateway <em class="bcp14">SHOULD</em> label the data with an appropriate Content-Transfer-Encoding if doing so will improve the likelihood of safe transport over |
---|
| 1432 | the destination protocol. |
---|
| 1433 | </p> |
---|
| 1434 | <h2 id="rfc.section.A.5"><a href="#rfc.section.A.5">A.5</a> <a id="introduction.of.transfer-encoding" href="#introduction.of.transfer-encoding">Introduction of Transfer-Encoding</a></h2> |
---|
| 1435 | <p id="rfc.section.A.5.p.1">HTTP/1.1 introduces the Transfer-Encoding header field (<a href="p1-messaging.html#header.transfer-encoding" title="Transfer-Encoding">Section 8.7</a> of <a href="#Part1" id="rfc.xref.Part1.15"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>). Proxies/gateways <em class="bcp14">MUST</em> remove any transfer-coding prior to forwarding a message via a MIME-compliant protocol. |
---|
| 1436 | </p> |
---|
| 1437 | <h2 id="rfc.section.A.6"><a href="#rfc.section.A.6">A.6</a> <a id="mhtml.line.length" href="#mhtml.line.length">MHTML and Line Length Limitations</a></h2> |
---|
| 1438 | <p id="rfc.section.A.6.p.1">HTTP implementations which share code with MHTML <a href="#RFC2557" id="rfc.xref.RFC2557.1"><cite title="MIME Encapsulation of Aggregate Documents, such as HTML (MHTML)">[RFC2557]</cite></a> implementations need to be aware of MIME line length limitations. Since HTTP does not have this limitation, HTTP does not |
---|
| 1439 | fold long lines. MHTML messages being transported by HTTP follow all conventions of MHTML, including line length limitations |
---|
| 1440 | and folding, canonicalization, etc., since HTTP transports all message-bodies as payload (see <a href="#multipart.types" title="Multipart Types">Section 3.3.2</a>) and does not interpret the content or any MIME header lines that might be contained therein. |
---|
| 1441 | </p> |
---|
| 1442 | <h1 id="rfc.section.B"><a href="#rfc.section.B">B.</a> <a id="additional.features" href="#additional.features">Additional Features</a></h1> |
---|
| 1443 | <p id="rfc.section.B.p.1"> <a href="#RFC1945" id="rfc.xref.RFC1945.1"><cite title="Hypertext Transfer Protocol -- HTTP/1.0">[RFC1945]</cite></a> and <a href="#RFC2068" id="rfc.xref.RFC2068.4"><cite title="Hypertext Transfer Protocol -- HTTP/1.1">[RFC2068]</cite></a> document protocol elements used by some existing HTTP implementations, but not consistently and correctly across most HTTP/1.1 |
---|
| 1444 | applications. Implementors are advised to be aware of these features, but cannot rely upon their presence in, or interoperability |
---|
| 1445 | with, other HTTP/1.1 applications. Some of these describe proposed experimental features, and some describe features that |
---|
| 1446 | experimental deployment found lacking that are now addressed in the base HTTP/1.1 specification. |
---|
| 1447 | </p> |
---|
| 1448 | <p id="rfc.section.B.p.2">A number of other headers, such as Content-Disposition and Title, from SMTP and MIME are also often implemented (see <a href="#RFC2076" id="rfc.xref.RFC2076.1"><cite title="Common Internet Message Headers">[RFC2076]</cite></a>). |
---|
| 1449 | </p> |
---|
| 1450 | <div id="rfc.iref.h.10"></div> |
---|
| 1451 | <div id="rfc.iref.c.7"></div> |
---|
| 1452 | <h2 id="rfc.section.B.1"><a href="#rfc.section.B.1">B.1</a> <a id="content-disposition" href="#content-disposition">Content-Disposition</a></h2> |
---|
| 1453 | <p id="rfc.section.B.1.p.1">The Content-Disposition response-header field has been proposed as a means for the origin server to suggest a default filename |
---|
| 1454 | if the user requests that the content is saved to a file. This usage is derived from the definition of Content-Disposition |
---|
| 1455 | in <a href="#RFC1806" id="rfc.xref.RFC1806.3"><cite title="Communicating Presentation Information in Internet Messages: The Content-Disposition Header">[RFC1806]</cite></a>. |
---|
| 1456 | </p> |
---|
| 1457 | <div id="rfc.figure.u.41"></div><pre class="inline"><span id="rfc.iref.g.33"></span><span id="rfc.iref.g.34"></span><span id="rfc.iref.g.35"></span><span id="rfc.iref.g.36"></span><span id="rfc.iref.g.37"></span><span id="rfc.iref.g.38"></span> content-disposition = "Content-Disposition" ":" |
---|
| 1458 | disposition-type *( ";" disposition-parm ) |
---|
| 1459 | disposition-type = "attachment" | disp-extension-token |
---|
| 1460 | disposition-parm = filename-parm | disp-extension-parm |
---|
| 1461 | filename-parm = "filename" "=" quoted-string |
---|
| 1462 | disp-extension-token = token |
---|
| 1463 | disp-extension-parm = token "=" ( token | quoted-string ) |
---|
| 1464 | </pre><p id="rfc.section.B.1.p.3">An example is</p> |
---|
| 1465 | <div id="rfc.figure.u.42"></div><pre class="text"> Content-Disposition: attachment; filename="fname.ext" |
---|
| 1466 | </pre><p id="rfc.section.B.1.p.5">The receiving user agent <em class="bcp14">SHOULD NOT</em> respect any directory path information present in the filename-parm parameter, which is the only parameter believed to apply |
---|
| 1467 | to HTTP implementations at this time. The filename <em class="bcp14">SHOULD</em> be treated as a terminal component only. |
---|
| 1468 | </p> |
---|
| 1469 | <p id="rfc.section.B.1.p.6">If this header is used in a response with the application/octet-stream content-type, the implied suggestion is that the user |
---|
| 1470 | agent should not display the response, but directly enter a `save response as...' dialog. |
---|
| 1471 | </p> |
---|
| 1472 | <p id="rfc.section.B.1.p.7">See <a href="#content-disposition.issues" title="Content-Disposition Issues">Section 8.2</a> for Content-Disposition security issues. |
---|
| 1473 | </p> |
---|
| 1474 | <h1 id="rfc.section.C"><a href="#rfc.section.C">C.</a> <a id="compatibility" href="#compatibility">Compatibility with Previous Versions</a></h1> |
---|
| 1475 | <h2 id="rfc.section.C.1"><a href="#rfc.section.C.1">C.1</a> <a id="changes.from.rfc.2068" href="#changes.from.rfc.2068">Changes from RFC 2068</a></h2> |
---|
| 1476 | <p id="rfc.section.C.1.p.1">Transfer-coding and message lengths all interact in ways that required fixing exactly when chunked encoding is used (to allow |
---|
| 1477 | for transfer encoding that may not be self delimiting); it was important to straighten out exactly how message lengths are |
---|
| 1478 | computed. (<a href="#entity.length" title="Entity Length">Section 4.2.2</a>, see also <a href="#Part1" id="rfc.xref.Part1.16"><cite title="HTTP/1.1, part 1: URIs, Connections, and Message Parsing">[Part1]</cite></a>, <a href="#Part5" id="rfc.xref.Part5.4"><cite title="HTTP/1.1, part 5: Range Requests and Partial Responses">[Part5]</cite></a> and <a href="#Part6" id="rfc.xref.Part6.5"><cite title="HTTP/1.1, part 6: Caching">[Part6]</cite></a>). |
---|
| 1479 | </p> |
---|
| 1480 | <p id="rfc.section.C.1.p.2">Charset wildcarding is introduced to avoid explosion of character set names in accept headers. (<a href="#header.accept-charset" id="rfc.xref.header.accept-charset.2" title="Accept-Charset">Section 6.2</a>) |
---|
| 1481 | </p> |
---|
| 1482 | <p id="rfc.section.C.1.p.3">Content-Base was deleted from the specification: it was not implemented widely, and there is no simple, safe way to introduce |
---|
| 1483 | it without a robust extension mechanism. In addition, it is used in a similar, but not identical fashion in MHTML <a href="#RFC2557" id="rfc.xref.RFC2557.2"><cite title="MIME Encapsulation of Aggregate Documents, such as HTML (MHTML)">[RFC2557]</cite></a>. |
---|
| 1484 | </p> |
---|
| 1485 | <p id="rfc.section.C.1.p.4">A content-coding of "identity" was introduced, to solve problems discovered in caching. (<a href="#content.codings" title="Content Codings">Section 3.2</a>) |
---|
| 1486 | </p> |
---|
| 1487 | <p id="rfc.section.C.1.p.5">Quality Values of zero should indicate that "I don't want something" to allow clients to refuse a representation. (<a href="#quality.values" title="Quality Values">Section 3.4</a>) |
---|
| 1488 | </p> |
---|
| 1489 | <p id="rfc.section.C.1.p.6">The Alternates<span id="rfc.iref.a.5"></span><span id="rfc.iref.h.11"></span>, Content-Version<span id="rfc.iref.c.8"></span><span id="rfc.iref.h.12"></span>, Derived-From<span id="rfc.iref.d.2"></span><span id="rfc.iref.h.13"></span>, Link<span id="rfc.iref.l.1"></span><span id="rfc.iref.h.14"></span>, URI<span id="rfc.iref.u.1"></span><span id="rfc.iref.h.15"></span>, Public<span id="rfc.iref.p.1"></span><span id="rfc.iref.h.16"></span> and Content-Base<span id="rfc.iref.c.9"></span><span id="rfc.iref.h.17"></span> header fields were defined in previous versions of this specification, but not commonly implemented. See <a href="#RFC2068" id="rfc.xref.RFC2068.5"><cite title="Hypertext Transfer Protocol -- HTTP/1.1">[RFC2068]</cite></a>. |
---|
| 1490 | </p> |
---|
| 1491 | <h2 id="rfc.section.C.2"><a href="#rfc.section.C.2">C.2</a> <a id="changes.from.rfc.2616" href="#changes.from.rfc.2616">Changes from RFC 2616</a></h2> |
---|
| 1492 | <p id="rfc.section.C.2.p.1">Clarify contexts that charset is used in. (<a href="#character.sets" title="Character Sets">Section 3.1</a>) |
---|
| 1493 | </p> |
---|
| 1494 | <p id="rfc.section.C.2.p.2">Remove reference to non-existant identity transfer-coding value tokens. (<a href="#no.content-transfer-encoding" title="No Content-Transfer-Encoding">Appendix A.4</a>) |
---|
| 1495 | </p> |
---|
| 1496 | <h1 id="rfc.section.D"><a href="#rfc.section.D">D.</a> Change Log (to be removed by RFC Editor before publication) |
---|
| 1497 | </h1> |
---|
| 1498 | <h2 id="rfc.section.D.1"><a href="#rfc.section.D.1">D.1</a> Since RFC2616 |
---|
| 1499 | </h2> |
---|
| 1500 | <p id="rfc.section.D.1.p.1">Extracted relevant partitions from <a href="#RFC2616" id="rfc.xref.RFC2616.2"><cite title="Hypertext Transfer Protocol -- HTTP/1.1">[RFC2616]</cite></a>. |
---|
| 1501 | </p> |
---|
| 1502 | <h2 id="rfc.section.D.2"><a href="#rfc.section.D.2">D.2</a> Since draft-ietf-httpbis-p3-payload-00 |
---|
| 1503 | </h2> |
---|
| 1504 | <p id="rfc.section.D.2.p.1">Closed issues: </p> |
---|
| 1505 | <ul> |
---|
| 1506 | <li> <<a href="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/8">http://www3.tools.ietf.org/wg/httpbis/trac/ticket/8</a>>: "Media Type Registrations" (<<a href="http://purl.org/NET/http-errata#media-reg">http://purl.org/NET/http-errata#media-reg</a>>) |
---|
| 1507 | </li> |
---|
| 1508 | <li> <<a href="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/14">http://www3.tools.ietf.org/wg/httpbis/trac/ticket/14</a>>: "Clarification regarding quoting of charset values" (<<a href="http://purl.org/NET/http-errata#charactersets">http://purl.org/NET/http-errata#charactersets</a>>) |
---|
| 1509 | </li> |
---|
| 1510 | <li> <<a href="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/16">http://www3.tools.ietf.org/wg/httpbis/trac/ticket/16</a>>: "Remove 'identity' token references" (<<a href="http://purl.org/NET/http-errata#identity">http://purl.org/NET/http-errata#identity</a>>) |
---|
| 1511 | </li> |
---|
| 1512 | <li> <<a href="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/25">http://www3.tools.ietf.org/wg/httpbis/trac/ticket/25</a>>: "Accept-Encoding BNF" |
---|
| 1513 | </li> |
---|
| 1514 | <li> <<a href="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/35">http://www3.tools.ietf.org/wg/httpbis/trac/ticket/35</a>>: "Normative and Informative references" |
---|
| 1515 | </li> |
---|
| 1516 | <li> <<a href="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/46">http://www3.tools.ietf.org/wg/httpbis/trac/ticket/46</a>>: "RFC1700 references" |
---|
| 1517 | </li> |
---|
| 1518 | <li> <<a href="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/55">http://www3.tools.ietf.org/wg/httpbis/trac/ticket/55</a>>: "Updating to RFC4288" |
---|
| 1519 | </li> |
---|
| 1520 | <li> <<a href="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/65">http://www3.tools.ietf.org/wg/httpbis/trac/ticket/65</a>>: "Informative references" |
---|
| 1521 | </li> |
---|
| 1522 | <li> <<a href="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/66">http://www3.tools.ietf.org/wg/httpbis/trac/ticket/66</a>>: "ISO-8859-1 Reference" |
---|
| 1523 | </li> |
---|
| 1524 | <li> <<a href="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/68">http://www3.tools.ietf.org/wg/httpbis/trac/ticket/68</a>>: "Encoding References Normative" |
---|
| 1525 | </li> |
---|
| 1526 | <li> <<a href="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/86">http://www3.tools.ietf.org/wg/httpbis/trac/ticket/86</a>>: "Normative up-to-date references" |
---|
| 1527 | </li> |
---|
| 1528 | </ul> |
---|
| 1529 | <h2 id="rfc.section.D.3"><a href="#rfc.section.D.3">D.3</a> Since draft-ietf-httpbis-p3-payload-01 |
---|
| 1530 | </h2> |
---|
| 1531 | <p id="rfc.section.D.3.p.1">Ongoing work on ABNF conversion (<<a href="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/36">http://www3.tools.ietf.org/wg/httpbis/trac/ticket/36</a>>): |
---|
| 1532 | </p> |
---|
| 1533 | <ul> |
---|
| 1534 | <li>Add explicit references to BNF syntax and rules imported from other parts of the specification.</li> |
---|
| 1535 | </ul> |
---|
| 1536 | <h1 id="rfc.index"><a href="#rfc.index">Index</a></h1> |
---|
| 1537 | <p class="noprint"><a href="#rfc.index.A">A</a> <a href="#rfc.index.C">C</a> <a href="#rfc.index.D">D</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.L">L</a> <a href="#rfc.index.P">P</a> <a href="#rfc.index.R">R</a> <a href="#rfc.index.U">U</a> |
---|
| 1538 | </p> |
---|
| 1539 | <div class="print2col"> |
---|
| 1540 | <ul class="ind"> |
---|
[1099] | 1541 | <li><a id="rfc.index.A" href="#rfc.index.A"><b>A</b></a><ul> |
---|
| 1542 | <li>Accept header <a href="#rfc.xref.header.accept.1">3.3</a>, <a href="#rfc.xref.header.accept.2">5.1</a>, <a href="#rfc.iref.a.1"><b>6.1</b></a></li> |
---|
| 1543 | <li>Accept-Charset header <a href="#rfc.xref.header.accept-charset.1">5.1</a>, <a href="#rfc.iref.a.2"><b>6.2</b></a>, <a href="#rfc.xref.header.accept-charset.2">C.1</a></li> |
---|
| 1544 | <li>Accept-Encoding header <a href="#rfc.xref.header.accept-encoding.1">3.2</a>, <a href="#rfc.xref.header.accept-encoding.2">5.1</a>, <a href="#rfc.iref.a.3"><b>6.3</b></a></li> |
---|
| 1545 | <li>Accept-Language header <a href="#rfc.xref.header.accept-language.1">5.1</a>, <a href="#rfc.iref.a.4"><b>6.4</b></a></li> |
---|
| 1546 | <li>Alternates header <a href="#rfc.iref.a.5"><b>C.1</b></a></li> |
---|
[231] | 1547 | </ul> |
---|
| 1548 | </li> |
---|
[1099] | 1549 | <li><a id="rfc.index.C" href="#rfc.index.C"><b>C</b></a><ul> |
---|
| 1550 | <li>compress <a href="#rfc.iref.c.1">3.2</a></li> |
---|
| 1551 | <li>Content-Base header <a href="#rfc.iref.c.9"><b>C.1</b></a></li> |
---|
| 1552 | <li>Content-Disposition header <a href="#rfc.xref.content-disposition.1">8.2</a>, <a href="#rfc.iref.c.7"><b>B.1</b></a></li> |
---|
| 1553 | <li>Content-Encoding header <a href="#rfc.xref.header.content-encoding.1">3.2</a>, <a href="#rfc.xref.header.content-encoding.2">4.1</a>, <a href="#rfc.iref.c.2"><b>6.5</b></a>, <a href="#rfc.xref.header.content-encoding.3">6.5</a></li> |
---|
| 1554 | <li>Content-Language header <a href="#rfc.xref.header.content-language.1">4.1</a>, <a href="#rfc.iref.c.3"><b>6.6</b></a></li> |
---|
| 1555 | <li>Content-Location header <a href="#rfc.xref.header.content-location.1">4.1</a>, <a href="#rfc.iref.c.4"><b>6.7</b></a></li> |
---|
| 1556 | <li>Content-MD5 header <a href="#rfc.xref.header.content-md5.1">4.1</a>, <a href="#rfc.iref.c.5"><b>6.8</b></a></li> |
---|
| 1557 | <li>Content-Type header <a href="#rfc.xref.header.content-type.1">3.3</a>, <a href="#rfc.xref.header.content-type.2">4.1</a>, <a href="#rfc.iref.c.6"><b>6.9</b></a></li> |
---|
| 1558 | <li>Content-Version header <a href="#rfc.iref.c.8"><b>C.1</b></a></li> |
---|
[231] | 1559 | </ul> |
---|
| 1560 | </li> |
---|
[1099] | 1561 | <li><a id="rfc.index.D" href="#rfc.index.D"><b>D</b></a><ul> |
---|
| 1562 | <li>deflate <a href="#rfc.iref.d.1">3.2</a></li> |
---|
| 1563 | <li>Derived-From header <a href="#rfc.iref.d.2"><b>C.1</b></a></li> |
---|
[231] | 1564 | </ul> |
---|
| 1565 | </li> |
---|
[1099] | 1566 | <li><a id="rfc.index.G" href="#rfc.index.G"><b>G</b></a><ul> |
---|
| 1567 | <li><tt>Grammar</tt> |
---|
| 1568 | <ul> |
---|
| 1569 | <li><tt>Accept</tt> <a href="#rfc.iref.g.17"><b>6.1</b></a></li> |
---|
| 1570 | <li><tt>Accept-Charset</tt> <a href="#rfc.iref.g.21"><b>6.2</b></a></li> |
---|
| 1571 | <li><tt>Accept-Encoding</tt> <a href="#rfc.iref.g.22"><b>6.3</b></a></li> |
---|
| 1572 | <li><tt>accept-extension</tt> <a href="#rfc.iref.g.20"><b>6.1</b></a></li> |
---|
| 1573 | <li><tt>Accept-Language</tt> <a href="#rfc.iref.g.24"><b>6.4</b></a></li> |
---|
| 1574 | <li><tt>accept-params</tt> <a href="#rfc.iref.g.19"><b>6.1</b></a></li> |
---|
| 1575 | <li><tt>attribute</tt> <a href="#rfc.iref.g.8"><b>3.3</b></a></li> |
---|
| 1576 | <li><tt>charset</tt> <a href="#rfc.iref.g.1"><b>3.1</b></a></li> |
---|
| 1577 | <li><tt>codings</tt> <a href="#rfc.iref.g.23"><b>6.3</b></a></li> |
---|
| 1578 | <li><tt>content-coding</tt> <a href="#rfc.iref.g.2"><b>3.2</b></a></li> |
---|
| 1579 | <li><tt>content-disposition</tt> <a href="#rfc.iref.g.33"><b>B.1</b></a></li> |
---|
| 1580 | <li><tt>Content-Encoding</tt> <a href="#rfc.iref.g.26"><b>6.5</b></a></li> |
---|
| 1581 | <li><tt>Content-Language</tt> <a href="#rfc.iref.g.27"><b>6.6</b></a></li> |
---|
| 1582 | <li><tt>Content-Location</tt> <a href="#rfc.iref.g.28"><b>6.7</b></a></li> |
---|
| 1583 | <li><tt>Content-MD5</tt> <a href="#rfc.iref.g.29"><b>6.8</b></a></li> |
---|
| 1584 | <li><tt>Content-Type</tt> <a href="#rfc.iref.g.31"><b>6.9</b></a></li> |
---|
| 1585 | <li><tt>disp-extension-parm</tt> <a href="#rfc.iref.g.38"><b>B.1</b></a></li> |
---|
| 1586 | <li><tt>disp-extension-token</tt> <a href="#rfc.iref.g.37"><b>B.1</b></a></li> |
---|
| 1587 | <li><tt>disposition-parm</tt> <a href="#rfc.iref.g.35"><b>B.1</b></a></li> |
---|
| 1588 | <li><tt>disposition-type</tt> <a href="#rfc.iref.g.34"><b>B.1</b></a></li> |
---|
| 1589 | <li><tt>entity-body</tt> <a href="#rfc.iref.g.16"><b>4.2</b></a></li> |
---|
| 1590 | <li><tt>entity-header</tt> <a href="#rfc.iref.g.14"><b>4.1</b></a></li> |
---|
| 1591 | <li><tt>extension-header</tt> <a href="#rfc.iref.g.15"><b>4.1</b></a></li> |
---|
| 1592 | <li><tt>filename-parm</tt> <a href="#rfc.iref.g.36"><b>B.1</b></a></li> |
---|
| 1593 | <li><tt>language-range</tt> <a href="#rfc.iref.g.25"><b>6.4</b></a></li> |
---|
| 1594 | <li><tt>language-tag</tt> <a href="#rfc.iref.g.11"><b>3.5</b></a></li> |
---|
| 1595 | <li><tt>md5-digest</tt> <a href="#rfc.iref.g.30"><b>6.8</b></a></li> |
---|
| 1596 | <li><tt>media-range</tt> <a href="#rfc.iref.g.18"><b>6.1</b></a></li> |
---|
| 1597 | <li><tt>media-type</tt> <a href="#rfc.iref.g.4"><b>3.3</b></a></li> |
---|
| 1598 | <li><tt>MIME-Version</tt> <a href="#rfc.iref.g.32"><b>A.1</b></a></li> |
---|
| 1599 | <li><tt>parameter</tt> <a href="#rfc.iref.g.7"><b>3.3</b></a></li> |
---|
| 1600 | <li><tt>primary-tag</tt> <a href="#rfc.iref.g.12"><b>3.5</b></a></li> |
---|
| 1601 | <li><tt>qvalue</tt> <a href="#rfc.iref.g.10"><b>3.4</b></a></li> |
---|
| 1602 | <li><tt>subtag</tt> <a href="#rfc.iref.g.13"><b>3.5</b></a></li> |
---|
| 1603 | <li><tt>subtype</tt> <a href="#rfc.iref.g.6"><b>3.3</b></a></li> |
---|
| 1604 | <li><tt>type</tt> <a href="#rfc.iref.g.5"><b>3.3</b></a></li> |
---|
| 1605 | <li><tt>value</tt> <a href="#rfc.iref.g.9"><b>3.3</b></a></li> |
---|
[231] | 1606 | </ul> |
---|
| 1607 | </li> |
---|
[1099] | 1608 | <li>gzip <a href="#rfc.iref.g.3">3.2</a></li> |
---|
[231] | 1609 | </ul> |
---|
| 1610 | </li> |
---|
[1099] | 1611 | <li><a id="rfc.index.H" href="#rfc.index.H"><b>H</b></a><ul> |
---|
| 1612 | <li>Headers |
---|
| 1613 | <ul> |
---|
| 1614 | <li>Accept <a href="#rfc.xref.header.accept.1">3.3</a>, <a href="#rfc.xref.header.accept.2">5.1</a>, <a href="#rfc.iref.h.1"><b>6.1</b></a></li> |
---|
| 1615 | <li>Accept-Charset <a href="#rfc.xref.header.accept-charset.1">5.1</a>, <a href="#rfc.iref.h.2"><b>6.2</b></a>, <a href="#rfc.xref.header.accept-charset.2">C.1</a></li> |
---|
| 1616 | <li>Accept-Encoding <a href="#rfc.xref.header.accept-encoding.1">3.2</a>, <a href="#rfc.xref.header.accept-encoding.2">5.1</a>, <a href="#rfc.iref.h.3"><b>6.3</b></a></li> |
---|
| 1617 | <li>Accept-Language <a href="#rfc.xref.header.accept-language.1">5.1</a>, <a href="#rfc.iref.h.4"><b>6.4</b></a></li> |
---|
| 1618 | <li>Alternate <a href="#rfc.iref.h.11"><b>C.1</b></a></li> |
---|
| 1619 | <li>Content-Base <a href="#rfc.iref.h.17"><b>C.1</b></a></li> |
---|
| 1620 | <li>Content-Disposition <a href="#rfc.xref.content-disposition.1">8.2</a>, <a href="#rfc.iref.h.10"><b>B.1</b></a></li> |
---|
| 1621 | <li>Content-Encoding <a href="#rfc.xref.header.content-encoding.1">3.2</a>, <a href="#rfc.xref.header.content-encoding.2">4.1</a>, <a href="#rfc.iref.h.5"><b>6.5</b></a>, <a href="#rfc.xref.header.content-encoding.3">6.5</a></li> |
---|
| 1622 | <li>Content-Language <a href="#rfc.xref.header.content-language.1">4.1</a>, <a href="#rfc.iref.h.6"><b>6.6</b></a></li> |
---|
| 1623 | <li>Content-Location <a href="#rfc.xref.header.content-location.1">4.1</a>, <a href="#rfc.iref.h.7"><b>6.7</b></a></li> |
---|
| 1624 | <li>Content-MD5 <a href="#rfc.xref.header.content-md5.1">4.1</a>, <a href="#rfc.iref.h.8"><b>6.8</b></a></li> |
---|
| 1625 | <li>Content-Type <a href="#rfc.xref.header.content-type.1">3.3</a>, <a href="#rfc.xref.header.content-type.2">4.1</a>, <a href="#rfc.iref.h.9"><b>6.9</b></a></li> |
---|
| 1626 | <li>Content-Version <a href="#rfc.iref.h.12"><b>C.1</b></a></li> |
---|
| 1627 | <li>Derived-From <a href="#rfc.iref.h.13"><b>C.1</b></a></li> |
---|
| 1628 | <li>Link <a href="#rfc.iref.h.14"><b>C.1</b></a></li> |
---|
| 1629 | <li>Public <a href="#rfc.iref.h.16"><b>C.1</b></a></li> |
---|
| 1630 | <li>URI <a href="#rfc.iref.h.15"><b>C.1</b></a></li> |
---|
[231] | 1631 | </ul> |
---|
| 1632 | </li> |
---|
| 1633 | </ul> |
---|
| 1634 | </li> |
---|
[1099] | 1635 | <li><a id="rfc.index.I" href="#rfc.index.I"><b>I</b></a><ul> |
---|
| 1636 | <li>identity <a href="#rfc.iref.i.1">3.2</a></li> |
---|
| 1637 | <li><em>ISO-8859-1</em> <a href="#rfc.xref.ISO-8859-1.1">3.1.1</a>, <a href="#ISO-8859-1"><b>10.1</b></a></li> |
---|
[231] | 1638 | </ul> |
---|
| 1639 | </li> |
---|
[1099] | 1640 | <li><a id="rfc.index.L" href="#rfc.index.L"><b>L</b></a><ul> |
---|
| 1641 | <li>Link header <a href="#rfc.iref.l.1"><b>C.1</b></a></li> |
---|
[231] | 1642 | </ul> |
---|
| 1643 | </li> |
---|
[1099] | 1644 | <li><a id="rfc.index.P" href="#rfc.index.P"><b>P</b></a><ul> |
---|
| 1645 | <li><em>Part1</em> <a href="#rfc.xref.Part1.1">2</a>, <a href="#rfc.xref.Part1.2">2</a>, <a href="#rfc.xref.Part1.3">2</a>, <a href="#rfc.xref.Part1.4">2</a>, <a href="#rfc.xref.Part1.5">2</a>, <a href="#rfc.xref.Part1.6">2</a>, <a href="#rfc.xref.Part1.7">2</a>, <a href="#rfc.xref.Part1.8">2</a>, <a href="#rfc.xref.Part1.9">2</a>, <a href="#rfc.xref.Part1.10">2</a>, <a href="#rfc.xref.Part1.11">2</a>, <a href="#rfc.xref.Part1.12">4.1</a>, <a href="#rfc.xref.Part1.13">4.2</a>, <a href="#rfc.xref.Part1.14">4.2.2</a>, <a href="#Part1"><b>10.1</b></a>, <a href="#rfc.xref.Part1.15">A.5</a>, <a href="#rfc.xref.Part1.16">C.1</a><ul> |
---|
| 1646 | <li><em>Section 2.1</em> <a href="#rfc.xref.Part1.1">2</a></li> |
---|
| 1647 | <li><em>Section 2.2</em> <a href="#rfc.xref.Part1.2">2</a>, <a href="#rfc.xref.Part1.3">2</a>, <a href="#rfc.xref.Part1.4">2</a>, <a href="#rfc.xref.Part1.5">2</a>, <a href="#rfc.xref.Part1.6">2</a>, <a href="#rfc.xref.Part1.7">2</a></li> |
---|
| 1648 | <li><em>Section 3.2.1</em> <a href="#rfc.xref.Part1.8">2</a>, <a href="#rfc.xref.Part1.10">2</a></li> |
---|
| 1649 | <li><em>Section 4.2</em> <a href="#rfc.xref.Part1.11">2</a></li> |
---|
| 1650 | <li><em>Section 4.3</em> <a href="#rfc.xref.Part1.13">4.2</a></li> |
---|
| 1651 | <li><em>Section 4.4</em> <a href="#rfc.xref.Part1.14">4.2.2</a></li> |
---|
| 1652 | <li><em>Section 8.2</em> <a href="#rfc.xref.Part1.9">2</a>, <a href="#rfc.xref.Part1.12">4.1</a></li> |
---|
| 1653 | <li><em>Section 8.7</em> <a href="#rfc.xref.Part1.15">A.5</a></li> |
---|
[231] | 1654 | </ul> |
---|
| 1655 | </li> |
---|
[1099] | 1656 | <li><em>Part2</em> <a href="#rfc.xref.Part2.1">2</a>, <a href="#rfc.xref.Part2.2">4.1</a>, <a href="#rfc.xref.Part2.3">5.1</a>, <a href="#Part2"><b>10.1</b></a><ul> |
---|
| 1657 | <li><em>Section 10.1</em> <a href="#rfc.xref.Part2.1">2</a>, <a href="#rfc.xref.Part2.2">4.1</a></li> |
---|
| 1658 | <li><em>Section 10.9</em> <a href="#rfc.xref.Part2.3">5.1</a></li> |
---|
[231] | 1659 | </ul> |
---|
| 1660 | </li> |
---|
[1099] | 1661 | <li><em>Part4</em> <a href="#rfc.xref.Part4.1">2</a>, <a href="#rfc.xref.Part4.2">4.1</a>, <a href="#Part4"><b>10.1</b></a><ul> |
---|
| 1662 | <li><em>Section 7.6</em> <a href="#rfc.xref.Part4.1">2</a>, <a href="#rfc.xref.Part4.2">4.1</a></li> |
---|
[231] | 1663 | </ul> |
---|
| 1664 | </li> |
---|
[1099] | 1665 | <li><em>Part5</em> <a href="#rfc.xref.Part5.1">2</a>, <a href="#rfc.xref.Part5.2">3.3.2</a>, <a href="#rfc.xref.Part5.3">4.1</a>, <a href="#Part5"><b>10.1</b></a>, <a href="#rfc.xref.Part5.4">C.1</a><ul> |
---|
| 1666 | <li><em>Section 6.2</em> <a href="#rfc.xref.Part5.1">2</a>, <a href="#rfc.xref.Part5.3">4.1</a></li> |
---|
| 1667 | <li><em>Appendix A</em> <a href="#rfc.xref.Part5.2">3.3.2</a></li> |
---|
[231] | 1668 | </ul> |
---|
| 1669 | </li> |
---|
[1099] | 1670 | <li><em>Part6</em> <a href="#rfc.xref.Part6.1">2</a>, <a href="#rfc.xref.Part6.2">4.1</a>, <a href="#rfc.xref.Part6.3">5.1</a>, <a href="#rfc.xref.Part6.4">6.7</a>, <a href="#Part6"><b>10.1</b></a>, <a href="#rfc.xref.Part6.5">C.1</a><ul> |
---|
| 1671 | <li><em>Section 8</em> <a href="#rfc.xref.Part6.4">6.7</a></li> |
---|
| 1672 | <li><em>Section 16.3</em> <a href="#rfc.xref.Part6.1">2</a>, <a href="#rfc.xref.Part6.2">4.1</a></li> |
---|
| 1673 | <li><em>Section 16.5</em> <a href="#rfc.xref.Part6.3">5.1</a></li> |
---|
[231] | 1674 | </ul> |
---|
| 1675 | </li> |
---|
[1099] | 1676 | <li>Public header <a href="#rfc.iref.p.1"><b>C.1</b></a></li> |
---|
[231] | 1677 | </ul> |
---|
| 1678 | </li> |
---|
[1099] | 1679 | <li><a id="rfc.index.R" href="#rfc.index.R"><b>R</b></a><ul> |
---|
| 1680 | <li><em>RFC1766</em> <a href="#rfc.xref.RFC1766.1">3.5</a>, <a href="#RFC1766"><b>10.1</b></a></li> |
---|
| 1681 | <li><em>RFC1806</em> <a href="#rfc.xref.RFC1806.1">8.2</a>, <a href="#rfc.xref.RFC1806.2">8.2</a>, <a href="#RFC1806"><b>10.2</b></a>, <a href="#rfc.xref.RFC1806.3">B.1</a></li> |
---|
| 1682 | <li><em>RFC1864</em> <a href="#rfc.xref.RFC1864.1">6.8</a>, <a href="#rfc.xref.RFC1864.2">6.8</a>, <a href="#RFC1864"><b>10.1</b></a></li> |
---|
| 1683 | <li><em>RFC1945</em> <a href="#RFC1945"><b>10.2</b></a>, <a href="#rfc.xref.RFC1945.1">B</a></li> |
---|
| 1684 | <li><em>RFC1950</em> <a href="#rfc.xref.RFC1950.1">3.2</a>, <a href="#RFC1950"><b>10.1</b></a></li> |
---|
| 1685 | <li><em>RFC1951</em> <a href="#rfc.xref.RFC1951.1">3.2</a>, <a href="#RFC1951"><b>10.1</b></a></li> |
---|
| 1686 | <li><em>RFC1952</em> <a href="#rfc.xref.RFC1952.1">3.2</a>, <a href="#RFC1952"><b>10.1</b></a></li> |
---|
| 1687 | <li><em>RFC2045</em> <a href="#RFC2045"><b>10.1</b></a>, <a href="#rfc.xref.RFC2045.1">A</a>, <a href="#rfc.xref.RFC2045.2">A.1</a>, <a href="#rfc.xref.RFC2045.3">A.2</a></li> |
---|
| 1688 | <li><em>RFC2046</em> <a href="#rfc.xref.RFC2046.1">3.3</a>, <a href="#rfc.xref.RFC2046.2">3.3.2</a>, <a href="#RFC2046"><b>10.1</b></a>, <a href="#rfc.xref.RFC2046.3">A.2</a><ul> |
---|
| 1689 | <li><em>Section 5.1.1</em> <a href="#rfc.xref.RFC2046.2">3.3.2</a></li> |
---|
[231] | 1690 | </ul> |
---|
| 1691 | </li> |
---|
[1099] | 1692 | <li><em>RFC2049</em> <a href="#RFC2049"><b>10.2</b></a>, <a href="#rfc.xref.RFC2049.1">A.2</a><ul> |
---|
| 1693 | <li><em>Section 4</em> <a href="#rfc.xref.RFC2049.1">A.2</a></li> |
---|
[231] | 1694 | </ul> |
---|
| 1695 | </li> |
---|
[1099] | 1696 | <li><em>RFC2068</em> <a href="#rfc.xref.RFC2068.1">10.1</a>, <a href="#rfc.xref.RFC2068.2">10.1</a>, <a href="#rfc.xref.RFC2068.3">10.1</a>, <a href="#RFC2068"><b>10.2</b></a>, <a href="#rfc.xref.RFC2068.4">B</a>, <a href="#rfc.xref.RFC2068.5">C.1</a></li> |
---|
| 1697 | <li><em>RFC2076</em> <a href="#RFC2076"><b>10.2</b></a>, <a href="#rfc.xref.RFC2076.1">B</a></li> |
---|
| 1698 | <li><em>RFC2119</em> <a href="#rfc.xref.RFC2119.1">1.1</a>, <a href="#RFC2119"><b>10.1</b></a></li> |
---|
| 1699 | <li><em>RFC2183</em> <a href="#rfc.xref.RFC2183.1">8.2</a>, <a href="#RFC2183"><b>10.2</b></a></li> |
---|
| 1700 | <li><em>RFC2277</em> <a href="#rfc.xref.RFC2277.1">3.1</a>, <a href="#RFC2277"><b>10.2</b></a></li> |
---|
| 1701 | <li><em>RFC2388</em> <a href="#rfc.xref.RFC2388.1">3.3.2</a>, <a href="#RFC2388"><b>10.2</b></a></li> |
---|
| 1702 | <li><em>RFC2557</em> <a href="#RFC2557"><b>10.2</b></a>, <a href="#rfc.xref.RFC2557.1">A.6</a>, <a href="#rfc.xref.RFC2557.2">C.1</a></li> |
---|
| 1703 | <li><em>RFC2616</em> <a href="#rfc.xref.RFC2616.1">1</a>, <a href="#RFC2616"><b>10.2</b></a>, <a href="#rfc.xref.RFC2616.2">D.1</a></li> |
---|
| 1704 | <li><em>RFC2822</em> <a href="#RFC2822"><b>10.2</b></a>, <a href="#rfc.xref.RFC2822.1">A</a></li> |
---|
| 1705 | <li><em>RFC3629</em> <a href="#rfc.xref.RFC3629.1">3.1</a>, <a href="#RFC3629"><b>10.2</b></a></li> |
---|
| 1706 | <li><em>RFC4288</em> <a href="#rfc.xref.RFC4288.1">3.3</a>, <a href="#RFC4288"><b>10.2</b></a></li> |
---|
[231] | 1707 | </ul> |
---|
| 1708 | </li> |
---|
[1099] | 1709 | <li><a id="rfc.index.U" href="#rfc.index.U"><b>U</b></a><ul> |
---|
| 1710 | <li>URI header <a href="#rfc.iref.u.1"><b>C.1</b></a></li> |
---|
[231] | 1711 | </ul> |
---|
| 1712 | </li> |
---|
| 1713 | </ul> |
---|
| 1714 | </div> |
---|
[1099] | 1715 | <h1><a id="rfc.copyright" href="#rfc.copyright">Full Copyright Statement</a></h1> |
---|
| 1716 | <p>Copyright © The IETF Trust (2008).</p> |
---|
| 1717 | <p>This document is subject to the rights, licenses and restrictions contained in BCP 78, and except as set forth therein, the |
---|
| 1718 | authors retain all their rights. |
---|
| 1719 | </p> |
---|
| 1720 | <p>This document and the information contained herein are provided on an “AS IS” basis and THE CONTRIBUTOR, THE ORGANIZATION |
---|
| 1721 | HE/SHE REPRESENTS OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY, THE IETF TRUST AND THE INTERNET ENGINEERING TASK FORCE |
---|
| 1722 | DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN |
---|
| 1723 | WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. |
---|
| 1724 | </p> |
---|
| 1725 | <h1><a id="rfc.ipr" href="#rfc.ipr">Intellectual Property</a></h1> |
---|
| 1726 | <p>The IETF takes no position regarding the validity or scope of any Intellectual Property Rights or other rights that might |
---|
| 1727 | be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any |
---|
| 1728 | license under such rights might or might not be available; nor does it represent that it has made any independent effort to |
---|
| 1729 | identify any such rights. Information on the procedures with respect to rights in RFC documents can be found in BCP 78 and |
---|
| 1730 | BCP 79. |
---|
| 1731 | </p> |
---|
| 1732 | <p>Copies of IPR disclosures made to the IETF Secretariat and any assurances of licenses to be made available, or the result |
---|
| 1733 | of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementers or users |
---|
| 1734 | of this specification can be obtained from the IETF on-line IPR repository at <a href="http://www.ietf.org/ipr">http://www.ietf.org/ipr</a>. |
---|
| 1735 | </p> |
---|
| 1736 | <p>The IETF invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary |
---|
| 1737 | rights that may cover technology that may be required to implement this standard. Please address the information to the IETF |
---|
| 1738 | at <a href="mailto:ietf-ipr@ietf.org">ietf-ipr@ietf.org</a>. |
---|
| 1739 | </p> |
---|
[231] | 1740 | </body> |
---|
| 1741 | </html> |
---|