[英]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.