http协议

GET / HTTP/1.1
Host: home.firefoxchina.cn
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate
Connection: close
Cookie: Hm_lvt_dd4738b5fb302cb062ef19107df5d2e4=1631185038,1631604510,1632651797; acw_tc=7b39758516327373271224137e63a5c16563e7c41a30f9856fda805e9c12cd
Upgrade-Insecure-Requests: 1
Cache-Control: max-age=0

get网页提交数据的方式,post提交常见于表单,登录页面 request

host意思是要访问的地址

user-agen:是用什么软件访问的,可以按照题目的的提示修改

accept-encoding:是网页支持的编码方式

cookie session 相当于客户端的身份证

x-forwarded-for:客户端真实IP,有时会被用作一种过滤,但是可以伪造IP绕过

 http 报文格式

 

posted @ 2021-09-27 18:22  我吃白葡萄  阅读(66)  评论(0)    收藏  举报