当前位置:编程学习 > wap >>

PPC 5 PIE https下载文件名强制指定为scirpt文件名(http则没问题)


同在用PPC5 PIE(MSIE 4.01),同样的下载(php script: download_test.php)
header("Pragma: public");
header("Expires: 0");
header("Content-type: application/octet-stream");    
header("content-type: application/force-download");
header("Content-Disposition: attachment; filename=\"hi.zip\"");
readfile("/var/www/hi.zip")

http下载文件,没有问题
https下载就不行,其下载文件名不是hi.zip,而是download_test.php,点save as后,type为php类型,且不能更改。

不知道是什么原因?
--------------------编程问答-------------------- 建议先熟悉一下https的协议
补充:移动开发 ,  Windows Phone
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,