码迷,mamicode.com
首页 > Web开发 > 详细

http Content type

时间:2021-01-11 11:08:14      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:ima   poi   决定   quick   xhtml   let   rgba   content   phi   

Content-Type(内容类型),一般是指网页中存在的 Content-Type,用于定义网络文件的类型和网页的编码,决定浏览器将以什么形式、什么编码读取这个文件,这就是经常看到一些 PHP 网页点击的结果却是下载一个文件或一张图片的原因。

Content-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

Audio

  • audio/mpeg
  • audio/x-ms-wma
  • audio/vnd.rn-realaudio
  • audio/x-wav

Image

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

Multipart

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

Text

  • text/css
  • text/csv
  • text/html
  • text/javascript (obsolete)
  • text/plain
  • text/xml
  • Video
  • video/mpeg
  • video/mp4
  • video/quicktime
  • video/x-ms-wmv
  • video/x-msvideo
  • video/x-flv
  • video/webm

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

 

http Content type

标签:ima   poi   决定   quick   xhtml   let   rgba   content   phi   

原文地址:https://www.cnblogs.com/VARForrest/p/14251503.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!