Download link to RDP file in IE9

I have a website containing a link to an RDP file. When the user clicks on the link, the file should be offered as a download. It works with every browser, also in IE9 on localhost. But in online mode, IE9 does not recognize the file type and file name, and clicking save saves an error. Did I forget the correct title? Or are there some reliable site settings that I have to change since it works on localhost?

When accessing the rdp file, I get the following headers:

Date: Mon, 19 Dec 2011 12:58:50 GMT Content-Disposition: attachment; filename="Demo_WIN.rdp" Content-Type: application/octet-stream;charset=UTF-8 Content-Length: 72 Keep-Alive: timeout=15, max=46 Connection: Keep-Alive username:s:Tester431 full address:s:176.1.2.3 domain:s:MYRDP 
+4
source share
1 answer

I think you need to set the content type to "application / rdp". Here are the relevant headers that I use that work in every browser I have tried, including IE9:

 Content-Type: application/rdp; charset=utf-8 Content-Disposition: attachment; filename=Application.rdp 
+8
source

Source: https://habr.com/ru/post/1387032/


All Articles