huangyunbin 发表于 2013-2-6 10:05:40

response.setContentType

response.setContentType

Case   "* "
      .ContentType   =   "application/octet-stream "
      Case   "323 "
      .ContentType   =   "text/h323 "
      Case   "ACX "
      .ContentType   =   "application/internet-property-stream "
      Case   "AI "
      .ContentType   =   "application/postscript "
      Case   "AIF "
      .ContentType   =   "audio/x-aiff "
      Case   "AIFC "
      .ContentType   =   "audio/x-aiff "
      Case   "AIFF "
      .ContentType   =   "audio/x-aiff "
      Case   "ASF "
      .ContentType   =   "video/x-ms-asf "
      Case   "SR "
      .ContentType   =   "video/x-ms-asf "
      Case   "SX "
      .ContentType   =   "video/x-ms-asf "
      Case   "AU "
      .ContentType   =   "audio/basic "
      Case   "AVI "
      .ContentType   =   "video/x-msvideo "
      Case   "AXS "
      .ContentType   =   "application/olescript "
      Case   "BAS "
      .ContentType   =   "text/plain "
      Case   "BCPIO "
      .ContentType   =   "application/x-bcpio "
      Case   "BIN "
      .ContentType   =   "application/octet-stream "
      Case   "BMP "
      .ContentType   =   "image/bmp "
      Case   "C "
      .ContentType   =   "text/plain "
      Case   "CAT "
      .ContentType   =   "application/vnd.ms-pkiseccat "
      Case   "CDF "
      .ContentType   =   "application/x-cdf "
      Case   "CER "
      .ContentType   =   "application/x-x509-ca-cert "


Case   "CLASS "
      .ContentType   =   "application/octet-stream "
      Case   "CLP "
      .ContentType   =   "application/x-msclip "
      Case   "CMX "
      .ContentType   =   "image/x-cmx "
      Case   "COD "
      .ContentType   =   "image/cis-cod "
      Case   "CPIO "
      .ContentType   =   "application/x-cpio "
      Case   "CRD "
      .ContentType   =   "application/x-mscardfile "
      Case   "CRL "
      .ContentType   =   "application/pkix-crl "
      Case   "CRT "
      .ContentType   =   "application/x-x509-ca-cert "
      Case   "CSH "
      .ContentType   =   "application/x-csh "
      Case   "CSS "
      .ContentType   =   "text/css "
      Case   "DCR "
      .ContentType   =   "application/x-director "
      Case   "DER "
      .ContentType   =   "application/x-x509-ca-cert "
      Case   "DIR "
      .ContentType   =   "application/x-director "
      Case   "DLL "
      .ContentType   =   "application/x-msdownload "
      Case   "DMS "
      .ContentType   =   "application/octet-stream "
      Case   "DOC "
      .ContentType   =   "application/msword "
      Case   "DOT "
      .ContentType   =   "application/msword "
      Case   "DVI "
      .ContentType   =   "application/x-dvi "
      Case   "DXR "
      .ContentType   =   "application/x-director "


Case   "EPS "
      .ContentType   =   "application/postscript "
      Case   "ETX "
      .ContentType   =   "text/x-setext "
      Case   "EVY "
      .ContentType   =   "application/envoy "
      Case   "EXE "
      .ContentType   =   "application/octet-stream "
      Case   "FIF "
      .ContentType   =   "application/fractals "
      Case   "FLR "
      .ContentType   =   "x-world/x-vrml "
      Case   "GIF "
      .ContentType   =   "image/gif "
      Case   "GTAR "
      .ContentType   =   "application/x-gtar "
      Case   "GZ "
      .ContentType   =   "application/x-gzip "
      Case   "H "
      .ContentType   =   "text/plain "
      Case   "HDF "
      .ContentType   =   "application/x-hdf "
      Case   "HLP "
      .ContentType   =   "application/winhlp "
      Case   "HQX "
      .ContentType   =   "application/mac-binhex40 "
      Case   "HTA "
      .ContentType   =   "application/hta "
      Case   "HTC "
      .ContentType   =   "text/x-component "
      Case   "HTM "
      .ContentType   =   "text/html "
      Case   "HTML "
      .ContentType   =   "text/html "
      Case   "HTT "
      .ContentType   =   "text/webviewhtml "
      Case   "ICO "
      .ContentType   =   "image/x-icon "
      Case   "IEF "
      .ContentType   =   "image/ief "
      Case   "III "
      .ContentType   =   "application/x-iphone "
      Case   "INS "
      .ContentType   =   "application/x-internet-signup "
      Case   "ISP "
      .ContentType   =   "application/x-internet-signup "
      Case   "JFIF "
      .ContentType   =   "image/pipeg "
      Case   "JPE "
      .ContentType   =   "image/jpeg "
      Case   "JPEG "
      .ContentType   =   "image/jpeg "
页: [1]
查看完整版本: response.setContentType