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:

  1. 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
  2. Type audio

    audio/mpeg
    audio/x-ms-wma
    audio/vnd.rn-realaudio
    audio/x-wav
  3. Type image

    image/gif
    image/jpeg
    image/png
    image/tiff
    image/vnd.microsoft.icon
    image/x-icon
    image/vnd.djvu
    image/svg+xml
  4. Type multipart

    multipart/mixed
    multipart/alternative
    multipart/related (using by MHTML (HTML mail).)
    multipart/form-data
  5. Type text

    text/css
    text/csv
    text/html
    text/javascript (obsolete)
    text/plain
    text/xml
  6. Type video

    video/mpeg
    video/mp4
    video/quicktime
    video/x-ms-wmv
    video/x-msvideo
    video/x-flv
    video/webm
  7. 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.

最新文章

  1. Ajaxtoolkit Combobox位置显示不对解决
  2. Z Fighting Problem
  3. linux动态网络和静态网络和克隆后的网络配置
  4. 【Android UI设计与开发】10:滑动菜单栏(二)SlidingMenu 动画效果的实现
  5. webpack文档
  6. KeilC51常用功能模块使用说明
  7. ListView控制消息
  8. ubuntu12.04+fuerte 下跑通lsd-slam——数据集
  9. xml格式转成json格式,使用Python
  10. nregistering JMX-exposed beans
  11. GUI学习之五——QAbstractButton类学习笔记
  12. 【洛谷P3369】【模板】普通平衡树题解
  13. Perl和操作系统交互(一):system、exec和反引号
  14. Python Redis 常用操作
  15. webpack热加载:修改文件自动刷新浏览器并更新
  16. c++中运算符重载
  17. Asp.Net Core 2.0 项目实战(1) NCMVC开源下载了
  18. HADOOP nutch java mysql
  19. 2018牛客网暑期ACM多校训练营(第一场) J - Different Integers - [莫队算法]
  20. 西邮Linux兴趣小组纳新笔试试题

热门文章

  1. python使用tkinter无法获取输入框的值
  2. 一个时间O(n)的洗牌算法
  3. 朴素贝叶斯算法源码分析及代码实战【python sklearn/spark ML】
  4. Spring @Transactional注解不起作用解决办法及原理分析
  5. 碰到的TypeError--记录
  6. mysql遇到时区问题的坑(Java解决方案)
  7. [http] http body中chunked数据的编码格式
  8. linux系统编程之信号(二)
  9. ORA-12638: Credential retrieval failed 解决办法
  10. CentOS7 部署 ElasticSearch7.0.1 集群