在IE 5.5 / IIS 5.0中通过HTTPS下载文件 [英] Download file over HTTPS in IE 5.5 / IIS 5.0
问题描述
Internet Explorer无法从ServerName下载File.doc。
Internet资源管理器无法打开此网站,请求的网站不可用或无法找到,请稍后再试。
我在流媒体之前设置了Response.CacheControl =private,must-revalidate,max-age = 3600,但仍然给出错误。
注意:相同的代码在所有其他浏览器(如firefox和netscape)中都能完美运行。我在firefox中使用LiveHttpHeaders可以看到Response.CacheControl在firefox中自动设置。不幸的是,我无法在我的机器上安装Fiddler,但是我猜测问题是由于IIS默认标头CacheControl =no-cachefor https
我已经取消选中 IE中没有将加密的页面保存到磁盘选项。
我需要一个方法,因为该选项必须通过现有技术通过互联网向用户提供:(
I解决了在iis管理控制台的http标头选项卡上检查启用内容到期的类似问题。
I desperately need help with this one. I have a classic ASP website in IIS 5, where I need to stream pdf to users. I am using ADODB.Stream to generate chunks of binary data and using response.BinaryWrite to stream it to client. Now problem is that there is a known feature in IE which sets the Response CacheControl header to "no-cache" by default for SSL (https) sites. Hence I am getting the standard error:
"Internet Explorer cannot download File.doc from ServerName.
Internet Explorer was not able to open this Internet Site. The requested site is either unavailable or cannot be found. Please try again later."
I have set Response.CacheControl = "private,must-revalidate,max-age=3600" before streaming, but it still give the error.
Note: The same code works perfectly in all other browsers like firefox and netscape.I am using LiveHttpHeaders in firefox to see that Response.CacheControl is automatically set correctly in firefox. Unfortunately i cannot install Fiddler on my machine, but i am guessing problem is due to IIS default header CacheControl = "no-cache" for https
I have unchecked the "Do not save encrypted pages to disk" option in IE.
I need a way around this since the option has to be made available very soon to users over the internet with existing technology :(
maybe this could help: http://blogs.msdn.com/b/ieinternals/archive/2009/10/02/internet-explorer-cannot-download-over-https-when-no-cache.aspx
I solved a similar problem checking "enable content expiration" on the http headers tab of the iis management console.
这篇关于在IE 5.5 / IIS 5.0中通过HTTPS下载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!