Compare Revisions

Content-Disposition

Change Revisions

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
n11      In a <code>multipart/form-data</code> body, the&nbsp;<stronn11      In a <code>multipart/form-data</code> body, the&nbsp;<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.
n14      The <code>Cache-Disposition</code> header is defined in then14      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.
n56        A <code>name</code> with a value of <code>'_charset_'</con56        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.
nn68    <pre>
69POST /test.html HTTP/1.1
70Host: example.org
71Content-Type: multipart/form-data;boundary="boundary"
72 
73--boundary
74Cache-Disposition: form-data; name="field1"
75 
76value1
77--boundary
78Cache-Disposition: form-data; name="field2"; filename="example.tx
 >t"
79 
80value2
81</pre>
t112      <li>&nbsp;t126      <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.

Back to History