在IE 5.5 / IIS 5.0中通过HTTPS下载文件 [英] Download file over HTTPS in IE 5.5 / IIS 5.0

查看:135
本文介绍了在IE 5.5 / IIS 5.0中通过HTTPS下载文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我非常需要帮助这个。我在IIS 5中有一个经典的ASP网站,在那里我需要将pdf流式传输给用户。我使用ADODB.Stream生成二进制数据块,并使用response.BinaryWrite将其流式传输给客户端。现在的问题是,IE中有一个已知的功能,默认情况下将SSL缓存控制头设置为无缓存(SSL)。因此我得到标准错误:



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中没有将加密的页面保存到磁盘选项。



我需要一个方法,因为该选项必须通过现有技术通过互联网向用户提供:(

解决方案

也许这可以帮助:
http://blogs.msdn.com/b /ieinternals/archive/2009/10/02/internet-explorer-cannot-download-over-https-when-no-cache.aspx



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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆