You have a file for download, say a zip file, windows media (wmv), QuickTime mov file etc. You want the user to be prompted to save it to their hard disk, and not have the browser try to be smart and handle it in-line.
I'm not saying this is a good idea, just that I've been asked to have it work that way. This is almost certainly going to screw up in some browser, and who knows what the next version of Internet Explorer might do. So your mileage may vary...
This is designed to drop into either an Apache httpd.conf or .htaccess file. However, all it is doing is monkeying with the HTTP headers, so you should be able to achieve the same result in any webserver/language environment, provided you know how to alter the HTTP headers.
Header set Content-Disposition "attachment;"
<FilesMatch "\.wmv$">
ForceType video/x-ms-wmv
</FilesMatch>
The "Header set" forces the "save as" dialog, and if you are up for generating HTTP headers dynamically, you can append the filename you want to suggest after the attachment; otherwise it should default to whatever is in the url.
The FilesMatch stuff should stop IE trying to inline Windows Media Stuff, but she is a tempermental darling.