HTTP 响应类型 ContentType 对照表
Ø 前言
1. 下面是 HTTP 响应类型 ContentType 的可选值,有备无患先保存一下。摘自:https://wiki.selfhtml.org/wiki/MIME-Type/%C3%9Cbersicht。
2. 以 C# 为例设置如下:
1) ASP.NET: HttpContext.Current.Response.contentType = "application/vnd.ms-excel";
2) WEB API: httpResponseMessage.Content.Headers.ContentType = new MediaTypeHeaderValue("text/comma-separated-values");
Ø 表格如下:
MIME-Typ |
Dateiendung(en) |
Bedeutung |
application/acad |
*.dwg |
AutoCAD-Dateien (nach NCSA) |
application/applefile |
|
AppleFile-Dateien |
application/astound |
*.asd *.asn |
Astound-Dateien |
application/dsptype |
*.tsp |
TSP-Dateien |
application/dxf |
*.dxf |
AutoCAD-Dateien (nach CERN) |
application/futuresplash |
*.spl |
Flash Futuresplash-Dateien |
application/gzip |
*.gz |
GNU Zip-Dateien |
application/javascript |
*.js |
serverseitige JavaScript-Dateien |
application/json |
*.json |
|
application/listenup |
*.ptlk |
Listenup-Dateien |
application/mac-binhex40 |
*.hqx |
Macintosh Binärdateien |
application/mbedlet |
*.mbd |
Mbedlet-Dateien |
application/mif |
*.mif |
FrameMaker Interchange Format Dateien |
application/msexcel |
*.xls *.xla |
Microsoft Excel Dateien |
application/mshelp |
*.hlp *.chm |
Microsoft Windows Hilfe Dateien |
application/mspowerpoint |
*.ppt *.ppz *.pps *.pot |
Microsoft Powerpoint Dateien |
application/msword |
*.doc *.dot |
Microsoft Word Dateien |
application/octet-stream |
*.bin *.exe *.com *.dll *.class |
Nicht näher spezifizierte Daten, z.B. ausführbare Dateien |
application/oda |
*.oda |
Oda-Dateien |
application/pdf |
|
PDF-Dateien |
application/postscript |
*.ai *.eps *.ps |
PostScript-Dateien |
application/rtc |
*.rtc |
RTC-Dateien |
application/rtf |
*.rtf |
RTF-Dateien |
application/studiom |
*.smp |
Studiom-Dateien |
application/toolbook |
*.tbk |
Toolbook-Dateien |
application/vocaltec-media-desc |
*.vmd |
Vocaltec Mediadesc-Dateien |
application/vocaltec-media-file |
*.vmf |
Vocaltec Media-Dateien |
application/ |
*.xlsx |
Excel (OpenOffice Calc) |
vnd.openxmlformats-officedocument. spreadsheetml.sheet |
||
application/ |
*.docx |
Word (OpenOffice Writer) |
vnd.openxmlformats-officedocument.wordprocessingml.document |
||
application/xhtml+xml |
*.htm *.html *.shtml *.xhtml |
XHTML-Dateien |
application/xml |
*.xml |
XML-Dateien |
application/x-bcpio |
*.bcpio |
BCPIO-Dateien |
application/x-compress |
*.z |
zlib-komprimierte Dateien |
application/x-cpio |
*.cpio |
CPIO-Dateien |
application/x-csh |
*.csh |
C-Shellscript-Dateien |
application/x-director |
*.dcr *.dir *.dxr |
Macromedia Director-Dateien |
application/x-dvi |
*.dvi |
DVI-Dateien |
application/x-envoy |
*.evy |
Envoy-Dateien |
application/x-gtar |
*.gtar |
GNU tar-Archivdateien |
application/x-hdf |
*.hdf |
HDF-Dateien |
application/x-httpd-php |
*.php *.phtml |
PHP-Dateien |
application/x-latex |
*.latex |
LaTeX-Quelldateien |
application/x-macbinary |
*.bin |
Macintosh Binärdateien |
application/x-mif |
*.mif |
FrameMaker Interchange Format Dateien |
application/x-netcdf |
*.nc *.cdf |
Unidata CDF-Dateien |
application/x-nschat |
*.nsc |
NS Chat-Dateien |
application/x-sh |
*.sh |
Bourne Shellscript-Dateien |
application/x-shar |
*.shar |
Shell-Archivdateien |
application/x-shockwave-flash |
*.swf *.cab |
Flash Shockwave-Dateien |
application/x-sprite |
*.spr *.sprite |
Sprite-Dateien |
application/x-stuffit |
*.sit |
Stuffit-Dateien |
application/x-supercard |
*.sca |
Supercard-Dateien |
application/x-sv4cpio |
*.sv4cpio |
CPIO-Dateien |
application/x-sv4crc |
*.sv4crc |
CPIO-Dateien mit CRC |
application/x-tar |
*.tar |
tar-Archivdateien |
application/x-tcl |
*.tcl |
TCL Scriptdateien |
application/x-tex |
*.tex |
TeX-Dateien |
application/x-texinfo |
*.texinfo *.texi |
Texinfo-Dateien |
application/x-troff |
*.t *.tr *.roff |
TROFF-Dateien (Unix) |
application/x-troff-man |
*.man *.troff |
TROFF-Dateien mit MAN-Makros (Unix) |
application/x-troff-me |
*.me *.troff |
TROFF-Dateien mit ME-Makros (Unix) |
application/x-troff-ms |
*.me *.troff |
TROFF-Dateien mit MS-Makros (Unix) |
application/x-ustar |
*.ustar |
tar-Archivdateien (Posix) |
application/x-wais-source |
*.src |
WAIS Quelldateien |
application/x-www-form-urlencoded |
|
HTML-Formulardaten an CGI |
application/zip |
*.zip |
ZIP-Archivdateien |
audio/basic |
*.au *.snd |
Sound-Dateien |
audio/echospeech |
*.es |
Echospeed-Dateien |
audio/tsplayer |
*.tsi |
TS-Player-Dateien |
audio/voxware |
*.vox |
Vox-Dateien |
audio/x-aiff |
*.aif *.aiff *.aifc |
AIFF-Sound-Dateien |
audio/x-dspeeh |
*.dus *.cht |
Sprachdateien |
audio/x-midi |
*.mid *.midi |
MIDI-Dateien |
audio/x-mpeg |
*.mp2 |
MPEG-Audiodateien |
audio/x-pn-realaudio |
*.ram *.ra |
RealAudio-Dateien |
audio/x-pn-realaudio-plugin |
*.rpm |
RealAudio-Plugin-Dateien |
audio/x-qt-stream |
*.stream |
Quicktime-Streaming-Dateien |
audio/x-wav |
*.wav |
WAV-Dateien |
drawing/x-dwf |
*.dwf |
Drawing-Dateien |
image/cis-cod |
*.cod |
CIS-Cod-Dateien |
image/cmu-raster |
*.ras |
CMU-Raster-Dateien |
image/fif |
*.fif |
FIF-Dateien |
image/gif |
*.gif |
GIF-Dateien |
image/ief |
*.ief |
IEF-Dateien |
image/jpeg |
*.jpeg *.jpg *.jpe |
JPEG-Dateien |
image/png |
*.png |
PNG-Dateien |
image/tiff |
*.tiff *.tif |
TIFF-Dateien |
image/vasa |
*.mcf |
Vasa-Dateien |
image/vnd.wap.wbmp |
*.wbmp |
Bitmap-Dateien (WAP) |
image/x-freehand |
*.fh4 *.fh5 *.fhc |
Freehand-Dateien |
image/x-icon |
*.ico |
Icon-Dateien (z.B. Favoriten-Icons) |
image/x-portable-anymap |
*.pnm |
PBM Anymap Dateien |
image/x-portable-bitmap |
*.pbm |
PBM Bitmap Dateien |
image/x-portable-graymap |
*.pgm |
PBM Graymap Dateien |
image/x-portable-pixmap |
*.ppm |
PBM Pixmap Dateien |
image/x-rgb |
*.rgb |
RGB-Dateien |
image/x-windowdump |
*.xwd |
X-Windows Dump |
image/x-xbitmap |
*.xbm |
XBM-Dateien |
image/x-xpixmap |
*.xpm |
XPM-Dateien |
message/external-body |
|
Nachricht mit externem Inhalt |
message/http |
|
HTTP-Headernachricht |
message/news |
|
Newsgroup-Nachricht |
message/partial |
|
Nachricht mit Teilinhalt |
message/rfc822 |
|
Nachricht nach RFC (2)822 |
model/vrml |
*.wrl |
Visualisierung virtueller Welten (VRML) |
multipart/alternative |
|
mehrteilige Daten; jeder Teil ist eine zu den anderen gleichwertige Alternative |
multipart/byteranges |
|
mehrteilige Daten mit Byte-Angaben |
multipart/digest |
|
mehrteilige Daten / Auswahl |
multipart/encrypted |
|
mehrteilige Daten verschlüsselt |
multipart/form-data |
|
mehrteilige Daten aus HTML-Formular (z.B. File-Upload) |
multipart/mixed |
|
mehrteilige Daten ohne Bezug der Teile untereinander |
multipart/parallel |
|
mehrteilige Daten parallel |
multipart/related |
|
mehrteilige Daten mit Abhängigkeiten der Teile voneinander |
multipart/report |
|
mehrteilige Daten / Bericht |
multipart/signed |
|
mehrteilige Daten / bezeichnet |
multipart/voice-message |
|
mehrteilige Daten / Sprachnachricht |
text/comma-separated-values |
*.csv |
kommaseparierte Datendateien |
text/css |
*.css |
CSS Stylesheet-Dateien |
text/html |
*.htm *.html *.shtml |
HTML-Dateien |
text/javascript |
*.js |
JavaScript-Dateien |
text/plain |
*.txt |
reine Textdateien |
text/richtext |
*.rtx |
Richtext-Dateien |
text/rtf |
*.rtf |
RTF-Dateien |
text/tab-separated-values |
*.tsv |
tabulator-separierte Datendateien |
text/vnd.wap.wml |
*.wml |
WML-Dateien (WAP) |
application/vnd.wap.wmlc |
*.wmlc |
WMLC-Dateien (WAP) |
text/vnd.wap.wmlscript |
*.wmls |
WML-Scriptdateien (WAP) |
application/vnd.wap.wmlscriptc |
*.wmlsc |
WML-Script-C-dateien (WAP) |
text/xml |
*.xml |
XML-Dateien |
text/xml-external-parsed-entity |
|
extern geparste XML-Dateien |
text/x-setext |
*.etx |
SeText-Dateien |
text/x-sgml |
*.sgm *.sgml |
SGML-Dateien |
text/x-speech |
*.talk *.spc |
Speech-Dateien |
video/mpeg |
*.mpeg *.mpg *.mpe |
MPEG-Videodateien |
video/quicktime |
*.qt *.mov |
Quicktime-Dateien |
video/vnd.vivo |
*.viv *.vivo |
Vivo-Dateien |
video/x-msvideo |
*.avi |
Microsoft AVI-Dateien |
video/x-sgi-movie |
*.movie |
Movie-Dateien |
workbook/formulaone |
*.vts *.vtts |
FormulaOne-Dateien |
x-world/x-3dmf |
*.3dmf *.3dm *.qd3d *.qd3 |
3DMF-Dateien |
x-world/x-vrml |
*.wrl |
Visualisierung virtueller Welten (VRML) (veralteter MIME-Typ, aktuell ist model/vrml) |
HTTP 响应类型 ContentType 对照表的更多相关文章
- Spring boot返回JSON类型响应及Content-Type设置
一.背景 服务器软件用Spring boot开发,API调用的响应消息格式为JSON. 对端调用接口后无法解析响应. 抓包看Response的Body部分确实是正确的JSON格式字符串. 二.问题分析 ...
- 我的Android进阶之旅------>HTTP Content-type 对照表
HTTP Content-type 对照表 文件扩展名 Content-Type(Mime-Type) 文件扩展名 Content-Type(Mime-Type) .*( 二进制流, 不知道下载文件类 ...
- Django的视图响应类型
Django的视图响应类型 一. 视图函数编写原则 视图函数接受HTTP请求并返回响应,可以放在任何地方,可以是任何功能:视图函数可以返回Web文本,页面.重定向.错误.图片等任何内容:视图函数通过H ...
- springmvc全局异常处理ControllerAdvice区分返回响应类型是页面还是JSON
思路: 加一个拦截器,在preHandler中取得HandlerMethod,判断其方法的返回类型,以及方法的注解和类的注解. 如果返回是json,收到异常则返回默认的异常包装类型. 如果返回是页面, ...
- 服务器响应HTTP的类型ContentType大全
".*"="application/octet-stream" ".001"="application/x-001" & ...
- Fiddler中session的请求/响应类型与图标对照表
- 【抓包工具之Fiddler】中session的请求/响应类型与图标对照表
- Content-type 对照表
Content-Type,内容类型,一般是指网页中存在的Content-Type,用于定义网络文件的类型和网页的编码,决定浏览器将以什么形式.什么编码读取这个文件,比如用PHP输出图片文件.JSON数 ...
- HTTP Content-type 对照表
Application Type 文件扩展名 Content-Type(Mime-Type) 描述 . application/x- .* application/octet-stream 二进制 ...
随机推荐
- css文本设置
常用的应用文本的css样式: color 设置文字的颜色,如: color:red; font-size 设置文字的大小,如:font-size:12px; font-family 设置文字的字体,如 ...
- [NOI2010]超级钢琴(RMQ+堆)
小Z是一个小有名气的钢琴家,最近C博士送给了小Z一架超级钢琴,小Z希望能够用这架钢琴创作出世界上最美妙的音乐. 这架超级钢琴可以弹奏出n个音符,编号为1至n.第i个音符的美妙度为Ai,其中Ai可正可负 ...
- Jupyter-Notebook服务器自定义密码
往期回顾 Anaconda安装:https://www.cnblogs.com/dotnetcrazy/p/9158715.html 基本知识导航篇:https://www.cnblogs.com/d ...
- A1064. Complete Binary Search Tree
A Binary Search Tree (BST) is recursively defined as a binary tree which has the following propertie ...
- numpy 多维数组及数组操作
NumPy是Python语言的一个扩充程序库.支持高级大量的维度数组与矩阵运算,此外也针对数组运算提供大量的数学函数库.Numpy内部解除了Python的PIL(全局解释器锁),运算效率极好,是大量机 ...
- 斯坦福大学公开课机器学习:advice for applying machine learning | diagnosing bias vs. variance(机器学习:诊断偏差和方差问题)
当我们运行一个学习算法时,如果这个算法的表现不理想,那么有两种原因导致:要么偏差比较大.要么方差比较大.换句话说,要么是欠拟合.要么是过拟合.那么这两种情况,哪个和偏差有关.哪个和方差有关,或者是不是 ...
- HDU 5965 扫雷
扫雷游戏是晨晨和小璐特别喜欢的智力游戏,她俩最近沉迷其中无法自拔. 该游戏的界面是一个矩阵,矩阵中有些格子中有一个地雷,其余格子中没有地雷. 游戏中,格子可能处于己知和未知的状态.如果一个己知的格子中 ...
- DK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME
根据提示,我们可以新建一个项目或者以前自己使用过没问题的工程,从中把local.properties文件copy到我们从github中想要导入的工程中,我自己就是这样的,然后这个问题就解决了. ndk ...
- node(基础)_node.js中的http服务以及模板引擎的渲染
一.前言 本节的内容主要涉及: 1.node.js中http服务 2.node.js中fs服务 3.node.js中模板引擎的渲染 4.利用上面几点模拟apache服务器 二.知识 1.node.js ...
- linux 内核代码结构
1.ARM的核心代码保存在arch/arm目录下 2.ARM SoC core architecture code保存在arch/arm目录下 3.ARM SOC的周边外设模块的驱动保存在driver ...