Content-Type: application/octet-stream 与 Content-Type: application/x-octet-stream

intwap 2008-12-19 11:01:42
Content-Type: application/octet-stream

Content-Type: application/x-octet-stream
啥区别啊

谁能解释一下 啊
...全文
2825 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
jingsong27 2009-06-24
  • 打赏
  • 举报
回复
也可以下载啊
Zijian_Zhang 2008-12-24
  • 打赏
  • 举报
回复
[Quote=引用楼主 intwap 的帖子:]
Content-Type: application/octet-stream

Content-Type: application/x-octet-stream
啥区别啊

谁能解释一下 啊
[/Quote]好像application/x-octet-stream是用在下载的,application/octet-stream只是声明二进制流。
iasky 2008-12-24
  • 打赏
  • 举报
回复
如果header设置为x-octet-stream,可以强制下载所有类型的文件


application/octet-stream: Arbitrary byte stream. This is thought of as the "default" media type used by several operating systems, often used to identify executable files, files of unknown type, or files that should be downloaded in protocols that do not provide a separate "content disposition" header. RFC 2046 specifies this as the fallback for unrecognized subtypes of other types.

21,886

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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