首页 Python通用模块视频教程 http请求和响应报文数据解读
pay pay

http请求和响应报文数据解读

日期: 五月 5, 2023, 12:37 p.m.
阅读: 126
作者: Python自学网-村长

摘要: http请求和响应报文数据解读

'''http请求:请求行,请求头,请求体
1.请求行
GET /index.html HTTP/1.1

HTTP/2.0
:method: GET
:authority: www.taobao.com
:scheme: https
:path: /index.html

2.请求头
Host: www.taobao.com
Connection: keep-alive/close
Cache-Control: max-age=0
sec-ch-ua: "Chromium";v="94", "Google Chrome";v="94", ";Not A Brand";v="99"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Windows"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 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: none
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
Cookie: t=cf715ac292e4c328f0a9a14e373d74af; cna=/B7UGSPZbWgCAbel34RnN/rm; _m_h5_tk=c2b338bf74c354e0005e2af3bbf2d73f_1633205729641; _m_h5_tk_enc=2c763c803328971917fcc8208d4c12df; cookie2=1e5a6b9b5964ca295e635c53733bb864; _tb_token_=53ea01a9ede17; _samesite_flag_=true; xlly_s=1; tfstk=cBZRBE_yusfktQDYQzQcdqkGK8yRa35KGLGHvtnqc_PvlUxexsVLjldb6aMI_bBA.; l=eBr_XI7ggREOGZkSBOfZlurza779RIRAguPzaNbMiOCP_u5J5d5cW6e95FTvCnGVh6SJR3JSNTj2BeYBqSV7kOiEIosM_pkmn; isg=BIqKbCUh352RG1MlQvQWTlP223Asew7VqC8G6BTDDl1oxyqB_AvY5Qq90zMbN4Zt
If-None-Match: W/"1b14f-GgHDNKeF2FDFx9HZJh0d6ZSpAEE"

3.请求体:一般在POST请求的时候才会有请求体
loginId	  abc123456
password2	ab546f234b54940309dd8308c3e8cb3b04ee396fe4512d3b10f607b37992fffa48f6594f6a12e3d8e3e02a2fce33dfcd48e6dd36f6453459c80062006dff082b933f50e6085974a866853ef3f3f00c19cb57e0a789c4c610f0f86af5b9bdc354a5fe35c7c7c1b1104383c06adbf0a5e527977f9f193ca9ce906e102a09014508
'''

 

原创视频,版权所有,未经允许,切勿转载,违者必究!
回顶部