source: draft-ietf-httpbis-content-disp/04/draft-ietf-httpbis-content-disp.html @ 1191

Last change on this file since 1191 was 1085, checked in by julian.reschke@…, 12 years ago


File size: 61.0 KB
1<!DOCTYPE html
2  PUBLIC "-//W3C//DTD HTML 4.01//EN">
3<html lang="en">
4   <head profile="">
5      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6      <title>Use of the Content-Disposition&nbsp;Header&nbsp;Field
7         in the Hypertext&nbsp;Transfer&nbsp;Protocol&nbsp;(HTTP)
8      </title><style type="text/css" title="Xml2Rfc (sans serif)">
9a {
10  text-decoration: none;
12a.smpl {
13  color: black;
15a:hover {
16  text-decoration: underline;
18a:active {
19  text-decoration: underline;
21address {
22  margin-top: 1em;
23  margin-left: 2em;
24  font-style: normal;
26blockquote {
27  border-style: solid;
28  border-color: gray;
29  border-width: 0 0 0 .25em;
30  font-style: italic;
31  padding-left: 0.5em;
33body {
34  color: black;
35  font-family: verdana, helvetica, arial, sans-serif;
36  font-size: 10pt;
38cite {
39  font-style: normal;
41div.note {
42  margin-left: 2em;
44dd {
45  margin-right: 2em;
47dl {
48  margin-left: 2em;
51ul.empty {
52  list-style-type: none;
54ul.empty li {
55  margin-top: .5em;
57dl p {
58  margin-left: 0em;
60dt {
61  margin-top: .5em;
63h1 {
64  font-size: 14pt;
65  line-height: 21pt;
66  page-break-after: avoid;
67} {
69  page-break-before: always;
71h1 a {
72  color: #333333;
74h2 {
75  font-size: 12pt;
76  line-height: 15pt;
77  page-break-after: avoid;
79h3, h4, h5, h6 {
80  font-size: 10pt;
81  page-break-after: avoid;
83h2 a, h3 a, h4 a, h5 a, h6 a {
84  color: black;
86img {
87  margin-left: 3em;
89li {
90  margin-left: 2em;
91  margin-right: 2em;
93ol {
94  margin-left: 2em;
95  margin-right: 2em;
97ol p {
98  margin-left: 0em;
100p {
101  margin-left: 2em;
102  margin-right: 2em;
104pre {
105  margin-left: 3em;
106  background-color: lightyellow;
107  padding: .25em;
109pre.text2 {
110  border-style: dotted;
111  border-width: 1px;
112  background-color: #f0f0f0;
113  width: 69em;
115pre.inline {
116  background-color: white;
117  padding: 0em;
119pre.text {
120  border-style: dotted;
121  border-width: 1px;
122  background-color: #f8f8f8;
123  width: 69em;
125pre.drawing {
126  border-style: solid;
127  border-width: 1px;
128  background-color: #f8f8f8;
129  padding: 2em;
131table {
132  margin-left: 2em;
133} {
135  vertical-align: top;
137table.full {
138  border-style: outset;
139  border-width: 1px;
141table.headers {
142  border-style: outset;
143  border-width: 1px;
144} td {
146  vertical-align: top;
148table.full td {
149  border-style: inset;
150  border-width: 1px;
151} th {
153  vertical-align: top;
155table.full th {
156  border-style: inset;
157  border-width: 1px;
159table.headers th {
160  border-style: none none inset none;
161  border-width: 1px;
163table.left {
164  margin-right: auto;
166table.right {
167  margin-left: auto;
168} {
170  margin-left: auto;
171  margin-right: auto;
173caption {
174  caption-side: bottom;
175  font-weight: bold;
176  font-size: 9pt;
177  margin-top: .5em;
180table.header {
181  border-spacing: 1px;
182  width: 95%;
183  font-size: 10pt;
184  color: white;
185} {
187  vertical-align: top;
189td.topnowrap {
190  vertical-align: top;
191  white-space: nowrap;
193table.header td {
194  background-color: gray;
195  width: 50%;
197table.header a {
198  color: white;
200td.reference {
201  vertical-align: top;
202  white-space: nowrap;
203  padding-right: 1em;
205thead {
206  display:table-header-group;
208ul.toc, ul.toc ul {
209  list-style: none;
210  margin-left: 1.5em;
211  margin-right: 0em;
212  padding-left: 0em;
214ul.toc li {
215  line-height: 150%;
216  font-weight: bold;
217  font-size: 10pt;
218  margin-left: 0em;
219  margin-right: 0em;
221ul.toc li li {
222  line-height: normal;
223  font-weight: normal;
224  font-size: 9pt;
225  margin-left: 0em;
226  margin-right: 0em;
228li.excluded {
229  font-size: 0pt;
231ul p {
232  margin-left: 0em;
234ul.ind {
235  list-style: none;
236  margin-left: 1.5em;
237  margin-right: 0em;
238  padding-left: 0em;
239  page-break-before: avoid;
241ul.ind li {
242  font-weight: bold;
243  line-height: 200%;
244  margin-left: 0em;
245  margin-right: 0em;
247ul.ind li li {
248  font-weight: normal;
249  line-height: 150%;
250  margin-left: 0em;
251  margin-right: 0em;
253.avoidbreak {
254  page-break-inside: avoid;
256.bcp14 {
257  font-style: normal;
258  text-transform: lowercase;
259  font-variant: small-caps;
261blockquote > * .bcp14 {
262  font-style: italic;
264.comment {
265  background-color: yellow;
266} {
268  text-align: center;
270.error {
271  color: red;
272  font-style: italic;
273  font-weight: bold;
275.figure {
276  font-weight: bold;
277  text-align: center;
278  font-size: 9pt;
280.filename {
281  color: #333333;
282  font-weight: bold;
283  font-size: 12pt;
284  line-height: 21pt;
285  text-align: center;
287.fn {
288  font-weight: bold;
290.hidden {
291  display: none;
293.left {
294  text-align: left;
296.right {
297  text-align: right;
299.title {
300  color: #990000;
301  font-size: 18pt;
302  line-height: 18pt;
303  font-weight: bold;
304  text-align: center;
305  margin-top: 36pt;
307.vcardline {
308  display: block;
310.warning {
311  font-size: 14pt;
312  background-color: yellow;
316@media print {
317  .noprint {
318    display: none;
319  }
321  a {
322    color: black;
323    text-decoration: none;
324  }
326  table.header {
327    width: 90%;
328  }
330  td.header {
331    width: 50%;
332    color: black;
333    background-color: white;
334    vertical-align: top;
335    font-size: 12pt;
336  }
338  ul.toc a::after {
339    content: leader('.') target-counter(attr(href), page);
340  }
342  ul.ind li li a {
343    content: target-counter(attr(href), page);
344  }
346  .print2col {
347    column-count: 2;
348    -moz-column-count: 2;
349    column-fill: auto;
350  }
353@page {
354  @top-left {
355       content: "Internet-Draft";
356  }
357  @top-right {
358       content: "November 2010";
359  }
360  @top-center {
361       content: "Content-Disposition in HTTP";
362  }
363  @bottom-left {
364       content: "Reschke";
365  }
366  @bottom-center {
367       content: "Standards Track";
368  }
369  @bottom-right {
370       content: "[Page " counter(page) "]";
371  }
374@page:first {
375    @top-left {
376      content: normal;
377    }
378    @top-right {
379      content: normal;
380    }
381    @top-center {
382      content: normal;
383    }
385</style><link rel="Contents" href="#rfc.toc">
386      <link rel="Author" href="#rfc.authors">
387      <link rel="Copyright" href="#rfc.copyrightnotice">
388      <link rel="Index" href="#rfc.index">
389      <link rel="Chapter" title="1 Introduction" href="#rfc.section.1">
390      <link rel="Chapter" title="2 Notational Conventions" href="#rfc.section.2">
391      <link rel="Chapter" title="3 Header Field Definition" href="#rfc.section.3">
392      <link rel="Chapter" title="4 Examples" href="#rfc.section.4">
393      <link rel="Chapter" title="5 Internationalization Considerations" href="#rfc.section.5">
394      <link rel="Chapter" title="6 Security Considerations" href="#rfc.section.6">
395      <link rel="Chapter" title="7 IANA Considerations" href="#rfc.section.7">
396      <link rel="Chapter" title="8 Acknowledgements" href="#rfc.section.8">
397      <link rel="Chapter" href="#rfc.section.9" title="9 References">
398      <link rel="Appendix" title="A Changes from the RFC 2616 Definition" href="#rfc.section.A">
399      <link rel="Appendix" title="B Differences compared to RFC 2183" href="#rfc.section.B">
400      <link rel="Appendix" title="C Alternative Approaches to Internationalization" href="#rfc.section.C">
401      <link rel="Appendix" title="D Change Log (to be removed by RFC Editor before publication)" href="#rfc.section.D">
402      <meta name="generator" content=", Revision 1.531, 2010-10-31 21:50:52, XSLT vendor: SAXON 8.9 from Saxonica">
403      <link rel="schema.dct" href="">
404      <meta name="dct.creator" content="Reschke, J. F.">
405      <meta name="dct.identifier" content="urn:ietf:id:draft-ietf-httpbis-content-disp-04">
406      <meta name="dct.issued" scheme="ISO8601" content="2010-11-12">
407      <meta name="dct.abstract" content="HTTP/1.1 defines the Content-Disposition response header field, but points out that it is not part of the HTTP/1.1 Standard. This specification takes over the definition and registration of Content-Disposition, as used in HTTP, and clarifies internationalization aspects.">
408      <meta name="description" content="HTTP/1.1 defines the Content-Disposition response header field, but points out that it is not part of the HTTP/1.1 Standard. This specification takes over the definition and registration of Content-Disposition, as used in HTTP, and clarifies internationalization aspects.">
409   </head>
410   <body>
411      <table class="header">
412         <tbody>
413            <tr>
414               <td class="left">HTTPbis Working Group</td>
415               <td class="right">J. Reschke</td>
416            </tr>
417            <tr>
418               <td class="left">Internet-Draft</td>
419               <td class="right">greenbytes</td>
420            </tr>
421            <tr>
422               <td class="left">Updates: <a href="">2616</a> (if approved)
423               </td>
424               <td class="right">November 12, 2010</td>
425            </tr>
426            <tr>
427               <td class="left">Intended status: Standards Track</td>
428               <td class="right"></td>
429            </tr>
430            <tr>
431               <td class="left">Expires: May 16, 2011</td>
432               <td class="right"></td>
433            </tr>
434         </tbody>
435      </table>
436      <p class="title">Use of the Content-Disposition&nbsp;Header&nbsp;Field in the Hypertext&nbsp;Transfer&nbsp;Protocol&nbsp;(HTTP)<br><span class="filename">draft-ietf-httpbis-content-disp-04</span></p>
437      <h1 id="rfc.abstract"><a href="#rfc.abstract">Abstract</a></h1>
438      <p>HTTP/1.1 defines the Content-Disposition response header field, but points out that it is not part of the HTTP/1.1 Standard.
439         This specification takes over the definition and registration of Content-Disposition, as used in HTTP, and clarifies internationalization
440         aspects.
441      </p>
442      <h1 id="rfc.note.1"><a href="#rfc.note.1">Editorial Note (To be removed by RFC Editor before publication)</a></h1>
443      <p>This specification is expected to replace the definition of Content-Disposition in the HTTP/1.1 specification, as currently
444         revised by the IETF HTTPbis working group. See also &lt;<a href=""></a>&gt;.
445      </p> 
446      <p>Discussion of this draft should take place on the HTTPBIS working group mailing list ( The current issues
447         list is at &lt;<a href=""></a>&gt; and related documents (including fancy diffs) can be found at &lt;<a href=""></a>&gt;.
448      </p> 
449      <p>The changes in this draft are summarized in <a href="#changes.since.03" title="Since draft-ietf-httpbis-content-disp-03">Appendix&nbsp;D.8</a>.
450      </p>
451      <h1><a id="rfc.status" href="#rfc.status">Status of This Memo</a></h1>
452      <p>This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.</p>
453      <p>Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute
454         working documents as Internet-Drafts. The list of current Internet-Drafts is at <a href=""></a>.
455      </p>
456      <p>Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other
457         documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as “work
458         in progress”.
459      </p>
460      <p>This Internet-Draft will expire on May 16, 2011.</p>
461      <h1><a id="rfc.copyrightnotice" href="#rfc.copyrightnotice">Copyright Notice</a></h1>
462      <p>Copyright © 2010 IETF Trust and the persons identified as the document authors. All rights reserved.</p>
463      <p>This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (<a href=""></a>) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights
464         and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License
465         text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified
466         BSD License.
467      </p>
468      <hr class="noprint">
469      <h1 class="np" id="rfc.toc"><a href="#rfc.toc">Table of Contents</a></h1>
470      <ul class="toc">
471         <li>1.&nbsp;&nbsp;&nbsp;<a href="#introduction">Introduction</a></li>
472         <li>2.&nbsp;&nbsp;&nbsp;<a href="#rfc.section.2">Notational Conventions</a></li>
473         <li>3.&nbsp;&nbsp;&nbsp;<a href="#header.field.definition">Header Field Definition</a><ul>
474               <li>3.1&nbsp;&nbsp;&nbsp;<a href="#rfc.section.3.1">Grammar</a></li>
475               <li>3.2&nbsp;&nbsp;&nbsp;<a href="#disposition.type">Disposition Type</a></li>
476               <li>3.3&nbsp;&nbsp;&nbsp;<a href="#disposition.parameter.filename">Disposition Parameter: 'Filename'</a></li>
477               <li>3.4&nbsp;&nbsp;&nbsp;<a href="#disposition.parameter.extensions">Disposition Parameter: Extensions</a></li>
478               <li>3.5&nbsp;&nbsp;&nbsp;<a href="#extensibility">Extensibility</a></li>
479            </ul>
480         </li>
481         <li>4.&nbsp;&nbsp;&nbsp;<a href="#examples">Examples</a></li>
482         <li>5.&nbsp;&nbsp;&nbsp;<a href="#i18n">Internationalization Considerations</a></li>
483         <li>6.&nbsp;&nbsp;&nbsp;<a href="#security.considerations">Security Considerations</a></li>
484         <li>7.&nbsp;&nbsp;&nbsp;<a href="#iana.considerations">IANA Considerations</a><ul>
485               <li>7.1&nbsp;&nbsp;&nbsp;<a href="#registry">Registry for Disposition Values and Parameter</a></li>
486               <li>7.2&nbsp;&nbsp;&nbsp;<a href="#header.field.registration">Header Field Registration</a></li>
487            </ul>
488         </li>
489         <li>8.&nbsp;&nbsp;&nbsp;<a href="#rfc.section.8">Acknowledgements</a></li>
490         <li>9.&nbsp;&nbsp;&nbsp;<a href="#rfc.references">References</a><ul>
491               <li>9.1&nbsp;&nbsp;&nbsp;<a href="#rfc.references.1">Normative References</a></li>
492               <li>9.2&nbsp;&nbsp;&nbsp;<a href="#rfc.references.2">Informative References</a></li>
493            </ul>
494         </li>
495         <li><a href="#rfc.authors">Author's Address</a></li>
496         <li>A.&nbsp;&nbsp;&nbsp;<a href="#changes.from.rfc2616">Changes from the RFC 2616 Definition</a></li>
497         <li>B.&nbsp;&nbsp;&nbsp;<a href="">Differences compared to RFC 2183</a></li>
498         <li>C.&nbsp;&nbsp;&nbsp;<a href="#alternatives">Alternative Approaches to Internationalization</a><ul>
499               <li>C.1&nbsp;&nbsp;&nbsp;<a href="#alternatives.rfc2047">RFC 2047 Encoding</a></li>
500               <li>C.2&nbsp;&nbsp;&nbsp;<a href="#alternatives.percent">Percent Encoding</a></li>
501               <li>C.3&nbsp;&nbsp;&nbsp;<a href="#alternatives.sniff">Encoding Sniffing</a></li>
502               <li>C.4&nbsp;&nbsp;&nbsp;<a href="#alternatives.implementations">Implementations (to be removed by RFC Editor before publication)</a></li>
503            </ul>
504         </li>
505         <li>D.&nbsp;&nbsp;&nbsp;<a href="#change.log">Change Log (to be removed by RFC Editor before publication)</a><ul>
506               <li>D.1&nbsp;&nbsp;&nbsp;<a href="#rfc.section.D.1">Since draft-reschke-rfc2183-in-http-00</a></li>
507               <li>D.2&nbsp;&nbsp;&nbsp;<a href="#rfc.section.D.2">Since draft-reschke-rfc2183-in-http-01</a></li>
508               <li>D.3&nbsp;&nbsp;&nbsp;<a href="#rfc.section.D.3">Since draft-reschke-rfc2183-in-http-02</a></li>
509               <li>D.4&nbsp;&nbsp;&nbsp;<a href="#rfc.section.D.4">Since draft-reschke-rfc2183-in-http-03</a></li>
510               <li>D.5&nbsp;&nbsp;&nbsp;<a href="#changes.since.00">Since draft-ietf-httpbis-content-disp-00</a></li>
511               <li>D.6&nbsp;&nbsp;&nbsp;<a href="#changes.since.01">Since draft-ietf-httpbis-content-disp-01</a></li>
512               <li>D.7&nbsp;&nbsp;&nbsp;<a href="#changes.since.02">Since draft-ietf-httpbis-content-disp-02</a></li>
513               <li>D.8&nbsp;&nbsp;&nbsp;<a href="#changes.since.03">Since draft-ietf-httpbis-content-disp-03</a></li>
514            </ul>
515         </li>
516         <li><a href="#rfc.index">Index</a></li>
517      </ul>
518      <h1 id="rfc.section.1" class="np"><a href="#rfc.section.1">1.</a>&nbsp;<a id="introduction" href="#introduction">Introduction</a></h1>
519      <p id="rfc.section.1.p.1">HTTP/1.1 defines the Content-Disposition response header field in <a href="">Section 19.5.1</a> of <a href="#RFC2616" id="rfc.xref.RFC2616.1"><cite title="Hypertext Transfer Protocol -- HTTP/1.1">[RFC2616]</cite></a>, but points out that it is not part of the HTTP/1.1 Standard (<a href="" id="rfc.xref.RFC2616.2">Section 15.5</a>):
520      </p>
521      <blockquote id="rfc.section.1.p.2" cite="">
522         <p>Content-Disposition is not part of the HTTP standard, but since it is widely implemented, we are documenting its use and risks
523            for implementers.
524         </p>
525      </blockquote>
526      <p id="rfc.section.1.p.3">This specification takes over the definition and registration of Content-Disposition, as used in HTTP. Based on interoperability
527         testing with existing User Agents, it fully defines a profile of the features defined in the Multipurpose Internet Mail Extensions
528         (MIME) variant (<a href="#RFC2183" id="rfc.xref.RFC2183.1"><cite title="Communicating Presentation Information in Internet Messages: The Content-Disposition Header Field">[RFC2183]</cite></a>) of the header field, and also clarifies internationalization aspects.
529      </p>
530      <div class="note" id="rfc.section.1.p.4">
531         <p> <b>Note:</b> this document does not apply to Content-Disposition header fields appearing in message payloads transmitted over HTTP, such
532            as when using the media type "multipart/form-data" (<a href="#RFC2388" id="rfc.xref.RFC2388.1"><cite title="Returning Values from Forms: multipart/form-data">[RFC2388]</cite></a>).
533         </p>
534      </div>
535      <h1 id="rfc.section.2"><a href="#rfc.section.2">2.</a>&nbsp;Notational Conventions
536      </h1>
537      <p id="rfc.section.2.p.1">The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL"
538         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>.
539      </p>
540      <p id="rfc.section.2.p.2">This specification uses the augmented BNF notation defined in <a href="">Section 2.1</a> of <a href="#RFC2616" id="rfc.xref.RFC2616.3"><cite title="Hypertext Transfer Protocol -- HTTP/1.1">[RFC2616]</cite></a>, including its rules for implied linear whitespace (LWS).
541      </p>
542      <div id="rfc.iref.h.1"></div>
543      <div id="rfc.iref.c.1"></div>
544      <h1 id="rfc.section.3"><a href="#rfc.section.3">3.</a>&nbsp;<a id="header.field.definition" href="#header.field.definition">Header Field Definition</a></h1>
545      <p id="rfc.section.3.p.1">The Content-Disposition response header field is used to convey additional information about how to process the response payload,
546         and also can be used to attach additional metadata, such as the filename to use when saving the response payload locally.
547      </p>
548      <h2 id="rfc.section.3.1"><a href="#rfc.section.3.1">3.1</a>&nbsp;Grammar
549      </h2>
550      <div id="rfc.figure.u.1"></div><pre class="inline">  content-disposition = "Content-Disposition" ":"
551                         disposition-type *( ";" disposition-parm )
553  disposition-type    = "inline" | "attachment" | disp-ext-type
554                      ; case-insensitive
555  disp-ext-type       = token
557  disposition-parm    = filename-parm | disp-ext-parm
559  filename-parm       = "filename" "=" value
560                      | "filename*" "=" ext-value
562  disp-ext-parm       = token "=" value
563                      | ext-token "=" ext-value
564  ext-token           = &lt;the characters in token, followed by "*"&gt;
565</pre><div id="rfc.figure.u.2"></div>
566      <p>Defined in <a href="#RFC2616" id="rfc.xref.RFC2616.4"><cite title="Hypertext Transfer Protocol -- HTTP/1.1">[RFC2616]</cite></a>:
567      </p>  <pre class="inline">  token         = &lt;token, defined in <a href="#RFC2616" id="rfc.xref.RFC2616.5"><cite title="Hypertext Transfer Protocol -- HTTP/1.1">[RFC2616]</cite></a>, <a href="">Section 2.2</a>&gt;
568  quoted-string = &lt;quoted-string, defined in <a href="#RFC2616" id="rfc.xref.RFC2616.6"><cite title="Hypertext Transfer Protocol -- HTTP/1.1">[RFC2616]</cite></a>, <a href="">Section 2.2</a>&gt;
569  value         = &lt;value, defined in <a href="#RFC2616" id="rfc.xref.RFC2616.7"><cite title="Hypertext Transfer Protocol -- HTTP/1.1">[RFC2616]</cite></a>, <a href="">Section 3.6</a>&gt;
570                ; token | quoted-string
572</pre><div id="rfc.figure.u.3"></div>
573      <p>Defined in <a href="#RFC5987" id="rfc.xref.RFC5987.1"><cite title="Character Set and Language Encoding for Hypertext Transfer Protocol (HTTP) Header Field Parameters">[RFC5987]</cite></a>:
574      </p>  <pre class="inline">  ext-value   = &lt;ext-value, defined in <a href="#RFC5987" id="rfc.xref.RFC5987.2"><cite title="Character Set and Language Encoding for Hypertext Transfer Protocol (HTTP) Header Field Parameters">[RFC5987]</cite></a>, <a href="">Section 3.2</a>&gt;
575</pre><p id="rfc.section.3.1.p.4">Senders <em class="bcp14">MUST NOT</em> generate header field values with multiple instances of the same parameter name. Recipients <em class="bcp14">SHOULD</em> treat these values as invalid.
576      </p>
577      <p id="rfc.section.3.1.p.5">Note that due to the rules for implied linear whitespace (<a href="">Section 2.1</a> of <a href="#RFC2616" id="rfc.xref.RFC2616.8"><cite title="Hypertext Transfer Protocol -- HTTP/1.1">[RFC2616]</cite></a>), OPTIONAL whitespace can appear between words (token or quoted-string) and separator characters.
578      </p>
579      <p id="rfc.section.3.1.p.6">Furthermore note that the format used for ext-value allows specifying a natural language; this is of limited use for filenames
580         and is likely to be ignored by recipients.
581      </p>
582      <h2 id="rfc.section.3.2"><a href="#rfc.section.3.2">3.2</a>&nbsp;<a id="disposition.type" href="#disposition.type">Disposition Type</a></h2>
583      <p id="rfc.section.3.2.p.1">If the disposition type matches "attachment" (case-insensitively), this indicates that the user agent should prompt the user
584         to save the response locally, rather than process it normally (as per its media type).
585      </p>
586      <p id="rfc.section.3.2.p.2">On the other hand, if it matches "inline" (case-insensitively), this implies default processing.</p>
587      <p id="rfc.section.3.2.p.3">Unknown or unhandled disposition types <em class="bcp14">SHOULD</em> be handled the same way as "attachment" (see also <a href="#RFC2183" id="rfc.xref.RFC2183.2"><cite title="Communicating Presentation Information in Internet Messages: The Content-Disposition Header Field">[RFC2183]</cite></a>, <a href="">Section 2.8</a>).
588      </p>
589      <h2 id="rfc.section.3.3"><a href="#rfc.section.3.3">3.3</a>&nbsp;<a id="disposition.parameter.filename" href="#disposition.parameter.filename">Disposition Parameter: 'Filename'</a></h2>
590      <p id="rfc.section.3.3.p.1">The parameters "filename" and "filename*", to be matched case-insensitively, provide information on how to construct a filename
591         for storing the message payload.
592      </p>
593      <p id="rfc.section.3.3.p.2">Depending on the disposition type, this information might be used right away (in the "save as..." interaction caused for the
594         "attachment" disposition type), or later on (for instance, when the user decides to save the contents of the current page
595         being displayed).
596      </p>
597      <p id="rfc.section.3.3.p.3">The parameters "filename" and "filename*" differ only in that "filename*" uses the encoding defined in <a href="#RFC5987" id="rfc.xref.RFC5987.3"><cite title="Character Set and Language Encoding for Hypertext Transfer Protocol (HTTP) Header Field Parameters">[RFC5987]</cite></a>, allowing the use of characters not present in the ISO-8859-1 character set (<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>).
598      </p>
599      <p id="rfc.section.3.3.p.4">Many user agent implementations predating this specification do not understand the "filename*" parameter. Therefore, when
600         both "filename" and "filename*" are present in a single header field value, recipients <em class="bcp14">SHOULD</em> pick "filename*" and ignore "filename". This way, senders can avoid special-casing specific user agents by sending both the
601         more expressive "filename*" parameter, and the "filename" parameter as fallback for legacy recipients (see <a href="#examples" title="Examples">Section&nbsp;4</a> for an example).
602      </p>
603      <p id="rfc.section.3.3.p.5">It is essential that user agents treat the specified filename as advisory only, thus be very careful in extracting the desired
604         information. In particular:
605      </p>
606      <ul>
607         <li>
608            <p>When the value contains path separator characters, all but the last segment <em class="bcp14">SHOULD</em> be ignored. This prevents unintentional overwriting of well-known file system location (such as "/etc/passwd").
609            </p>
610         </li>
611         <li>
612            <p>Many platforms do not use 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>) to hold type information in the file system, but rely on filename extensions instead. Trusting the server-provided file
613               extension could introduce a privilege escalation when the saved file is later opened (consider ".exe"). Thus, recipients need
614               to ensure that a file extension is used that is safe, optimally matching the media type of the received payload.
615            </p>
616         </li>
617         <li>
618            <p>Recipients are advised to strip or replace character sequences that are known to cause confusion both in user interfaces and
619               in filenames, such as control characters and leading and trailing whitespace.
620            </p>
621         </li>
622         <li>
623            <p>Other aspects recipients need to be aware of are names that have a special meaning in the file system or in shell commands,
624               such as "." and "..", "~", "|", and also device names.
625            </p>
626         </li>
627      </ul>
628      <div class="note" id="rfc.section.3.3.p.6">
629         <p> <b>Note:</b> Many user agents do not properly handle escape characters when using the quoted-string form. Furthermore, some user agents
630            erroneously try to perform unescaping of "percent" escapes (see <a href="#alternatives.percent" title="Percent Encoding">Appendix&nbsp;C.2</a>), and thus might misinterpret filenames containing the percent character followed by two hex digits.
631         </p>
632      </div>
633      <h2 id="rfc.section.3.4"><a href="#rfc.section.3.4">3.4</a>&nbsp;<a id="disposition.parameter.extensions" href="#disposition.parameter.extensions">Disposition Parameter: Extensions</a></h2>
634      <p id="rfc.section.3.4.p.1">To enable future extensions, unknown parameters <em class="bcp14">SHOULD</em> be ignored (see also <a href="#RFC2183" id="rfc.xref.RFC2183.3"><cite title="Communicating Presentation Information in Internet Messages: The Content-Disposition Header Field">[RFC2183]</cite></a>, <a href="">Section 2.8</a>).
635      </p>
636      <h2 id="rfc.section.3.5"><a href="#rfc.section.3.5">3.5</a>&nbsp;<a id="extensibility" href="#extensibility">Extensibility</a></h2>
637      <p id="rfc.section.3.5.p.1">Note that <a href="">Section 9</a> of <a href="#RFC2183" id="rfc.xref.RFC2183.4"><cite title="Communicating Presentation Information in Internet Messages: The Content-Disposition Header Field">[RFC2183]</cite></a> defines IANA registries both for disposition types and disposition parameters. This registry is shared by different protocols
638         using Content-Disposition, such as MIME and HTTP. Therefore, not all registered values may make sense in the context of HTTP.
639      </p>
640      <h1 id="rfc.section.4"><a href="#rfc.section.4">4.</a>&nbsp;<a id="examples" href="#examples">Examples</a></h1>
641      <div id="rfc.figure.u.4"></div>
642      <p>Direct UA to show "save as" dialog, with a filename of "example.html":</p>  <pre class="text">Content-Disposition: Attachment; filename=example.html
643</pre><div id="rfc.figure.u.5"></div>
644      <p>Direct UA to behave as if the Content-Disposition header field wasn't present, but to remember the filename "an example.html"
645         for a subsequent save operation:
646      </p>  <pre class="text">Content-Disposition: INLINE; FILENAME= "an example.html"
647</pre>  <p>Note: this uses the quoted-string form so that the space character can be included.</p>
648      <div id="rfc.figure.u.6"></div>
649      <p>Direct UA to show "save as" dialog, with a filename containing the Unicode character U+20AC (EURO SIGN):</p>  <pre class="text">Content-Disposition: attachment;
650                     filename*= UTF-8''<b>%e2%82%ac</b>%20rates
651</pre>  <p>Here, the encoding defined in <a href="#RFC5987" id="rfc.xref.RFC5987.4"><cite title="Character Set and Language Encoding for Hypertext Transfer Protocol (HTTP) Header Field Parameters">[RFC5987]</cite></a> is also used to encode the non-ISO-8859-1 character.
652      </p>
653      <div id="rfc.figure.u.7"></div>
654      <p>Same as above, but adding the "filename" parameter for compatibility with user agents not implementing RFC 5987:</p>  <pre class="text">Content-Disposition: attachment;
655                     filename="EURO rates";
656                     filename*=utf-8''<b>%e2%82%ac</b>%20rates
657</pre>  <p>Note: as of November 2010, those user agents that do not support the RFC 5987 encoding ignore "filename*" when it occurs after
658         "filename". Unfortunately, some user agents that do support RFC 5987 do pick the "filename" rather than the "filename*" parameter
659         when it occurs first; it is expected that this situation is going to improve soon.
660      </p>
661      <h1 id="rfc.section.5"><a href="#rfc.section.5">5.</a>&nbsp;<a id="i18n" href="#i18n">Internationalization Considerations</a></h1>
662      <p id="rfc.section.5.p.1">The "filename*" parameter (<a href="#disposition.parameter.filename" title="Disposition Parameter: 'Filename'">Section&nbsp;3.3</a>), using the encoding defined in <a href="#RFC5987" id="rfc.xref.RFC5987.5"><cite title="Character Set and Language Encoding for Hypertext Transfer Protocol (HTTP) Header Field Parameters">[RFC5987]</cite></a>, allows the server to transmit characters outside the ISO-8859-1 character set, and also to optionally specify the language
663         in use.
664      </p>
665      <p id="rfc.section.5.p.2">Future parameters might also require internationalization, in which case the same encoding can be used.</p>
666      <h1 id="rfc.section.6"><a href="#rfc.section.6">6.</a>&nbsp;<a id="security.considerations" href="#security.considerations">Security Considerations</a></h1>
667      <p id="rfc.section.6.p.1">Using server-supplied information for constructing local filenames introduces many risks. These are summarized in <a href="#disposition.parameter.filename" title="Disposition Parameter: 'Filename'">Section&nbsp;3.3</a>.
668      </p>
669      <p id="rfc.section.6.p.2">Furthermore, implementers also ought to be aware of the Security Considerations applying to HTTP (see <a href="">Section 15</a> of <a href="#RFC2616" id="rfc.xref.RFC2616.9"><cite title="Hypertext Transfer Protocol -- HTTP/1.1">[RFC2616]</cite></a>), and also the parameter encoding defined in <a href="#RFC5987" id="rfc.xref.RFC5987.6"><cite title="Character Set and Language Encoding for Hypertext Transfer Protocol (HTTP) Header Field Parameters">[RFC5987]</cite></a> (see <a href="" id="rfc.xref.RFC5987.7">Section 5</a>).
670      </p>
671      <h1 id="rfc.section.7"><a href="#rfc.section.7">7.</a>&nbsp;<a id="iana.considerations" href="#iana.considerations">IANA Considerations</a></h1>
672      <h2 id="rfc.section.7.1"><a href="#rfc.section.7.1">7.1</a>&nbsp;<a id="registry" href="#registry">Registry for Disposition Values and Parameter</a></h2>
673      <p id="rfc.section.7.1.p.1">This specification does not introduce any changes to the registration procedures for disposition values and parameters that
674         are defined in <a href="">Section 9</a> of <a href="#RFC2183" id="rfc.xref.RFC2183.5"><cite title="Communicating Presentation Information in Internet Messages: The Content-Disposition Header Field">[RFC2183]</cite></a>.
675      </p>
676      <h2 id="rfc.section.7.2"><a href="#rfc.section.7.2">7.2</a>&nbsp;<a id="header.field.registration" href="#header.field.registration">Header Field Registration</a></h2>
677      <p id="rfc.section.7.2.p.1">This document updates the definition of the Content-Disposition HTTP header field in the permanent HTTP header field registry
678         (see <a href="#RFC3864" id="rfc.xref.RFC3864.1"><cite title="Registration Procedures for Message Header Fields">[RFC3864]</cite></a>).
679      </p>
680      <p id="rfc.section.7.2.p.2"> </p>
681      <dl>
682         <dt>Header field name:</dt>
683         <dd>Content-Disposition</dd>
684         <dt>Applicable protocol:</dt>
685         <dd>http</dd>
686         <dt>Status:</dt>
687         <dd>standard</dd>
688         <dt>Author/Change controller:</dt>
689         <dd>IETF</dd>
690         <dt>Specification document:</dt>
691         <dd>this specification (<a href="#header.field.definition" id="rfc.xref.header.field.definition.1" title="Header Field Definition">Section&nbsp;3</a>)
692         </dd>
693      </dl>
694      <h1 id="rfc.section.8"><a href="#rfc.section.8">8.</a>&nbsp;Acknowledgements
695      </h1>
696      <p id="rfc.section.8.p.1">Thanks to Adam Barth, Rolf Eike Beer, Bjoern Hoehrmann, Alfred Hoenes, Roar Lauritzsen, Henrik Nordstrom, and Mark Nottingham
697         for their valuable feedback.
698      </p>
699      <h1 id="rfc.references"><a id="rfc.section.9" href="#rfc.section.9">9.</a> References
700      </h1>
701      <h2 id="rfc.references.1"><a href="#rfc.section.9.1" id="rfc.section.9.1">9.1</a> Normative References
702      </h2>
703      <table>       
704         <tr>
705            <td class="reference"><b id="ISO-8859-1">[ISO-8859-1]</b></td>
706            <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&nbsp;8859-1:1998, 1998.</td>
707         </tr>
708         <tr>
709            <td class="reference"><b id="RFC2119">[RFC2119]</b></td>
710            <td class="top"><a href="" title="Harvard University">Bradner, S.</a>, “<a href="">Key words for use in RFCs to Indicate Requirement Levels</a>”, BCP&nbsp;14, RFC&nbsp;2119, March&nbsp;1997.
711            </td>
712         </tr>
713         <tr>
714            <td class="reference"><b id="RFC2616">[RFC2616]</b></td>
715            <td class="top"><a href="" title="University of California, Irvine">Fielding, R.</a>, <a href="" title="W3C">Gettys, J.</a>, <a href="" title="Compaq Computer Corporation">Mogul, J.</a>, <a href="" title="MIT Laboratory for Computer Science">Frystyk, H.</a>, <a href="" title="Xerox Corporation">Masinter, L.</a>, <a href="" title="Microsoft Corporation">Leach, P.</a>, and <a href="" title="W3C">T. Berners-Lee</a>, “<a href="">Hypertext Transfer Protocol -- HTTP/1.1</a>”, RFC&nbsp;2616, June&nbsp;1999.
716            </td>
717         </tr>
718         <tr>
719            <td class="reference"><b id="RFC5987">[RFC5987]</b></td>
720            <td class="top"><a href="" title="greenbytes GmbH">Reschke, J.</a>, “<a href="">Character Set and Language Encoding for Hypertext Transfer Protocol (HTTP) Header Field Parameters</a>”, RFC&nbsp;5987, August&nbsp;2010.
721            </td>
722         </tr>
723      </table>
724      <h2 id="rfc.references.2"><a href="#rfc.section.9.2" id="rfc.section.9.2">9.2</a> Informative References
725      </h2>
726      <table>               
727         <tr>
728            <td class="reference"><b id="RFC2046">[RFC2046]</b></td>
729            <td class="top"><a href="" title="Innosoft International, Inc.">Freed, N.</a> and <a href="" title="First Virtual Holdings">N. Borenstein</a>, “<a href="">Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types</a>”, RFC&nbsp;2046, November&nbsp;1996.
730            </td>
731         </tr>
732         <tr>
733            <td class="reference"><b id="RFC2047">[RFC2047]</b></td>
734            <td class="top"><a href="" title="University of Tennessee">Moore, K.</a>, “<a href="">MIME (Multipurpose Internet Mail Extensions) Part Three: Message Header Extensions for Non-ASCII Text</a>”, RFC&nbsp;2047, November&nbsp;1996.
735            </td>
736         </tr>
737         <tr>
738            <td class="reference"><b id="RFC2183">[RFC2183]</b></td>
739            <td class="top"><a href="" title="New Century Systems">Troost, R.</a>, <a href="" title="QUALCOMM Incorporated">Dorner, S.</a>, and <a href="" title="Department of Computer Science">K. Moore</a>, “<a href="">Communicating Presentation Information in Internet Messages: The Content-Disposition Header Field</a>”, RFC&nbsp;2183, August&nbsp;1997.
740            </td>
741         </tr>
742         <tr>
743            <td class="reference"><b id="RFC2231">[RFC2231]</b></td>
744            <td class="top"><a href="" title="Innosoft International, Inc.">Freed, N.</a> and <a href="" title="University of Tennessee">K. Moore</a>, “<a href="">MIME Parameter Value and Encoded Word Extensions: Character Sets, Languages, and Continuations</a>”, RFC&nbsp;2231, November&nbsp;1997.
745            </td>
746         </tr>
747         <tr>
748            <td class="reference"><b id="RFC2388">[RFC2388]</b></td>
749            <td class="top"><a href="" title="Xerox Palo Alto Research Center">Masinter, L.</a>, “<a href="">Returning Values from Forms: multipart/form-data</a>”, RFC&nbsp;2388, August&nbsp;1998.
750            </td>
751         </tr>
752         <tr>
753            <td class="reference"><b id="RFC3864">[RFC3864]</b></td>
754            <td class="top"><a href="" title="Nine by Nine">Klyne, G.</a>, <a href="" title="BEA Systems">Nottingham, M.</a>, and <a href="" title="HP Labs">J. Mogul</a>, “<a href="">Registration Procedures for Message Header Fields</a>”, BCP&nbsp;90, RFC&nbsp;3864, September&nbsp;2004.
755            </td>
756         </tr>
757         <tr>
758            <td class="reference"><b id="RFC3986">[RFC3986]</b></td>
759            <td class="top"><a href="" title="World Wide Web Consortium">Berners-Lee, T.</a>, <a href="" title="Day Software">Fielding, R.</a>, and <a href="" title="Adobe Systems Incorporated">L. Masinter</a>, “<a href="">Uniform Resource Identifier (URI): Generic Syntax</a>”, STD&nbsp;66, RFC&nbsp;3986, January&nbsp;2005.
760            </td>
761         </tr>
762      </table>
763      <div class="avoidbreak">
764         <h1 id="rfc.authors"><a href="#rfc.authors">Author's Address</a></h1>
765         <address class="vcard"><span class="vcardline"><span class="fn">Julian F. Reschke</span><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>&nbsp;<span class="postal-code">48155</span></span><span class="country-name vcardline">Germany</span></span><span class="vcardline">Email: <a href=""><span class="email"></span></a></span><span class="vcardline">URI: <a href="" class="url"></a></span></address>
766      </div>
767      <h1 id="rfc.section.A" class="np"><a href="#rfc.section.A">A.</a>&nbsp;<a id="changes.from.rfc2616" href="#changes.from.rfc2616">Changes from the RFC 2616 Definition</a></h1>
768      <p id="rfc.section.A.p.1">Compared to <a href="">Section 19.5.1</a> of <a href="#RFC2616" id="rfc.xref.RFC2616.10"><cite title="Hypertext Transfer Protocol -- HTTP/1.1">[RFC2616]</cite></a>, the following normative changes reflecting actual implementations have been made:
769      </p>
770      <ul>
771         <li>According to RFC 2616, the disposition type "attachment" only applies to content of type "application/octet-stream". This
772            restriction has been removed, because user agents in practice do not check the content type, and it also discourages properly
773            declaring the media type.
774         </li>
775         <li>RFC 2616 only allows "quoted-string" for the filename parameter. This would be an exceptional parameter syntax, and also doesn't
776            reflect actual use.
777         </li>
778         <li>The definition for the disposition type "inline" (<a href="#RFC2183" id="rfc.xref.RFC2183.6"><cite title="Communicating Presentation Information in Internet Messages: The Content-Disposition Header Field">[RFC2183]</cite></a>, <a href="">Section 2.1</a>) has been re-added with a suggestion for its processing.
779         </li>
780         <li>This specification requires support for the extended parameter encoding defined in <a href="#RFC5987" id="rfc.xref.RFC5987.8"><cite title="Character Set and Language Encoding for Hypertext Transfer Protocol (HTTP) Header Field Parameters">[RFC5987]</cite></a>.
781         </li>
782      </ul>
783      <h1 id="rfc.section.B"><a href="#rfc.section.B">B.</a>&nbsp;<a id="" href="">Differences compared to RFC 2183</a></h1>
784      <p id="rfc.section.B.p.1"> <a href="">Section 2</a> of <a href="#RFC2183" id="rfc.xref.RFC2183.7"><cite title="Communicating Presentation Information in Internet Messages: The Content-Disposition Header Field">[RFC2183]</cite></a> defines several additional disposition parameters: "creation-date", "modification-date", "quoted-date-time", and "size". The
785         majority of user agents does not implement these, thus they have been omitted from this specification.
786      </p>
787      <h1 id="rfc.section.C"><a href="#rfc.section.C">C.</a>&nbsp;<a id="alternatives" href="#alternatives">Alternative Approaches to Internationalization</a></h1>
788      <p id="rfc.section.C.p.1">By default, HTTP header field parameters cannot carry characters outside the ISO-8859-1 (<a href="#ISO-8859-1" id="rfc.xref.ISO-8859-1.2"><cite title="Information technology -- 8-bit single-byte coded graphic character sets -- Part 1: Latin alphabet No. 1">[ISO-8859-1]</cite></a>) character encoding (see <a href="#RFC2616" id="rfc.xref.RFC2616.11"><cite title="Hypertext Transfer Protocol -- HTTP/1.1">[RFC2616]</cite></a>, <a href="">Section 2.2</a>). For the "filename" parameter, this of course is an unacceptable restriction.
789      </p>
790      <p id="rfc.section.C.p.2">Unfortunately, user agent implementers have not managed to come up with an interoperable approach, although the IETF Standards
791         Track specifies exactly one solution (<a href="#RFC2231" id="rfc.xref.RFC2231.1"><cite title="MIME Parameter Value and Encoded Word Extensions: Character Sets, Languages, and Continuations">[RFC2231]</cite></a>, clarified and profiled for HTTP in <a href="#RFC5987" id="rfc.xref.RFC5987.9"><cite title="Character Set and Language Encoding for Hypertext Transfer Protocol (HTTP) Header Field Parameters">[RFC5987]</cite></a>).
792      </p>
793      <p id="rfc.section.C.p.3">For completeness, the sections below describe the various approaches that have been tried, and explains how they are inferior
794         to the RFC 5987 encoding used in this specification.
795      </p>
796      <h2 id="rfc.section.C.1"><a href="#rfc.section.C.1">C.1</a>&nbsp;<a id="alternatives.rfc2047" href="#alternatives.rfc2047">RFC 2047 Encoding</a></h2>
797      <p id="rfc.section.C.1.p.1">RFC 2047 defines an encoding mechanism for header fields, but this encoding is not supposed to be used for header field parameters
798         - see <a href="">Section 5</a> of <a href="#RFC2047" id="rfc.xref.RFC2047.1"><cite title="MIME (Multipurpose Internet Mail Extensions) Part Three: Message Header Extensions for Non-ASCII Text">[RFC2047]</cite></a>:
799      </p>
800      <blockquote id="rfc.section.C.1.p.2" cite="">
801         <p>An 'encoded-word' MUST NOT appear within a 'quoted-string'.</p> 
802         <p>...</p> 
803         <p>An 'encoded-word' MUST NOT be used in parameter of a MIME Content-Type or Content-Disposition field, or in any structured
804            field body except within a 'comment' or 'phrase'.
805         </p>
806      </blockquote>
807      <p id="rfc.section.C.1.p.3">In practice, some user agents implement the encoding, some do not (exposing the encoded string to the user), and some get
808         confused by it.
809      </p>
810      <h2 id="rfc.section.C.2"><a href="#rfc.section.C.2">C.2</a>&nbsp;<a id="alternatives.percent" href="#alternatives.percent">Percent Encoding</a></h2>
811      <p id="rfc.section.C.2.p.1">Some user agents accept percent encoded (<a href="#RFC3986" id="rfc.xref.RFC3986.1"><cite title="Uniform Resource Identifier (URI): Generic Syntax">[RFC3986]</cite></a>, <a href="">Section 2.1</a>) sequences of characters. The character encoding being used for decoding depends on various factors, including the encoding
812         of the referring page, the user agent's locale, its configuration, and also the actual value of the parameter.
813      </p>
814      <p id="rfc.section.C.2.p.2">In practice, this is hard to use because those user agents that do not support it will display the escaped character sequence
815         to the user. For those user agents that do implement this it is difficult to predict what character encoding they actually
816         expect.
817      </p>
818      <h2 id="rfc.section.C.3"><a href="#rfc.section.C.3">C.3</a>&nbsp;<a id="alternatives.sniff" href="#alternatives.sniff">Encoding Sniffing</a></h2>
819      <p id="rfc.section.C.3.p.1">Some user agents inspect the value (which defaults to ISO-8859-1 for the quoted-string form) and switch to UTF-8 when it seems
820         to be more likely to be the correct interpretation.
821      </p>
822      <p id="rfc.section.C.3.p.2">As with the approaches above, this is not interoperable and furthermore risks misinterpreting the actual value.</p>
823      <h2 id="rfc.section.C.4"><a href="#rfc.section.C.4">C.4</a>&nbsp;<a id="alternatives.implementations" href="#alternatives.implementations">Implementations (to be removed by RFC Editor before publication)</a></h2>
824      <p id="rfc.section.C.4.p.1">Unfortunately, as of November 2010, neither the encoding defined in RFCs 2231 and 5987, nor any of the alternate approaches
825         discussed above was implemented interoperably. Thus, this specification recommends the approach defined in RFC 5987, which
826         at least has the advantage of actually being specified properly.
827      </p>
828      <p id="rfc.section.C.4.p.2">The table below shows the implementation support for the various approaches:</p>
829      <div id="rfc.table.u.1">
830         <table class="tt full left" cellpadding="3" cellspacing="0">
831            <thead>
832               <tr>
833                  <th>User Agent</th>
834                  <th>RFC 2231/5987</th>
835                  <th>RFC 2047</th>
836                  <th>Percent Encoding</th>
837                  <th>Encoding Sniffing</th>
838               </tr>
839            </thead>
840            <tbody>
841               <tr>
842                  <td class="left">Chrome</td>
843                  <td class="left">no (*)</td>
844                  <td class="left">yes</td>
845                  <td class="left">yes</td>
846                  <td class="left">yes</td>
847               </tr>
848               <tr>
849                  <td class="left">Firefox</td>
850                  <td class="left">yes (**)</td>
851                  <td class="left">yes</td>
852                  <td class="left">no</td>
853                  <td class="left">yes</td>
854               </tr>
855               <tr>
856                  <td class="left">Internet Explorer</td>
857                  <td class="left">no</td>
858                  <td class="left">no</td>
859                  <td class="left">yes</td>
860                  <td class="left">no</td>
861               </tr>
862               <tr>
863                  <td class="left">Konqueror</td>
864                  <td class="left">yes</td>
865                  <td class="left">no</td>
866                  <td class="left">no</td>
867                  <td class="left">no</td>
868               </tr>
869               <tr>
870                  <td class="left">Opera</td>
871                  <td class="left">yes</td>
872                  <td class="left">no</td>
873                  <td class="left">no</td>
874                  <td class="left">no</td>
875               </tr>
876               <tr>
877                  <td class="left">Safari</td>
878                  <td class="left">no</td>
879                  <td class="left">no</td>
880                  <td class="left">no</td>
881                  <td class="left">yes</td>
882               </tr>
883            </tbody>
884         </table>
885      </div>
886      <p id="rfc.section.C.4.p.3">(*) But currently being implemented.</p>
887      <p id="rfc.section.C.4.p.4">(**) Does not implement the fallback behavior to "filename" described in <a href="#disposition.parameter.filename" title="Disposition Parameter: 'Filename'">Section&nbsp;3.3</a>.
888      </p>
889      <h1 id="rfc.section.D"><a href="#rfc.section.D">D.</a>&nbsp;<a id="change.log" href="#change.log">Change Log (to be removed by RFC Editor before publication)</a></h1>
890      <p id="rfc.section.D.p.1">Note: the issues names in the change log entries for draft-reschke-rfc2183-in-http refer to &lt;<a href=""></a>&gt;.
891      </p>
892      <h2 id="rfc.section.D.1"><a href="#rfc.section.D.1">D.1</a>&nbsp;Since draft-reschke-rfc2183-in-http-00
893      </h2>
894      <p id="rfc.section.D.1.p.1">Adjust terminology ("header" -&gt; "header field"). Update rfc2231-in-http reference.</p>
895      <h2 id="rfc.section.D.2"><a href="#rfc.section.D.2">D.2</a>&nbsp;Since draft-reschke-rfc2183-in-http-01
896      </h2>
897      <p id="rfc.section.D.2.p.1">Update rfc2231-in-http reference. Actually define the "filename" parameter. Add internationalization considerations. Add examples
898         using the RFC 5987 encoding. Add overview over other approaches, plus a table reporting implementation status. Add and resolve
899         issue "nodep2183". Add issues "asciivsiso", "deplboth", "quoted", and "registry".
900      </p>
901      <h2 id="rfc.section.D.3"><a href="#rfc.section.D.3">D.3</a>&nbsp;Since draft-reschke-rfc2183-in-http-02
902      </h2>
903      <p id="rfc.section.D.3.p.1">Add and close issue "docfallback". Close issues "asciivsiso", "deplboth", "quoted", and "registry".</p>
904      <h2 id="rfc.section.D.4"><a href="#rfc.section.D.4">D.4</a>&nbsp;Since draft-reschke-rfc2183-in-http-03
905      </h2>
906      <p id="rfc.section.D.4.p.1">Updated to be a Working Draft of the IETF HTTPbis Working Group.</p>
907      <h2 id="rfc.section.D.5"><a href="#rfc.section.D.5">D.5</a>&nbsp;<a id="changes.since.00" href="#changes.since.00">Since draft-ietf-httpbis-content-disp-00</a></h2>
908      <p id="rfc.section.D.5.p.1">Closed issues: </p>
909      <ul>
910         <li> &lt;<a href=""></a>&gt;: "handling of unknown disposition types"
911         </li>
912      </ul>
913      <p id="rfc.section.D.5.p.2">Slightly updated the notes about the proposed fallback behavior.</p>
914      <h2 id="rfc.section.D.6"><a href="#rfc.section.D.6">D.6</a>&nbsp;<a id="changes.since.01" href="#changes.since.01">Since draft-ietf-httpbis-content-disp-01</a></h2>
915      <p id="rfc.section.D.6.p.1">Various editorial improvements.</p>
916      <h2 id="rfc.section.D.7"><a href="#rfc.section.D.7">D.7</a>&nbsp;<a id="changes.since.02" href="#changes.since.02">Since draft-ietf-httpbis-content-disp-02</a></h2>
917      <p id="rfc.section.D.7.p.1">Closed issues: </p>
918      <ul>
919         <li> &lt;<a href=""></a>&gt;: "state that repeating parameters are invalid"
920         </li>
921         <li> &lt;<a href=""></a>&gt;: "warn about %xx in filenames being misinterpreted"
922         </li>
923         <li> &lt;<a href=""></a>&gt;: "mention control chars when talking about postprecessing the filename parameter"
924         </li>
925      </ul>
926      <p id="rfc.section.D.7.p.2">Update <a href="#alternatives.implementations" title="Implementations (to be removed by RFC Editor before publication)">Appendix&nbsp;C.4</a>; Opera 10.63 RC implements the recommended fallback behavior.
927      </p>
928      <h2 id="rfc.section.D.8"><a href="#rfc.section.D.8">D.8</a>&nbsp;<a id="changes.since.03" href="#changes.since.03">Since draft-ietf-httpbis-content-disp-03</a></h2>
929      <p id="rfc.section.D.8.p.1">Closed issues: </p>
930      <ul>
931         <li> &lt;<a href=""></a>&gt;: "'modification-date' *is* implemented in Konq 4.5"
932         </li>
933         <li> &lt;<a href=""></a>&gt;: "clarify what LWS means for the Content-Disp grammar"
934         </li>
935         <li> &lt;<a href=""></a>&gt;: "Avoid passive voice in message requirements"
936         </li>
937         <li> &lt;<a href=""></a>&gt;: "text about historical percent-decoding unclear"
938         </li>
939         <li> &lt;<a href=""></a>&gt;: "add explanation of language tagging"
940         </li>
941         <li> &lt;<a href=""></a>&gt;: "Clarify that C-D spec does not apply to multipart upload"
942         </li>
943      </ul>
944      <h1 id="rfc.index"><a href="#rfc.index">Index</a></h1>
945      <p class="noprint"><a href="#rfc.index.C">C</a> <a href="#rfc.index.H">H</a> <a href="#rfc.index.I">I</a> <a href="#rfc.index.R">R</a>
946      </p>
947      <div class="print2col">
948         <ul class="ind">
949            <li><a id="rfc.index.C" href="#rfc.index.C"><b>C</b></a><ul>
950                  <li>Content-Disposition header&nbsp;&nbsp;<a href="#rfc.iref.c.1"><b>3</b></a>, <a href="#rfc.xref.header.field.definition.1">7.2</a></li>
951               </ul>
952            </li>
953            <li><a id="rfc.index.H" href="#rfc.index.H"><b>H</b></a><ul>
954                  <li>Headers&nbsp;&nbsp;
955                     <ul>
956                        <li>Content-Disposition&nbsp;&nbsp;<a href="#rfc.iref.h.1"><b>3</b></a>, <a href="#rfc.xref.header.field.definition.1">7.2</a></li>
957                     </ul>
958                  </li>
959               </ul>
960            </li>
961            <li><a id="rfc.index.I" href="#rfc.index.I"><b>I</b></a><ul>
962                  <li><em>ISO-8859-1</em>&nbsp;&nbsp;<a href="#rfc.xref.ISO-8859-1.1">3.3</a>, <a href="#ISO-8859-1"><b>9.1</b></a>, <a href="#rfc.xref.ISO-8859-1.2">C</a></li>
963               </ul>
964            </li>
965            <li><a id="rfc.index.R" href="#rfc.index.R"><b>R</b></a><ul>
966                  <li><em>RFC2046</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC2046.1">3.3</a>, <a href="#RFC2046"><b>9.2</b></a></li>
967                  <li><em>RFC2047</em>&nbsp;&nbsp;<a href="#RFC2047"><b>9.2</b></a>, <a href="#rfc.xref.RFC2047.1">C.1</a><ul>
968                        <li><em>Section 5</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC2047.1">C.1</a></li>
969                     </ul>
970                  </li>
971                  <li><em>RFC2119</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC2119.1">2</a>, <a href="#RFC2119"><b>9.1</b></a></li>
972                  <li><em>RFC2183</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC2183.1">1</a>, <a href="#rfc.xref.RFC2183.2">3.2</a>, <a href="#rfc.xref.RFC2183.3">3.4</a>, <a href="#rfc.xref.RFC2183.4">3.5</a>, <a href="#rfc.xref.RFC2183.5">7.1</a>, <a href="#RFC2183"><b>9.2</b></a>, <a href="#rfc.xref.RFC2183.6">A</a>, <a href="#rfc.xref.RFC2183.7">B</a><ul>
973                        <li><em>Section 2</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC2183.7">B</a></li>
974                        <li><em>Section 2.1</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC2183.6">A</a></li>
975                        <li><em>Section 2.8</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC2183.2">3.2</a>, <a href="#rfc.xref.RFC2183.3">3.4</a></li>
976                        <li><em>Section 9</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC2183.4">3.5</a>, <a href="#rfc.xref.RFC2183.5">7.1</a></li>
977                     </ul>
978                  </li>
979                  <li><em>RFC2231</em>&nbsp;&nbsp;<a href="#RFC2231"><b>9.2</b></a>, <a href="#rfc.xref.RFC2231.1">C</a></li>
980                  <li><em>RFC2388</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC2388.1">1</a>, <a href="#RFC2388"><b>9.2</b></a></li>
981                  <li><em>RFC2616</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC2616.1">1</a>, <a href="#rfc.xref.RFC2616.2">1</a>, <a href="#rfc.xref.RFC2616.3">2</a>, <a href="#rfc.xref.RFC2616.4">3.1</a>, <a href="#rfc.xref.RFC2616.5">3.1</a>, <a href="#rfc.xref.RFC2616.6">3.1</a>, <a href="#rfc.xref.RFC2616.7">3.1</a>, <a href="#rfc.xref.RFC2616.8">3.1</a>, <a href="#rfc.xref.RFC2616.9">6</a>, <a href="#RFC2616"><b>9.1</b></a>, <a href="#rfc.xref.RFC2616.10">A</a>, <a href="#rfc.xref.RFC2616.11">C</a><ul>
982                        <li><em>Section 2.1</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC2616.3">2</a>, <a href="#rfc.xref.RFC2616.8">3.1</a></li>
983                        <li><em>Section 2.2</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC2616.5">3.1</a>, <a href="#rfc.xref.RFC2616.6">3.1</a>, <a href="#rfc.xref.RFC2616.11">C</a></li>
984                        <li><em>Section 3.6</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC2616.7">3.1</a></li>
985                        <li><em>Section 15.5</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC2616.2">1</a></li>
986                        <li><em>Section 15</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC2616.9">6</a></li>
987                        <li><em>Section 19.5.1</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC2616.1">1</a>, <a href="#rfc.xref.RFC2616.10">A</a></li>
988                     </ul>
989                  </li>
990                  <li><em>RFC3864</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC3864.1">7.2</a>, <a href="#RFC3864"><b>9.2</b></a></li>
991                  <li><em>RFC3986</em>&nbsp;&nbsp;<a href="#RFC3986"><b>9.2</b></a>, <a href="#rfc.xref.RFC3986.1">C.2</a><ul>
992                        <li><em>Section 2.1</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC3986.1">C.2</a></li>
993                     </ul>
994                  </li>
995                  <li><em>RFC5987</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC5987.1">3.1</a>, <a href="#rfc.xref.RFC5987.2">3.1</a>, <a href="#rfc.xref.RFC5987.3">3.3</a>, <a href="#rfc.xref.RFC5987.4">4</a>, <a href="#rfc.xref.RFC5987.5">5</a>, <a href="#rfc.xref.RFC5987.6">6</a>, <a href="#rfc.xref.RFC5987.7">6</a>, <a href="#RFC5987"><b>9.1</b></a>, <a href="#rfc.xref.RFC5987.8">A</a>, <a href="#rfc.xref.RFC5987.9">C</a><ul>
996                        <li><em>Section 3.2</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC5987.2">3.1</a></li>
997                        <li><em>Section 5</em>&nbsp;&nbsp;<a href="#rfc.xref.RFC5987.7">6</a></li>
998                     </ul>
999                  </li>
1000               </ul>
1001            </li>
1002         </ul>
1003      </div>
1004   </body>
Note: See TracBrowser for help on using the repository browser.