Compare Revisions
Content-Disposition
Revision 1086219:
Revision 1086219 by teoli on
Revision 1086461:
Revision 1086461 by teoli on
- Title:
- Cache-Disposition
- Cache-Disposition
- Slug:
- Web/HTTP/Headers/Cache-Disposition
- Web/HTTP/Headers/Cache-Disposition
- Tags:
- "HTTP" "Reference" "header"
- "HTTP" "Reference" "header"
- Comment:
- + charset
- First version completed
- Content:
-
Revision 1086219 Revision 1086461 n 11 In a <code>multipart/form-data</code> body, the <stron n 11 In a <code>multipart/form-data</code> body, the <stron > g><code>Cache-Disposition</code></strong> general header is a hea > g><code>Cache-Disposition</code></strong> general header is a hea > der that can be used on the subpart of a multipart body to give i > der that can be used on the subpart of a multipart body to give i > nformation about the field it applies to. > nformation about the field it applies to. The subpart is delimite > d by the <em>boundary</em> defined in the {{HTTPHeader("Content-T > ype")}} header. Use on the body itself, <code>Cache-Disposition</ > code> has no effect. n 14 The <code>Cache-Disposition</code> header is defined in the n 14 The <code>Cache-Disposition</code> header is defined in the > larger context of MIME messages for e-mail, but only a subset of > larger context of MIME messages for e-mail, but only a subset of > the possible parameters applies to HTTP Forms and {{HTTPMethod(" > the possible parameters applies to HTTP Forms and {{HTTPMethod(" > POST")}} requests. Only this subset is described in > POST")}} requests. Only the value <code>form-data</code>, as well > as the optional parameter <code>name</code> and <code>filename</ > code> can be used in the HTTP context. n 56 A <code>name</code> with a value of <code>'_charset_'</co n 56 A <code>name</code> with a value of <code>'_charset_'</co > de> indicated that the part is not an HTML field, but the default > de> indicate that the part is not an HTML field, but the default > charset to use for parts without explicit charset information. > charset to use for parts without explicit charset information. n n 68 <pre> 69 POST /test.html HTTP/1.1 70 Host: example.org 71 Content-Type: multipart/form-data;boundary="boundary" 72 73 --boundary 74 Cache-Disposition: form-data; name="field1" 75 76 value1 77 --boundary 78 Cache-Disposition: form-data; name="field2"; filename="example.tx > t" 79 80 value2 81 </pre> t 112 <li> t 126 <li>HTML Forms 127 </li> 128 <li>The {{HTTPHeader("Content-Type")}} defining the boundar > y of the multipart body. 129 </li> 130 <li>The {{domxref("FormData")}} interface used to manipulat > e form data for use in the {{domxref("XMLHttpRequest")}} API.