IE访问HTTPS链接下载文件,IE提示无法下载 博客分类: J2EE 原因: (1) 在IE6/7下,使用HTTPS下载/打开文件时,通过抓包发现文件已传输,但IE提示“Internet E

来源:互联网 发布:北京国企工资 知乎 编辑:程序博客网 时间:2024/06/01 07:42

IE访问HTTPS链接下载文件,IE提示无法下载

    博客分类: 
  • J2EE
 原文http://llyzq.iteye.com/blog/1330642
原因: 
(1) 在IE6/7下,使用HTTPS下载/打开文件时,通过抓包发现文件已传输,但IE提示“Internet Explorer无法下载 *** (来自 ***)。Internet Explorer无法打开该Internet站点。请求的站点不可用,或找不到。请以后再试。” ("Unable to download. Internet Explorer was unable to open this site. The requested site is either unavailable or cannot be found. Please try again later."),下载失败。 


(2) 如果下载目标有一个hyperlink,当右键选择“目标另存为...”时,提示“Internet Explorer无法下载 *** (来自 ***)。无法将文件写入高速缓存”("The file could not be written to the cache"),下载失败。 

原因: 
参考Microsoft KB815313316431812935323308 

参考:http://www.51testing.com/?uid-160865-action-viewspace-itemid-209104 

解决方案: 
//确保IE识别本次为下载文件   
response.setHeader("Content-Transfer-Encoding","binary"); 
response.setHeader("Cache-Control", "must-revalidate, post-check=0, pre-check=0");  
response.setHeader("Pragma", "public");    

参考http://hi.baidu.com/%CD%F5%B7%EF%C4%FE/blog/item/28290d13d79ba82bdc540115.html
阅读全文
0 0
原创粉丝点击