HTTP详解教程login
HTTP详解教程
作者:php.cn  更新时间:2022-04-11 13:41:55

HTTP 内容类型


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


HTTP  content-type 对照表

audio/audio/audio/audio/ x-ms-wma.wmdapplication/x-ms-wmd.wmfapplication/x-wmf.wmltext/vnd.wap.wml.w mv 视频/x-ms-wmv.wmx视频/x-ms-wmx.wmz应用程序/x-ms-wmz.wp6应用程序/x-wp6.wpdapplication/x-wpd.wpgapplication/x-wpg.wplapplication/vnd.ms-wpl.wq1application/x-w q1 .wr1application/x-wr1.wriapplication/x-wri.wrkapplication/x-wrk.wsapplication/x-ws .ws2应用程序/x-ws.wsc文本/脚本.wsdl文本/xml.wvx视频/x-ms-wvx.xd p应用程序/vnd.adobe.xdp.xdrtext/xml.xfd应用程序/vnd.adobe.xfd.xfdf应用程序/vnd.adobe.xfdf .xhtml text/html.xlsapplication/vnd.ms-excel.xlsapplication/x-xls.xlwapplication/x-xlw。 .xq
文件扩展名Content-Type(Mime-Type)文件扩展名Content-Type(Mime-Type)
.*( 二进制流,不知道下载文件类型)application/octet-stream.tifimage/tiff
.001application/x-001.301application/x-301
.323text/h323.906application/x-906
.907drawing/907.a11application/x-a11
.acpaudio/x-mei-aac.aiapplication/postscript
.aifaudio/aiff.aifcaudio/aiff
.aiffaudio/aiff.anvapplication/x-anv
.asatext/asa.asfvideo/x-ms-asf
.asptext/asp.asxvideo/x-ms-asf
.auaudio/basic.avivideo/avi
.awfapplication/vnd.adobe.workflow.biztext/xml
.bmpapplication/x-bmp.botapplication/x-bot
.c4tapplication/x-c4t.c90application/x-c90
.calapplication/x-cals.catapplication/vnd.ms-pki.seccat
.cdfapplication/x-netcdf.cdrapplication/x-cdr
.celapplication/x-cel.cerapplication/x-x509-ca-cert
.cg4application/x-g4.cgmapplication/x-cgm
.citapplication/x-cit.classjava/*
.cmltext/xml.cmpapplication/x-cmp
.cmxapplication/x-cmx.cotapplication/x-cot
.crlapplication/pkix-crl.crtapplication/x-x509-ca-cert
.csiapplication/x-csi.csstext/css
.cutapplication/x-cut.dbfapplication/x-dbf
.dbmapplication/x-dbm.dbxapplication/x-dbx
.dcdtext/xml.dcxapplication/x-dcx
.derapplication/x-x509-ca-cert.dgnapplication/x-dgn
.dibapplication/x-dib.dllapplication/x-msdownload
.docapplication/msword.dotapplication/msword
.drwapplication/x-drw.dtdtext/xml
.dwfModel/vnd.dwf.dwfapplication/x-dwf
.dwgapplication/x-dwg.dxbapplication/x-dxb
.dxfapplication/x-dxf.ednapplication/vnd.adobe.edn
.emfapplication/x-emf.eml消息/rfc822
.enttext/xml.epiapplication/x-epi
.epsapplication/x-ps.epsapplication/postscript
.etdapplication/ x-ebx.exe应用程序/x-msdownload
.fax图像/传真.fdf应用程序/vnd.fdf
.fif应用程序/分形。 fotext/xml
.frmapplication/x-frm.g4application/x-g4
.gbrapplication/x-gbr.application/ x-
.gif图像/gif.gl2应用程序/x-gl2
.gp4应用程序/x-gp4.hgl应用程序/x-hgl
.hmrapplication/x-hmr.hpgapplication/x-hpgl
.hplapplication/x-hpl.hqxapplication/mac-binhex40
.hrfapplication/x-hrf.htaapplication/hta
.htctext/x-component.htmtext/html
.html 文/ html.htttext/webviewhtml
.htxtext/html.icbapplication/x-icb
.ico图像/x-icon .ico application/x-ico
.iffapplication/x-iff.ig4application/x-g4
.igsapplication/x-igs.iiiapplication /x-iphone
.imgapplication/x-img.insapplication/x-internet-signup
.ispapplication/x-internet-signup.IVF 视频/x-ivf
.javajava/*.jfif图像/jpeg
.jpe图像/jpeg.jpe应用程序/x-jpe
.jpegimage/jpeg.jpgimage/jpeg
.jpgapplication/x-jpg.jsapplication/x-javascript
。 jsp文本/html.la1音频/x-liquid-file
.larapplication/x-laplayer-reg.latexapplication/x-latex
.lavs音频/x-liquid-secure.lbmapplication/x-lbm
.lmsffaudio/x-la-lms.lsapplication/x-javascript
.ltr 应用程序/x-ltr.m1v视频/x-mpeg
.m2v视频/x-mpeg.m3u音频/mpegurl
.m4e 视频/ mpeg4.macapplication/x-mac
.manapplication/x-troff-man.mathtext/xml
.mdbapplication/msaccess。 mdb应用程序/x-mdb
.mfpapplication/x-shockwave-flash.mhtmessage/rfc822
.mhtmlmessage/rfc822.miapplication/x-mi
.mid 音频/mid.midi音频/mid
.milapplication/x-mil.mmltext/xml
.mndau dio/x-音乐网-下载.mnsaudio/x-musicnet-stream
.mochaapplication/x-javascript.movi​​evideo/x-sgi-movie
.mp1audio/ mp1.mp2音频/mp2
.mp2v视频/mpeg.mp3音频/mp3
.mp4视频/mpeg4 .mpa视频/x -mpg
.mpdapplication/vnd.ms-project.mpe视频/x-mpeg
.mpeg视频/mpg.mpg视频/mpg
.mpga音频/rn-mpeg.mpp应用程序/vnd.ms-项目
.mps视频/x-mpeg.mpt应用程序/vnd.ms-项目
.mpv视频/mpg.mpv2视频/mpeg
.mpw应用程序/vnd.ms-项目.mpx应用程序/vnd.ms-项目
.mtxtext/xml.mxpapplication/x-mmxp
.netimage/pnetvue.nrfapplication/x-nrf
.nws消息/rfc822.odctext/x-ms-odc
.out应用程序/x-out.p10应用程序/pkcs10
.p12应用程序/x- pkcs12.p7b应用程序/x-pkcs7-证书
.p7c应用程序/pkcs7-mime.p7m应用程序/pkcs7-mime
.p7rapplication/x- pkcs7-certreqresp.p7sapplication/pkcs7-signature
.pc5application/x-pc5.pciapplication/x-pci
.pcl 应用/x- pcl.pcxapplication/x-pcx
.pdfapplication/pdf.pdfapplication/pdf
.pdxapplication/vnd.adobe.pdx 。 pfxapplication/x-pkcs12
.pglapplication/x-pgl.picapplication/x-pic
.pkoapplication/vnd.ms-pki.pko .plapplication/x-perl
.plgtext/html.pls音频/scpls
.pltapplication/x-plt.png 图片/png
.pngapplication/x-png.potapplication/vnd.ms-powerpoint
.ppaapplication/vnd.ms-powerpoint.ppmapplication /x-ppm
.ppsapplication/vnd.ms-powerpoint.pptapplication/vnd.ms-powerpoint
.pptapplication/x-ppt.pr 应用/x-pr
.prfapplication/pics-rules.prnapplication/x-prn
.prtapplication/x-prt.psapplication/x-ps
.psapplication/postscript.ptnapplication/x-ptn
.pwzapplication/vnd.ms-powerpoint.r3ttext/vnd.rn-realtext3d
.raaudio/vnd.rn-realaudio.ramaudio/x-pn-realaudio
.ras应用程序/x-ras.rat应用程序/rat文件
.rdftext/xml.recapplication/vnd.rn-录音
.redapplication/x-red.rgbapplication/x-rgb
.rjsapplication/vnd.rn-realsystem-rjs.rjtapplication/vnd.rn-realsystem-rjt
.rlcapplication/x-rlc.rleapplication/x -rle
.rmapplication/vnd.rn-realmedia.rmfapplication/vnd.adobe.rmf
.rmi音频/mid.rmjapplication/vnd .rn-realsystem-rmj
.rmm音频/x-pn-realaudio.rmpapplication/vnd.rn-rn_music_package
.rmsapplication/vnd.rn-realmedia-安全.rmvbapplication/vnd.rn-realmedia-vbr
.rmxapplication/vnd.rn-realsystem-rmx.rnxapplication/vnd.rn-realplayer
.rpimage/vnd.rn-realpix.rpmaudio/x-pn-realaudio-plugin
.rsmlapplication/vnd.rn-rsml.rttext/vnd .rn-realtext
.rtfapplication/msword.rtfapplication/x-rtf
.rvvideo/vnd.rn-realvideo.samapplication/x -sam
.satapplication/x-sat.sdpapplication/sdp
.sdwapplication/x-sdw.sitapplication/x-stuffit
.slbapplication/x-slb.sldapplication/x-sld
.slk绘图/x-slk.smiapplication/smil
.微笑application/smil.smkapplication/x-smk
.snd音频/基本.sol文本/纯文本
.sor文本/纯文本。 spc应用程序/x-pkcs7-证书
.spl应用程序/futuresplash.spptext/xml
.ssm应用程序/流媒体.sst 应用程序/vnd .ms-pki.certstore
.stlapplication/vnd.ms-pki.stl.stmtext/html
.styapplication/x-sty.svg text/xml
.swfapplication/x-shockwave-flash.tdfapplication/x-tdf
.tg4application/x-tg4.tgaapplication/x-tga
.tif图像/tiff.tifapplication/x-tif
.tiff 图像/tiff.tld文本/xml
.top绘图/x-top.torrent应用程序/x-bittorrent
.tsd文本/xml .txttext/plain
.uinapplication/x-icq.ulstext/iuls
.vcftext/x-vcard申请/x-vda
.vdxapplication/vnd.visio.vmltext/xml
.vpgapplication/x-vpeg005.vsdapplication/v nd.visio
.vsdapplication/x-vsd.vssapplication/vnd.visio
.vstapplication/vnd.visio.vstapplication /x-vst
.vswapplication/vnd.visio.vsxapplication/vnd.visio
.vtxapplication/vnd.visio.vxmltext/xml
.wav 音频/wav.wax音频/x-ms-wax
.wb1应用程序/x-wb1.wb2应用程序/x-wb2
.w b3应用程序/x-wb3.wbmpimage/vnd.wap.wbmp
.wiz应用程序/msword.wk3应用程序/x-wk3
.wk4 申请/ x-wk4.wkqapplication/x-wkq
.wksapplication/x-wks.wmvideo/x-ms-wm
.wma
文本/xml.xpl音频/scpls
文本/xml.xql文本/xml
.xquerytext/xml.xsdtext/xml
.xsltext/xml.xslttext/xml
.xwd 应用/x- xwd.x_bapplication/x-x_b
.sisapplication/vnd.symbian.install.sisxapplication/vnd.symbian.install
.x_tapplication/ x-x_t.ipaapplication/vnd.iphone
.apkapplication/vnd.android.package-archive.xapapplication/x-silverlight-app

PHP中文网