Content-Type,内容类型,一般是指网页中存在的Content-Type,用于定义网络文件的类型和网页的编码,决定浏览器将以什么形式、什么编码读取这个文件,比如用PHP输出图片文件、JSON数据、XML文件等非HTML内容时,就必须用header函数来指定Content-Type,才能达到输出一张图片或是其它指定内容类型的需求。

Application Type

文件扩展名 Content-Type(Mime-Type) 描述
. application/x-  
.* application/octet-stream 二进制流,不知道下载文件类型
.pdf application/pdf PDF(Portable Document Format的简称,意为“便携式文件格式”)
.ai application/postscript PostScript(PS)是主要用于电子产业和桌面出版领域的一种页面描述语言和编程语言。
.xml application/atom+xml Atom feeds
.js application/ecmascript 相当于application/javascript但是严格的处理规则
.edi application/EDI-X12 EDI ANSI ASC X12数据
.edi application/EDIFACT EDI EDIFACT数据
.json application/json JSON(JavaScript Object Notation)
.js application/javascript ECMAScript/JavaScript(相当于application/ecmascript但是宽松的处理规则)
.ogg application/ogg Ogg, 视频文件格式
.rdf application/rdf+xml 资源描述框架(Resource Description Framework,缩写 RDF),是万维网联盟(W3C)提出的一组标记语言的技术标准,以便更为丰富地描述和表达网络资源的内容与结构。
.xml application/rss+xml RSS(Really Simple Syndication,简易信息聚合)是一种消息来源格式规范,用以聚合经常发布更新数据的网站,例如博客文章、新闻、音频或视频的网摘
.xml application/soap+xml 简单对象访问协议(SOAP,全写为Simple Object Access Protocol)是交换数据的一种协议规范,使用在计算机网络Web服务(web service)中,交换带结构信息。
.woff application/font-woff Web开放字体格式(Web Open Font Format,简称WOFF)是一种网页所采用的字体格式标准。(推荐使用;使用application/x-font-woff直到它变为官方标准)
.xhtml application/xhtml+xml 可扩展超文本标记语言(eXtensible HyperText Markup Language,XHTML),是一种标记语言,表现方式与超文本标记语言(HTML)类似,不过语法上更加严格。
.xml application/xml 可扩展标记语言(英语:eXtensible Markup Language,简称: XML),是一种标记语言。
.dtd application/xml-dtd XML文件的文件型别定义(Document Type Definition)可以看成一个或者多个XML文件的模板,在这里可以定义XML文件中的元素、元素的属性、元素的排列方式、元素包含的内容等等。
.xml application/xop+xml 二进制优化封装协议(Xmlbinary Optimized Packaging)
.zip application/zip ZIP压缩文件
.gzip application/gzip Gzip是若干种文件压缩程序的简称,通常指GNU计划的实现,此处的gzip代表GNU zip。
.xls application/x-xls XLS 就是 Microsoft Excel 工作表,是一种非常常用的电子表格格式。
.001 application/x-001  
.301 application/x-301  
.906 application/x-906  
.a11 application/x-a11  
.awf application/vnd.adobe.workflow  
.bmp application/x-bmp  
.c4t application/x-c4t  
.cal application/x-cals  
.cdf application/x-netcdf  
.cel application/x-cel  
.cg4 application/x-g4  
.cit application/x-cit  
.bot application/x-bot  
.c90 application/x-c90  
.cat application/vnd.ms-pki.seccat  
.cdr application/x-cdr  
.cer application/x-x509-ca-cert  
.cgm application/x-cgm  
.cmx application/x-cmx  
.crl application/pkix-crl  
.csi application/x-csi  
.cut application/x-cut  
.dbm application/x-dbm  
.cmp application/x-cmp  
.cot application/x-cot  
.crt application/x-x509-ca-cert  
.dbf application/x-dbf  
.dbx application/x-dbx  
.dcx application/x-dcx  
.dgn application/x-dgn  
.dll application/x-msdownload  
.dot application/msword  
.der application/x-x509-ca-cert  
.dib application/x-dib  
.doc application/msword  
.drw application/x-drw  
.dwf application/x-dwf  
.dxb application/x-dxb  
.edn application/vnd.adobe.edn  
.dwg application/x-dwg  
.dxf application/x-dxf  
.emf application/x-emf  
.epi application/x-epi  
.eps application/postscript  
.exe application/x-msdownload  
.fdf application/vnd.fdf  
.eps application/x-ps  
.etd application/x-ebx  
.fif application/fractals  
.frm application/x-frm  
.gbr application/x-gbr  
.g4 application/x-g4  
.gl2 application/x-gl2  
.hgl application/x-hgl  
.hpg application/x-hpgl  
.hqx application/mac-binhex40  
.hta application/hta  
.gp4 application/x-gp4  
.hmr application/x-hmr  
.hpl application/x-hpl  
.hrf application/x-hrf  
.icb application/x-icb  
.ico application/x-ico  
.ig4 application/x-g4  
.iii application/x-iphone  
.ins application/x-internet-signup  
.iff application/x-iff  
.igs application/x-igs  
.img application/x-img  
.isp application/x-internet-signup  
.jpe application/x-jpe  
.js application/x-javascript  
.jpg application/x-jpg  
.lar application/x-laplayer-reg  
.latex application/x-latex  
.lbm application/x-lbm  
.ls application/x-javascript  
.ltr application/x-ltr  
.man application/x-troff-man  
.mdb application/msaccess  
.mac application/x-mac  
.mdb application/x-mdb  
.mfp application/x-shockwave-flash  
.mi application/x-mi  
.mil application/x-mil  
.mocha application/x-javascript  
.mpd application/vnd.ms-project  
.mpp application/vnd.ms-project  
.mpt application/vnd.ms-project  
.mpw application/vnd.ms-project  
.mpx application/vnd.ms-project  
.mxp application/x-mmxp  
.nrf application/x-nrf  
.out application/x-out  
.p12 application/x-pkcs12  
.p7c application/pkcs7-mime  
.p7r application/x-pkcs7-certreqresp  
.pc5 application/x-pc5  
.pcl application/x-pcl  
.pdx application/vnd.