这应该是关于IE8下载问题的老问题。 我使用PHP来设置响应头像:
header("Pragma: public");
header("Expires: 0");
header("Content-type: application/octet-stream");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Length: ".strlen($content));
header("Content-Disposition: attachment; filename='$filename'");
并且连接被Fiddler捕获。
当我尝试在IE8(而不是SSL)中下载带有上述标题的文件时,消息框:
“Internet Explorer无法打开此Internet站点。请求的站点不可用或无法找到。” 弹出并下载停止。
我在网上搜索并尝试了很多解决方案,但似乎没有一个可行。 这个问题还有其他解决办法吗?
PS:我试过:删除标题中的响应标题/重置contentType /将网站添加到受信任的站点/设置“不将加密的页面保存到磁盘”为true。
谢谢。