HTTP--简单请求和复杂请求的区别

简单请求必须符合以下规定:

  1. 只能使用get/post/head请求方式
  2. 不能手动设置以下集合之外的请求头信息
    • accept
    • accept-language
    • content-language
    • content-type
  3. content-type只能设置以下内容:
    • text/plain
    • multipart/form-data
    • application/x-www-http-urlencoded
  4. 不能为XMLHttpRequestUpdate注册监听器
  5. 请求中没有使用readableStream对象

非简单请求的都是复杂请求

posted @ 2020-10-29 11:16  ashen1999  阅读(2019)  评论(0编辑  收藏  举报