La propriété ContentType spécifie le type de contenu HTTP de la réponse du serveur. Si le contenu n'est pas spécifié, la valeur par défaut est Text / HTML.
Utilisez-le dans ASP:
| <% Response.ContentType = Text / HTML%> <% Response.ContentType = Image / GIF%> <% Response.ContentType = Image / JPEG%> <% Response.ContentType = Text / Plain%> <% Response.ContentType = Image / JPEG%> |
| . * = Application / Octet-Stream .001 = application / x-001 .301 = application / x-301 .323 = Texte / H323 .906 = application / x-906 .907 = dessin / 907 .a11 = application / x-a11 .Acp = audio / x-mei-aac .Ai = application / post-scriptum .aif = Audio / AIFF .aifc = Audio / AIFF .aiff = Audio / AIFF .Anv = application / x -anv .asa = texte / asa .sf = vidéo / x-ms-asf .Asp = texte / asp .asx = vidéo / x-ms-asf .au = Audio / Basic .avi = vidéo / avi .Awf = application / vand.adobe.workflow .biz = texte / 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-certe .cg4 = application / x-g4 .cgm = application / x-cgm .cit = application / x-cit .class = java / * .cml = texte / xml .cmp = application / x-cmp .cmx = application / x-cmx .cot = application / x-cot .crl = application / pkix-crl .crt = application / x-x509-ca-certe .csi = application / x-csi .css = texte / css .cut = application / x-cut .dbf = application / x-dbf .dbm = application / x-dbm .dbx = application / x-dbx .dcd = texte / 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 = texte / xml .dwf = modèle / vnd.dwf .dwf = application / x-dwf .dwg = application / x-dwg .dxb = application / x-dxb .dxf = application / x-dxf .edn = application / vand.adobe.edn .emf = application / x-emf .eml = message / rfc822 .s = texte / xml .epi = application / x-epi .eps = application / x-ps .eps = application / post-scriptum .etd = application / x-ebx .exe = application / x-msdownload .fax = image / fax .fdf = application / vnd.fdf .fif = application / fractales .fo = texte / 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-composant .htm = texte / html .html = texte / html .htt = text / webViewHtml .htx = texte / html .icb = application / x-ICB .ico = image / x-icon .ico = application / x-ico .iff = application / x-iff .ig4 = application / x-g4 .Igs = application / x-igs .Iii = application / x-iphone .img = application / x-iMg .s = application / x-internet-Signup .Isp = application / X-Internet-Signup .Ivf = vidéo / 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-liquide-file . .Latex = application / x -laatex .lavs = Audio / X-Liquid-Secure .lbm = application / x-lbm .lmsff = Audio / X-LA-LMS .ls = application / x-javascript .ltr = application / x-ltr .m1v = vidéo / x-MPEG .m2v = vidéo / x-MPEG .m3u = audio / mpegurl .m4e = vidéo / mpeg4 .mac = application / x-mac .man = application / x-troff-man .math = texte / 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 / milieu .mil = application / x-mil .mml = texte / xml .mnd = audio / x-usicnet-download .mns = audio / x-musicnet-stream .mocha = application / x-javascript .movie = vidéo / x-sgi-movie .mp1 = Audio / MP1 .mp2 = audio / mp2 .mp2v = vidéo / mpeg .mp3 = audio / mp3 .mp4 = vidéo / mpeg4 .mpa = vidéo / x-MPG .mpd = application / vnd.ms-project .mpe = vidéo / x-miPeg .mpeg = vidéo / mpg .mpg = vidéo / mpg .mpga = Audio / RN-MPEG .mpp = application / vnd.ms-project .mps = vidéo / x-Mpeg .mppt = application / vnd.ms-project .mpv = vidéo / mpg .mpv2 = vidéo / mpeg .mpw = application / vnd.ms-project .mpx = application / vnd.ms-project .mtx = texte / 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 certification .p7c = application / pkcs7-mime .p7m = application / pkcs7-mime .p7r = application / x-pkcs7-certreqres .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 / vand.adobe.pdx .pfx = application / x-pkcs12 .pggl = 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 / xp .prf = application / pics-rules .prn = application / x-prn .prt = application / x-prt .Ps = application / x-ps .Ps = application / post-scriptum .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 .raat = application / file de rat .rdf = texte / xml .rec = application / vnd.rn-enregistrement .Rd = 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 / vand.adobe.rmf .rmi = audio / mid .rmj = application / vnd.rn-realsystem-rmj .rmm = audio / x-pn-realaudio .rmp = application / vnd.rn-rn_music_package .s = application / vnd.rn-realmedia-sécurisation .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 .sml = application / vnd.rn-rsml .Rt = text / vnd.rn-realText .Rtf = application / msword .Rtf = application / x-rtf .rv = vidéo / 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 = dessin / x-slk .smi = application / smil .smil = application / smil .smk = application / x-smk .SND = Audio / Basic .sol = texte / plaine .sor = texte / plaine .spc = application / x-pkcs7-certificats .spl = Application / FutureSplash .spp = texte / xml .ssm = application / streamingmedia .sst = application / vnd.ms-pki.certstore .stl = application / vnd.ms-pki.stl .stm = text / html .STY = Application / X-STY .svg = texte / 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 = texte / xml .top = dessin / x-top .torrent = application / x-bittorrent .sd = texte / xml .txt = texte / plaine .uin = application / x-icq .Uls = texte / iuls .vcf = text / x-vcard .vda = application / x-vda .vdx = application / vnd.visio .vml = texte / xml .vpg = application / x-vpeg005 .vsd = application / vnd.visio .vsd = application / x-vsd .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 = texte / 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 = vidéo / x-ms-wm .wma = Audio / X-MS-WMA .wmd = application / x-ms-wmd .wmf = application / x-wmf .wml = text / vnd.wap.wml .wmv = vidéo / x-ms-wmv .wmx = vidéo / 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 = texte / scriptlet .wsdl = texte / xml .wvx = vidéo / x-ms-wvx .xdp = application / vand.adobe.xdp .xdr = text / xml .xfd = application / vand.adobe.xfd .xfdf = application / vand.adobe.xfdf .xhtml = texte / html .xls = application / vnd.ms-excel .xls = application / x-xls .xlw = application / x-xlw .xml = texte / xml .xpl = audio / scpls .xq = texte / xml .xql = texte / xml .xquery = text / xml .xsd = texte / xml .xsl = texte / xml .Xslt = texte / xml .xwd = application / x-xwd .x_b = application / x-x_b .x_t = application / x-x_t |