zoukankan      html  css  js  c++  java
  • 表述资源的数据格式(通过媒体类型表述)

    常见的媒体类型如

    text/html HTML格式

    text/plain :纯文本格式
    text/xml :  XML格式(它会忽略xml头所指定编码格式而默认采用us-ascii编码)
    image/gifgif图片格式
    image/jpegjpg图片格式
    image/png:png图片格式
    application/xhtml+xmlXHTML格式
    application/xml     : XML格式(它会根据xml头指定的编码格式来编码)
    application/atom+xml Atom XML聚合格式
    application/json    JSON数据格式
    application/pdf      pdf格式
    application/msword  Word文档格式
    application/octet-stream 二进制流数据(如常见的文件下载)
    application/x-www-form-urlencoded <form encType=””>中默认的encType,form表单数据被编码为key/value格式发送到服务器(表单默认的提交数据的格式)
    multipart/form-data 需要在表单中进行文件上传时,就需要使用该格式。
     
  • 相关阅读:
    Add Binary <leetcode>
    那些坑
    面试集锦
    随看随记
    View的事件处理流程
    android studio view.setId报错
    EditText的hint不显示
    EditText 焦点
    Android拍照的那些事
    微信支付提示签名错误
  • 原文地址:https://www.cnblogs.com/victory8023/p/6201578.html
Copyright © 2011-2022 走看看