简体   繁体   English

MIME和内容类型之间有区别吗?

[英]Is there a difference between MIME and content type?

While using the f12 tools on ie, when I request a web page, the response header has a content type. 在使用f12工具时,即,当我请求网页时,响应标头具有内容类型。 Can this also be called MIME type? 这也可以称为MIME类型吗? Or is there a difference? 或者有区别吗?

Strictly speaking MIME and content type are two different things. 严格来说, MIME和内容类型是两回事。 MIME is a set of standards that was written to extend the capabilities of email messages and has since been applied more broadly to internet content and HTTP. MIME是一组标准,旨在扩展电子邮件消息的功能,并且已广泛应用于互联网内容和HTTP。 Content type is a header used both in email messages and HTTP. 内容类型是电子邮件消息和HTTP中使用的标头。

Practically , however, content type and MIME type are used interchangeably. 但实际上 ,内容类型和MIME类型可以互换使用。

To answer your question : In your context, there is no difference. 回答你的问题 :在你的背景下,没有区别。

"Content-Type" is the name of the HTTP header field. “Content-Type”是HTTP标头字段的名称。 The proper technical term for the field value is "(Internet) Media Type" (it used to be "MIME type", but that's not correct anymore since HTTP != MIME). 字段值的正确技术术语是“(Internet)媒体类型”(它曾经是“MIME类型”,但由于HTTP!= MIME,这不再正确)。

Content-Type is a HTTP message header key and its value is (generally) a MIME Type. Content-Type是HTTP消息头密钥,其值(通常)是MIME类型。 Possible duplicate What's the difference between mediatype, contenttype and mimetype? 可能重复mediatype,contenttype和mimetype之间有什么区别?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Multipart 和 MIME 内容类型有什么区别? - What is the difference between Multipart and MIME content type? MIME,Internet媒体类型和HTTP有什么区别? - What is the difference between MIME, Internet media type and HTTP? 检测S3对象的Content-Type / MIME类型 - Detect Content-Type/MIME Type of an S3 Object 正则表达式:在内容类型http标头中匹配javascript mime类型 - regex: Matching a javascript mime type in content-type http header Content-Type ... charset = X和Content-Encoding = X有什么区别? - What is the difference between Content-Type…charset=X and Content-Encoding=X? queryParams 和 content-type 的区别:applciation/x-www-form-urlencoded - Difference between queryParams and content-type: applciation/x-www-form-urlencoded content-type: text/json 和 application/json 之间的确切区别是什么? - What is the exact difference between content-type: text/json and application/json? libcurl HTTP 请求在 MIME 数据中设置 content-disposition 和 content-type - libcurl HTTP request set content-disposition and content-type in MIME data Http 响应 Content-Type 是 json。 “无效的 MIME 类型”错误 - Http response Content-Type is json. Error for "Invalid mime type" 内容范围和范围标题之间的区别? - Difference between Content-Range and Range headers?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM