关于MIME的那点事
时间:2010-06-02 来源:huachong
firefox关于MIME的介绍
https://developer.mozilla.org/en/how_mozilla_determines_mime_types
我们要重点关注一下MIME探测。 我们注意这句话
Any HTTP/1.1 message containing an entity-body SHOULD include a Content-Type header field defining the media type of that body. If and only if the media type is not given by a Content-Type field, the recipient MAY attempt to guess the media type via inspection of its content and/or the name extension(s) of the URI used to identify the resource.
不过我们还是需要探测,即使给了Content-Type
这里讲解的更加详细
http://kb.mozillazine.org/File_types_and_download_actions
我们看看IE 的MIME 探测 http://netsecurity.51cto.com/art/200902/112190.htm
我们要重点关注一下MIME探测。 我们注意这句话
Any HTTP/1.1 message containing an entity-body SHOULD include a Content-Type header field defining the media type of that body. If and only if the media type is not given by a Content-Type field, the recipient MAY attempt to guess the media type via inspection of its content and/or the name extension(s) of the URI used to identify the resource.
不过我们还是需要探测,即使给了Content-Type
这里讲解的更加详细
http://kb.mozillazine.org/File_types_and_download_actions
我们看看IE 的MIME 探测 http://netsecurity.51cto.com/art/200902/112190.htm
相关阅读 更多 +