What are all the possible values for HTTP “Content-Type” header?
What are all the possible values for HTTP “Content-Type” header?
You can find every content type here: http://www.iana.org/assignments/media-types/media-types.xhtml
The most common type are:
-
Type application
application/EDI-X12 application/EDIFACT application/javascript application/octet-stream application/ogg application/pdf application/xhtml+xml application/x-shockwave-flash application/json application/ld+json application/xml application/zip application/x-www-form-urlencoded
-
Type audio
audio/mpeg audio/x-ms-wma audio/vnd.rn-realaudio audio/x-wav
-
Type image
image/gif image/jpeg image/png image/tiff image/vnd.microsoft.icon image/x-icon image/vnd.djvu image/svg+xml
-
Type multipart
multipart/mixed multipart/alternative multipart/related (using by MHTML (HTML mail).) multipart/form-data
-
Type text
text/css text/csv text/html text/javascript (obsolete) text/plain text/xml
-
Type video
video/mpeg video/mp4 video/quicktime video/x-ms-wmv video/x-msvideo video/x-flv video/webm
-
Type vnd :
application/vnd.oasis.opendocument.text application/vnd.oasis.opendocument.spreadsheet application/vnd.oasis.opendocument.presentation application/vnd.oasis.opendocument.graphics application/vnd.ms-excel application/vnd.openxmlformats-officedocument.spreadsheetml.sheet application/vnd.ms-powerpoint application/vnd.openxmlformats-officedocument.presentationml.presentation application/msword application/vnd.openxmlformats-officedocument.wordprocessingml.document application/vnd.mozilla.xul+xml
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type
The Content-Type
entity header is used to indicate the media type of the resource.
In responses, a Content-Type
header tells the client what the content type of the returned content actually is. Browsers will do MIME sniffing in some cases and will not necessarily follow the value of this header; to prevent this behavior, the header X-Content-Type-Options
can be set to nosniff
.
In requests, (such as POST
or PUT
), the client tells the server what type of data is actually sent.
It also needs to have a MIME type of its parsed value (ignoring parameters) of either application/x-www-form-urlencoded
, multipart/form-data
, or text/plain
.
作者:Chuck Lu GitHub |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· DeepSeek 开源周回顾「GitHub 热点速览」
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
2017-10-23 在Visual Studio Code中使用C#以及.net core
2015-10-23 CruiseControl.net
2015-10-23 求职
2014-10-23 object Add(object Before, object After, object Count, object Type);
2014-10-23 Excel中Application和ApplicationClass的区别
2014-10-23 Type.Missing和System.Reflection.Missing.Value
2014-10-23 excel依赖的dll