Quote:
Originally posted by Latch
Nevermind.. you make the Content-Type header a application/attachment or something like that.
Problem is, it requires a bit of Perl or something-else code so when a link is clicked on it generates a "new page" that is the file and sends it to your browser with that Content-Type (it may be Content-Disposition). Your browser prompts you with what you want to do with the file. I think this works regardless of browser.
|
Nope. It's Content-Type, for sure. But you can set it to "Content-type: X-Shoveit/Up-Yourass" for all it matters to Internet Explorer. That's the very string that you're changing with by manually setting the MIME type in the server's types file. Changing it with Perl or some other server-side scripting mechanism changes nothing.
Every document downloaded has one of those, by the way. The page you're looking at right here had a header sent from tfproject.org to your browser that read "Content-type: text/html\n\n". That "profile" button to the lower left of these words was "Content-type: image/gif\n\n". The server knows what to say by consulting its MIME types file against the extension of the file being sent.