post报文请求 (给服务器看的) — 通过form表单发送的POST请求
POST /post HTTP/1.1
Host: localhost:8080
Connection: keep-alive
Content-Length: 0
Pragma: no-cache
Cache-Control: no-cache
sec-ch-ua: "Google Chrome";v="87", " Not;A Brand";v="99", "Chromium";v="87"
sec-ch-ua-mobile: ?0
Upgrade-Insecure-Requests: 1
Origin: http://localhost:8081
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,'*/*';q=0.8,application/signed-exchange;v=b3;q=0.9
Sec-Fetch-Site: same-site
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: http://localhost:8081/
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9

报文首行

POST http://localhost:8080/ HTTP/1.1

报文头

Host: localhost:8080
Connection: keep-alive
Content-Length: 0
    -- 返回数据的长度
Pragma: no-cache
    -- 不走缓存
Cache-Control: no-cache
    -- 不走缓存(强缓存)
sec-ch-ua: "Google Chrome";v="87", " Not;A Brand";v="99", "Chromium";v="87"
sec-ch-ua-mobile: ?0
Upgrade-Insecure-Requests: 1
      -- 浏览器告诉服务器可以使用 https 或者 http1.1
DNT : 1
    -- 浏览器告诉服务器:禁止跟踪.最终是否跟踪,需要看服务器是否配合
Origin: http://localhost:8081
    -- 精简版的Referer
Content-Type: application/x-www-form-urlencoded
    -- 浏览器告诉浏览器,发送数据的类型
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,'*/*';q=0.8,application/signed-exchange;v=b3;q=0.9
    -- 浏览器能够接受的资源类型及优先级,优先级不写默认是1, 1的有优先级是最高的.
Sec-Fetch-Site: same-site
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: http://localhost:8081/
    -- 看本次请求是从哪里发出的, 1.防盗链 2.广告计费
Accept-Encoding: gzip, deflate, br
    -- 浏览器告诉服务器,浏览器所能接受的压缩文件类型
Accept-Language: zh-CN,zh;q=0.9
    -- 浏览器告诉服务端,浏览器所能支持的语言种类,及权重

报文体

name=kobe&password=123

备注

  • ​ form表单的pot请求和get请求 参数均已 urlencoded 形式进行编码
  • get 请求将 urlencoded 编码的参数放入请求地址携带给服务器,所以称之为,查询字符串参数
  • post 请求将 urlencoded 编码的参数放入请求题,所以称之为: 请求参数.
暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇