Forum Moderators: phranque
You might want to search through some of the on-line MIME-type listing sites -- But I suggest doing so with a non-IE browser with all scripting support disabled, as some of them are less than reputable.
Jim
The option to open or download is typically the user's choice. Your best option is to instruct a user how to download the file if anything. But can you force a download? Depends on the browser and the headers you send to it.
If you want the user to be prompted to save the data you are sending you can use the Content-Disposition [faqs.org] header to supply a recommended filename and possibly force the browser to display the save dialog.
Link to download file - not open it automatically [webmasterworld.com]