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

fireatme 2007-03-26 02:17:23

同在用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类型,且不能更改。

不知道是什么原因?
...全文
222 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
sunwhite 2007-03-27
  • 打赏
  • 举报
回复
建议先熟悉一下https的协议

7,655

社区成员

发帖
与我相关
我的任务
社区描述
Windows Phone是微软发布的一款手机操作系统,它将微软旗下的Xbox LIVE游戏、Zune音乐与独特的视频体验整合至手机中。
社区管理员
  • Windows客户端开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧