Are the list of headers supported by the http-equiv
meta tags a limited subset, or does it accept literally anything that you could have as an http header?
Specifically, could I use content-disposition
?
Almost all meta
tags are ignored by browsers, search engines, and other software.
Even though the HTML 4.01 spec says that “HTTP servers use [the http-equiv
] attribute to gather information for HTTP response message headers”, this does not happen. (It happened for a few such attributes very long ago in some special servers.) Instead, meta
tags with http-equiv
attribute are recognized by browsers, but only in very few cases. The most important case is that http-equiv="Content-Type"
may be used to decide on character encoding, if it has been specified in actual HTTP headers.
In HTML5 drafts, meta
tags with http-equiv
attribute are called “pragma directives”, and an explicit list of allowed values is specified. All the rest are thus non-conforming (and, in practice, mostly write-only tags, ignored by browsers).
You cannot affect anything using content-disposition
there. To affect the way a browser deals with, say, a CSV file that you link to in your HTML document, there is probably nothing you can do in HTML. You would have to make the server send actual HTTP headers, typically so that your link refers to a server-side script that fetches the CSV file and sends it along with suitable HTTP headers.
my html page
`. I think the ones to explore are `Content-Type` and `Content-Disposition`, and then I think there could be hope in spoofing the MIMEtype to something which the browser knows it can't handle. Like if I make a mimetype of exe chromium can't really do anything with that except for offer the user to dump it into their FS. But then I wonder if I'll be restricted to using a `.exe` filename, y'know? – haxxerz Aug 02 '12 at 07:57