熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Java編程 >> Javascript >> 正文

服務器響應HTTP的類型ContentType大全

2013-11-23 17:54:13  來源: Javascript 
ContentType 屬性指定服務器響應的 HTTP 內容類型如果未指定 ContentType默認為 text/html
在ASP中使用它
<% ResponseContentType = text/HTML %>
<% ResponseContentType = image/GIF %>
<% ResponseContentType = image/JPEG %>
<% ResponseContentType = text/plain %>
<% ResponseContentType = image/JPEG %>

*=application/octetstream
=application/x
=application/x
=text/h
=application/x
=drawing/
a=application/xa
acp=audio/xmeiaac
ai=application/postscript
aif=audio/aiff
aifc=audio/aiff
aiff=audio/aiff
anv=application/xanv
asa=text/asa
asf=video/xmsasf
asp=text/asp
asx=video/xmsasf
au=audio/basic
avi=video/avi
awf=application/vndadobeworkflow
=text/xml
bmp=application/xbmp
bot=application/xbot
ct=application/xct
c=application/xc
cal=application/xcals
cat=application/vndmspkiseccat
cdf=application/xnetcdf
cdr=application/xcdr
cel=application/xcel
cer=application/xxcacert
cg=application/xg
cgm=application/xcgm
cit=application/xcit
class=java/*
cml=text/xml
cmp=application/xcmp
cmx=application/xcmx
t=application/xcot
crl=application/pkixcrl
crt=application/xxcacert
csi=application/xcsi
css=text/css
cut=application/xcut
dbf=application/xdbf
dbm=application/xdbm
dbx=application/xdbx
dcd=text/xml
dcx=application/xdcx
der=application/xxcacert
dgn=application/xdgn
dib=application/xdib
dll=application/xmsdownload
doc=application/msword
dot=application/msword
drw=application/xdrw
dtd=text/xml
dwf=Model/vnddwf
dwf=application/xdwf
dwg=application/xdwg
dxb=application/xdxb
dxf=application/xdxf
edn=application/vndadobeedn
emf=application/xemf
eml=message/rfc
ent=text/xml
epi=application/xepi
eps=application/xps
eps=application/postscript
etd=application/xebx
exe=application/xmsdownload
fax=image/fax
fdf=application/vndfdf
fif=application/fractals
fo=text/xml
frm=application/xfrm
g=application/xg
gbr=application/xgbr
gcd=application/xgcd
gif=image/gif
gl=application/xgl
gp=application/xgp
hgl=application/xhgl
hmr=application/xhmr
hpg=application/xhpgl
hpl=application/xhpl
hqx=application/macbinhex
hrf=application/xhrf
hta=application/hta
htc=text/xcomponent
=text/html
l=text/html
htt=text/webviewhtml
htx=text/html
icb=application/xicb
ico=image/xicon
ico=application/xico
iff=application/xiff
ig=application/xg
igs=application/xigs
iii=application/xiphone
img=application/ximg
ins=application/xinternetsignup
isp=application/xinternetsignup
IVF=video/xivf
java=java/*
jfif=image/jpeg
jpe=image/jpeg
jpe=application/xjpe
jpeg=image/jpeg
jpg=image/jpeg
jpg=application/xjpg
js=application/xjavascript
jsp=text/html
la=audio/xliquidfile
lar=application/xlaplayerreg
latex=application/xlatex
lavs=audio/xliquidsecure
lbm=application/xlbm
lmsff=audio/xlalms
ls=application/xjavascript
ltr=application/xltr
mv=video/xmpeg
mv=video/xmpeg
mu=audio/mpegurl
me=video/mpeg
mac=application/xmac
man=application/xtroffman
math=text/xml
mdb=application/msaccess
mdb=application/xmdb
mfp=application/xshockwaveflash
mht=message/rfc
mhtml=message/rfc
mi=application/xmi
mid=audio/mid
midi=audio/mid
mil=application/xmil
mml=text/xml
mnd=audio/xmusicnetdownload
mns=audio/xmusicnetstream
mocha=application/xjavascript
movie=video/xsgimovie
mp=audio/mp
mp=audio/mp
mpv=video/mpeg
mp=audio/mp
mp=video/mpeg
mpa=video/xmpg
mpd=application/vndmsproject
mpe=video/xmpeg
mpeg=video/mpg
mpg=video/mpg
mpga=audio/rnmpeg
mpp=application/vndmsproject
mps=video/xmpeg
mpt=application/vndmsproject
mpv=video/mpg
mpv=video/mpeg
mpw=application/vndmsproject
mpx=application/vndmsproject
mtx=text/xml
mxp=application/xmmxp
=image/pnetvue
nrf=application/xnrf
nws=message/rfc
odc=text/xmsodc
out=application/xout
p=application/pkcs
p=application/xpkcs
pb=application/xpkcscertificates
pc=application/pkcsmime
pm=application/pkcsmime
pr=application/xpkcscertreqresp
ps=application/pkcssignature
pc=application/xpc
pci=application/xpci
pcl=application/xpcl
pcx=application/xpcx
pdf=application/pdf
pdf=application/pdf
pdx=application/vndadobepdx
pfx=application/xpkcs
pgl=application/xpgl
pic=application/xpic
pko=application/vndmspkipko
pl=application/xperl
plg=text/html
pls=audio/scpls
plt=application/xplt
png=image/png
png=application/xpng
pot=application/vndmspowerpoint
ppa=application/vndmspowerpoint
ppm=application/xppm
pps=application/vndmspowerpoint
ppt=application/vndmspowerpoint
ppt=application/xppt
pr=application/xpr
prf=application/picsrules
prn=application/xprn
prt=application/xprt
ps=application/xps
ps=application/postscript
ptn=application/xptn
pwz=application/vndmspowerpoint
rt=text/vndrnrealtextd
ra=audio/vndrnrealaudio
ram=audio/xpnrealaudio
ras=application/xras
rat=application/ratfile
rdf=text/xml
rec=application/vndrnrecording
red=application/xred
rgb=application/xrgb
rjs=application/vndrnrealsystemrjs
rjt=application/vndrnrealsystemrjt
rlc=application/xrlc
rle=application/xrle
rm=application/vndrnrealmedia
rmf=application/vndadobermf
rmi=audio/mid
rmj=application/vndrnrealsystemrmj
rmm=audio/xpnrealaudio
rmp=application/vndrnrn_music_package
rms=application/vndrnrealmediasecure
rmvb=application/vndrnrealmediavbr
rmx=application/vndrnrealsystemrmx
rnx=application/vndrnrealplayer
rp=image/vndrnrealpix
rpm=audio/xpnrealaudioplugin
rsml=application/vndrnrsml
rt=text/vndrnrealtext
rtf=application/msword
rtf=application/xrtf
rv=video/vndrnrealvideo
sam=application/xsam
sat=application/xsat
sdp=application/sdp
sdw=application/xsdw
sit=application/xstuffit
slb=application/xslb
sld=application/xsld
slk=drawing/xslk
smi=application/smil
smil=application/smil
smk=application/xsmk
snd=audio/basic
sol=text/plain
sor=text/plain
spc=application/xpkcscertificates
spl=application/futuresplash
spp=text/xml
ssm=application/streamingmedia
sst=application/vndmspkicertstore
stl=application/vndmspkistl
stm=text/html
sty=application/xsty
svg=text/xml
swf=application/xshockwaveflash
tdf=application/xtdf
tg=application/xtg
tga=application/xtga
tif=image/tiff
tif=application/xtif
tiff=image/tiff
tld=text/xml
top=drawing/xtop
torrent=application/xbittorrent
tsd=text/xml
txt=text/plain
uin=application/xicq
uls=text/iuls
vcf=text/xvcard
vda=application/xvda
vdx=application/vndvisio
vml=text/xml
vpg=application/xvpeg
vsd=application/vndvisio
vsd=application/xvsd
vss=application/vndvisio
vst=application/vndvisio
vst=application/xvst
vsw=application/vndvisio
vsx=application/vndvisio
vtx=application/vndvisio
vxml=text/xml
wav=audio/wav
wax=audio/xmswax
wb=application/xwb
wb=application/xwb
wb=application/xwb
wbmp=image/vndwapwbmp
wiz=application/msword
wk=application/xwk
wk=application/xwk
wkq=application/xwkq
wks=application/xwks
wm=video/xmswm
wma=audio/xmswma
wmd=application/xmswmd
wmf=application/xwmf
wml=text/vndwapwml
wmv=video/xmswmv
wmx=video/xmswmx
wmz=application/xmswmz
wp=application/xwp
wpd=application/xwpd
wpg=application/xwpg
wpl=application/vndmswpl
wq=application/xwq
wr=application/xwr
wri=application/xwri
wrk=application/xwrk
ws=application/xws
ws=application/xws
wsc=text/scriptlet
wsdl=text/xml
wvx=video/xmswvx
xdp=application/vndadobexdp
xdr=text/xml
xfd=application/vndadobexfd
xfdf=application/vndadobexfdf
xhtml=text/html
xls=application/vndmsexcel
xls=application/xxls
xlw=application/xxlw
xml=text/xml
xpl=audio/scpls
xq=text/xml
xql=text/xml
xquery=text/xml
xsd=text/xml
xsl=text/xml
xslt=text/xml
xwd=application/xxwd
x_b=application/xx_b
x_t=application/xx_t
From:http://tw.wingwit.com/Article/program/Java/Javascript/201311/25321.html
    推薦文章
    Copyright © 2005-2013 電腦知識網 Computer Knowledge   All rights reserved.