这是一个创建于 4692 天前的主题,其中的信息可能已经有所发展或是发生改变。
4 条回复 • 1970-01-01 08:00:00 +08:00
![ayanamist](https://cdn.v2ex.com/avatar/252a/3dba/3578_normal.png?m=1438159414) |
|
1
ayanamist 2012-02-21 17:54:45 +08:00
给exe文件指定一个MIME
|
![Eysa](https://cdn.v2ex.com/avatar/cd31/09c6/5697_normal.png?m=1330852382) |
|
2
Eysa 2012-02-21 20:09:41 +08:00
@ ayanamist 貌似这样并不能再浏览器敲个url弹个下载框吧?
|
![Platinum](https://cdn.v2ex.com/avatar/b4a5/2895/701_normal.png?m=1335098559) |
|
3
Platinum 2012-02-21 20:14:00 +08:00
Content-type: application/octet-stream
|
![bitsmix](https://cdn.v2ex.com/avatar/978f/ce5b/2591_normal.png?m=1458402638) |
|
4
bitsmix 2012-02-21 20:51:15 +08:00
'Content-Disposition':'attachment; filename=[your file name]'
http response head 里面加上上面这个。
|