The contenttype attribute specifies the HTTP content type of the response. If contenttype is not specified, the default value is text/html.
Syntax
Response. contenttype [= contenttype]
Parameters
Contenttype
A string that describes the content type. This string is usually formatted as a type/subtype, where the type is a common content category and the subclass is a specific content type. For a complete list of supported content types, see the web browser documentation or the current HTTP specification description.
Example
The following example sets the content type to Channel Definition Format (CDF ).
<% Response. contenttype = "application/X-CDF" %>
The following example sets the contenttype attribute to another common value.
<% Response. contenttype = "text/html" %>
<% Response. contenttype = "image/GIF" %>
<% Response. contenttype = "image/JPEG" %>
Apply
Response object
For detailed types, see the following:
". *" = "Application/octet-stream"
". 001" = "application/x-001"
". 301" = "application/x-301"
". 323" = "text/h323"
". 906" = "application/x-906"
". 907" = "Fig/907"
". A11" = "application/x-a11"
". Acp" = "audio/x-mei-aac"
". Ai" = "application/postscript"
". Aif" = "audio/aiff"
". Aifc" = "audio/aiff"
". Aiff" = "audio/aiff"
". Anv" = "application/x-anv"
". Asa" = "text/asa"
". Asf" = "video/x-ms-asf"
". Asp" = "text/asp"
". Asx" = "video/x-ms-asf"
". Au" = "audio/basic"
". Avi" = "video/avi"
". Awf" = "application/vnd. adobe. workflow"
". Biz" = "text/xml"
". Bmp" = "application/x-bmp"
". Bot" = "application/x-bot"
". C4t" = "application/x-c4t"
". C90" = "application/x-c90"
". Cal" = "application/x-cals"
". Cat" = "application/vnd. ms-pki.seccat"
". CDF" = "application/X-netcdf"
". CDR" = "application/X-CDR"
". Cel" = "application/X-Cel"
". Cer" = "application/x-x509-ca-cert"
". Cg4" = "application/x-g4"
". CGM" = "application/X-CGM"
". Cit" = "application/X-CIT"
". Class" = "Java /*"
". CRF" = "text/XML"
". CMP" = "application/X-CMP"
". Cmx" = "application/X-cmx"
". Cot" = "application/X-cot"
". CRL" = "application/pkix-CRL"
". CRT" = "application/x-x509-ca-cert"
". CSI" = "application/X-CSI"
". CSS" = "text/CSS"
". Cut" = "application/X-cut"
". DBF" = "application/X-DBF"
". DBM" = "application/X-dBm"
". DBX" = "application/X-dbx"
". DCD" = "text/XML"
". Dcx" = "application/X-dcx"
". Der" = "application/x-x509-ca-cert"
". Dgn" = "application/X-dgn"
". Dib" = "application/X-dib"
". Dll" = "application/X-msdownload"
". Doc" = "application/MSWord"
". Dot" = "application/MSWord"
". Drw" = "application/X-drw"
". DTD" = "text/XML"
". DwF" = "model/vnd. DwF"
". DwF" = "application/X-DwF"
". DWG" = "application/X-DWG"
". Dxb" = "application/X-dxb"
". DXF" = "application/X-DXF"
". Edn" = "application/vnd. Adobe. edn"
". EMF" = "application/X-EMF"
". Eml" = "message/rfc822"
". Ent" = "text/XML"
". Epi" = "application/X-epi"
". EPS" = "application/X-Ps"
". EPS" = "application/postscript"
". ETD" = "application/X-EBX"
". Exe" = "application/x-msdownload"
". Fax" = "image/fax"
". Fdf" = "application/vnd. fdf"
". Fif" = "application/fractals"
". Fo" = "text/xml"
". Frm" = "application/x-frm"
". G4" = "application/x-g4"
". Gbr" = "application/x-gbr"
". Gcd" = "application/x-gcd"
". Gif" = "image/gif"
". Gl2" = "application/x-gl2"
". Gp4" = "application/x-gp4"
". Hgl" = "application/x-hgl"
". Hmr" = "application/x-hmr"
". Hpg" = "application/x-hpgl"
". Hpl" = "application/x-hpl"
". Hqx" = "application/mac-binhex40"
". Hrf" = "application/x-hrf"
". Hta" = "application/hta"
". Htc" = "text/x-component"
". Htm" = "text/html"
". Html" = "text/html"
". Htt" = "text/webviewhtml"
". Htx" = "text/html"
". Icb" = "application/x-icb"
". Ico" = "image/x-icon"
". Ico" = "application/x-ico"
". Iff" = "application/x-iff"
". Ig4" = "application/x-g4"
". Ig" = "application/x-ig"
". Iii" = "application/x-iphone"
". Img" = "application/x-img"
". Ins" = "application/x-internet-signup"
". Isp" = "application/x-internet-signup"
". IVF" = "video/x-ivf"
". Java" = "java /*"
". Jfif" = "image/jpeg"
". Jpe" = "image/jpeg"
". Jpe" = "application/x-jpe"
". Jpeg" = "image/jpeg"
". Jpg" = "image/jpeg"
". Jpg" = "application/x-jpg"
". Js" = "application/x-javascript"
". Jsp" = "text/html"
". La1" = "audio/X-liquid-file"
". Lar" = "application/X-laplayer-Reg"
". Latex" = "application/X-latex"
". LAVS" = "audio/X-liquid-secure"
". LBM" = "application/X-LBM"
". Lmsff" = "audio/X-la-LMS"
". Ls" = "application/X-JavaScript"
". LTR" = "application/X-LTR"
". M1v" = "Video/X-mPEG"
". M2v" = "Video/X-mPEG"
". M3u" = "audio/mpegurl"
". M4e" = "Video/MPEG4"
". Mac" = "application/X-Mac"
". Man" = "application/X-troff-man"
". Math" = "text/XML"
". Mdb" = "application/msaccess"
". Mdb" = "application/X-mdb"
". MFP" = "application/X-Shockwave-flash"
". MHT" = "message/rfc822"
". MHTML" = "message/rfc822"
". Mi" = "application/X-MI"
". Mid" = "audio/mid"
". Midi" = "audio/mid"
". Mil" = "application/X-mil"
". MML" = "text/XML"
". MND" = "audio/X-MusicNet-download"
". MnS" = "audio/X-MusicNet-stream"
". Mocha" = "application/X-JavaScript"
". Movie" = "Video/X-SGI-movie"
". MP1" = "audio/MP1"
". MP2" = "audio/MP2"
". Mp2v" = "Video/MPEG"
". MP3" = "audio/MP3"
". MP4" = "Video/MPEG4"
". MPa" = "Video/X-MPG"
". MPD" = "application/vnd. MS-Project"
". MPE" = "Video/X-mPEG"
". MpEG" = "Video/MPG"
". Mpg" = "Video/MPG"
". Mpga" = "audio/RN-mPEG"
". MPP" = "application/vnd. MS-Project"
". MPS" = "Video/X-mPEG"
". MPT" = "application/vnd. MS-Project"
". MPV" = "Video/MPG"
". MPV2" = "Video/MPEG"
". MPW" = "application/vnd. MS-Project"
". MPX" = "application/vnd. MS-Project"
". CTX" = "text/XML"
". Mxp" = "application/X-mmxp"
". Net" = "image/pnetvue"
". NRF" = "application/X-NRF"
". Nws" = "message/rfc822"
". ODC" = "text/X-MS-ODC"
". Out" = "application/X-out"
". P10" = "application/pkcs10"
". P12" = "application/x-pkcs12"
". P7b" = "application/x-pkcs7-certificates"
". P7c" = "application/pkcs7-mime"
". P7m" = "application/pkcs7-mime"
". P7r" = "application/x-pkcs7-certreqresp"
". P7s" = "application/pkcs7-signature"
". Pc5" = "application/x-pc5"
". PCI" = "application/X-PCI"
". PCL" = "application/X-PCL"
". PCX" = "application/X-PCX"
". Pdf" = "application/pdf"
". Pdf" = "application/pdf"
". PDX" = "application/vnd. Adobe. PDX"
". Pfx" = "application/x-pkcs12"
". PGL" = "application/X-PGL"
". PIC" = "application/X-pic"
". PKO" = "application/vnd. ms-pki.pko"
". Pl" = "application/X-perl"
". PLG" = "text/html"
". Pls" = "audio/scpls"
". PLT" = "application/X-PLT"
". PNG" = "image/PNG"
". PNG" = "application/X-PNG"
". Pot" = "application/vnd. MS-PowerPoint"
". PPA" = "application/vnd. MS-PowerPoint"
". Ppm" = "application/X-ppm"
". PPS" = "application/vnd. MS-PowerPoint"
". Ppt" = "application/vnd. MS-PowerPoint"
". Ppt" = "application/x-ppt"
". Pr" = "application/x-pr"
". Prf" = "application/pics-rules"
". Prn" = "application/x-prn"
". Prt" = "application/x-prt"
". Ps" = "application/x-ps"
". Ps" = "application/postscript"
". Ptn" = "application/x-ptn"
". Pwz" = "application/vnd. ms-powerpoint"
". R3t" = "text/vnd. rn-realtext3d"
". Ra" = "audio/vnd. rn-realaudio"
". Ram" = "audio/x-pn-realaudio"
". Ras" = "application/x-ras"
". Rat" = "application/rat-file"
". Rdf" = "text/xml"
". Rec" = "application/vnd. rn-recording"
". Red" = "application/x-red"
". Rgb" = "application/x-rgb"
". Rjs" = "application/vnd. rn-realsystem-rjs"
". Rjt" = "application/vnd. rn-realsystem-rjt"
". Rlc" = "application/x-rlc"
". Rle" = "application/x-rle"
". Rm" = "application/vnd. rn-realmedia"
". Rmf" = "application/vnd. adobe. rmf"
". Rmi" = "audio/mid"
". Rmj" = "application/vnd. rn-realsystem-rmj"
". Rmm" = "audio/x-pn-realaudio"
". Rmp" = "application/vnd. rn-rn_music_package"
". Rms" = "application/vnd. rn-realmedia-secure"
". Rmvb" = "application/vnd. rn-realmedia-vbr"
". Rmx" = "application/vnd. rn-realsystem-rmx"
". Rnx" = "application/vnd. rn-realplayer"
". Rp" = "image/vnd. rn-realpix"
". Rpm" = "audio/x-pn-realaudio-plugin"
". Rsml" = "application/vnd. rn-rsml"
". Rt" = "text/vnd. rn-realtext"
". Rtf" = "application/msword"
". Rtf" = "application/x-rtf"
". Rv" = "video/vnd. rn-realvideo"
". Sam" = "application/x-sam"
". Sat" = "application/x-sat"
". Sdp" = "application/sdp"
". Sdw" = "application/x-sdw"
". Sit" = "application/x-stuffit"
". Slb" = "application/x-slb"
". Sld" = "application/x-sld"
". Slk" = "drawing/x-slk"
". Smi" = "application/smil"
". Smil" = "application/smil"
". Smk" = "application/x-smk"
". Snd" = "audio/basic"
". Sol" = "text/plain"
". Sor" = "text/plain"
". Spc" = "application/x-pkcs7-certificates"
". Spl" = "application/futuresplash"
". Spp" = "text/xml"
". Ssm" = "application/streamingmedia"
". Sst" = "application/vnd. ms-pki.certstore"
". Stl" = "application/vnd. ms-pki.stl"
". Stm" = "text/html"
". Sty" = "application/X-Sty"
". SVG" = "text/XML"
". SWF" = "application/X-Shockwave-flash"
". TDF" = "application/X-TDF"
". TG4" = "application/x-tg4"
". TGA" = "application/X-TGA"
". Tif" = "image/tiff"
". Tif" = "application/X-TIF"
". Tiff" = "image/tiff"
". TLD" = "text/XML"
". Top" = "Drawing/X-top"
". Torrent" = "application/X-BitTorrent"
". TSD" = "text/XML"
". Txt" = "text/plain"
". Uin" = "application/X-ICQ"
". ULS" = "text/iuls"
". VCF" = "text/X-vCard"
". VDA" = "application/X-VDA"
". Vdx" = "application/vnd. Visio"
". VML" = "text/XML"
". VPG" = "application/x-vpeg005"
". Sealing" = "application/vnd. Visio"
". Sealing" = "application/X-sealing"
". Vss" = "application/vnd. Visio"
". VST" = "application/vnd. Visio"
". VST" = "application/X-VST"
". Vsw" = "application/vnd. Visio"
". Vsx" = "application/vnd. Visio"
". Vtx" = "application/vnd. Visio"
". VXML" = "text/XML"
". Wav" = "audio/WAV"
". Wax" = "audio/X-MS-wax"
". Wb1" = "application/x-wb1"
". Wb2" = "application/x-wb2"
". Wb3" = "application/x-wb3"
". Wbmp" = "image/vnd. WAP. wbmp"
". Wiz" = "application/MSWord"
". Wk3" = "application/x-wk3"
". Wk4" = "application/x-wk4"
". Wkq" = "application/X-wkq"
". Wks" = "application/X-wks"
". WM" = "Video/X-MS-WM"
". Wma" = "audio/X-MS-WMA"
". WMD" = "application/X-MS-WMD"
". WMF" = "application/X-WMF"
". WML" = "text/vnd. WAP. WML"
". Wmv" = "Video/X-MS-WMV"
". Wmx" = "Video/X-MS-wmx"
". Wmz" = "application/X-MS-WMZ"
". WP6" = "application/x-wp6"
". WPD" = "application/X-WPD"
". WPG" = "application/X-WPG"
". WPL" = "application/vnd. MS-WPL"
". Wq1" = "application/x-wq1"
". Wr1" = "application/x-wr1"
". WRI" = "application/X-WRI"
". Wrk" = "application/X-wrk"
". Ws" = "application/X-ws"
". WS2" = "application/X-ws"
". WSC" = "text/scriptlet"
". WSDL" = "text/XML"
". WVX" = "Video/X-MS-WVX"
". XDP" = "application/vnd. Adobe. XDP"
". XDR" = "text/XML"
". XFD" = "application/vnd. Adobe. XFD"
". XFDF" = "application/vnd. Adobe. XFDF"
". XHTML" = "text/html"
". Xls" = "application/vnd. MS-excel"
". Xls" = "application/X-xls"
". Xlw" = "application/X-xlw"
". 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/X-xwd"
". X_ B" = "application/x-x_ B"
". X_t" = "application/x-x_t"
References: http://baike.baidu.com/view/1547292.html