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
.
最新文章
- Ajaxtoolkit Combobox位置显示不对解决
- Z Fighting Problem
- linux动态网络和静态网络和克隆后的网络配置
- 【Android UI设计与开发】10:滑动菜单栏(二)SlidingMenu 动画效果的实现
- webpack文档
- KeilC51常用功能模块使用说明
- ListView控制消息
- ubuntu12.04+fuerte 下跑通lsd-slam——数据集
- xml格式转成json格式,使用Python
- nregistering JMX-exposed beans
- GUI学习之五——QAbstractButton类学习笔记
- 【洛谷P3369】【模板】普通平衡树题解
- Perl和操作系统交互(一):system、exec和反引号
- Python Redis 常用操作
- webpack热加载:修改文件自动刷新浏览器并更新
- c++中运算符重载
- Asp.Net Core 2.0 项目实战(1) NCMVC开源下载了
- HADOOP nutch java mysql
- 2018牛客网暑期ACM多校训练营(第一场) J - Different Integers - [莫队算法]
- 西邮Linux兴趣小组纳新笔试试题
热门文章
- python使用tkinter无法获取输入框的值
- 一个时间O(n)的洗牌算法
- 朴素贝叶斯算法源码分析及代码实战【python sklearn/spark ML】
- Spring @Transactional注解不起作用解决办法及原理分析
- 碰到的TypeError--记录
- mysql遇到时区问题的坑(Java解决方案)
- [http] http body中chunked数据的编码格式
- linux系统编程之信号(二)
- ORA-12638: Credential retrieval failed 解决办法
- CentOS7 部署 ElasticSearch7.0.1 集群