zoukankan      html  css  js  c++  java
  • request.ContentType的可取值

    服务器送给客户端的数据包类型可以是text/html文本,也可以是gif/jpeg图形文件,所以每次传输前,我们都必须告知客户端将要传输的文件类型,一般默认情况下为“Text/Html”类型。
    ContentType类型
    “.*“=“application/octet-stream“
    “.001“=“application/x-001“
    “.301“=“application/x-301“
    “.323“=“text/h323“
    “.906“=“application/x-906“
    “.907“=“drawing/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/*“
    “.cml“=“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“=“

  • 相关阅读:
    Jquery:强大的选择器<一>
    要经营我的园子了!!!
    Json在Struts中的转换与传递
    MyEclipse快捷键大全
    Pyqt在QListWidget中添加右键菜单
    swift中Double转String
    Spring MVC 关于分页的简单实现
    Spring MVC 通过@Value注解读取.properties配置内容
    SQL 查询语句(备份)
    Idea使用说明
  • 原文地址:https://www.cnblogs.com/xinzhuangzi/p/4100722.html
Copyright © 2011-2022 走看看