哪种MIME类型适合.exe文件? [英] Which MIME type is correct for the .exe file?

查看:563
本文介绍了哪种MIME类型适合.exe文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试查找与每个扩展名相对应的MIME类型,但结果不明确.

I try to find which MIME type corresponds to the each extension and I get ambiguous results.

根据 webdesign.about.com exe的正确MIME是:application/octet-stream

According to webdesign.about.com the correct MIME for exe is: application/octet-stream

根据 freeformatter.com exe的正确MIME是:application/x-msdownload,并说application/octet-streambin扩展名的MIME.

According to freeformatter.com the correct MIME for exe is: application/x-msdownload and it says that application/octet-stream is MIME for bin extension.

根据 iana.org 的正确MIME exe(或名为vnd.microsoft.portable-executable的东西,因为我在那儿看不到exe)是:application/vnd.microsoft.portable-executable

According to iana.org the correct MIME for exe (or something called vnd.microsoft.portable-executable as I don't see exe there) is: application/vnd.microsoft.portable-executable

哪个网站是最准确的网站,因为我不知道我应该在服务器标头中的HTTP标头中看到什么样的内容类型值.

Which website is the most accurate because I don't know what kind of content type value I should expect on the server site in the HTTP header.

推荐答案

application/vnd.microsoft.portable-executable 是已注册的MIME类型,其描述与您要使用的MIME类型相匹配.

application/vnd.microsoft.portable-executable is a registered MIME type and its description matches what you want to use it for.

application/x-msdownload中的x-前缀表明它是实验性,因此通常应避免使用它:特别是在这种情况下,如果有某种标准可用,则为

The x- prefix in application/x-msdownload indicates that it is experimental so it should generally be avoided: Especially if something standard is available as it in in this case.

application/octet-stream 用于收集个字节.它确实匹配可执行文件,但不像application/vnd.microsoft.portable-executable那样具体.

application/octet-stream is for arbitary collections of bytes. It does match an executable file, but it isn't as specific as application/vnd.microsoft.portable-executable.

使用application/vnd.microsoft.portable-executable .

这篇关于哪种MIME类型适合.exe文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆