[C] 纯文本查看 复制代码
GET /thread-1739729-1-1.html HTTP/1.1
Host: www.52pojie.cn
Connection: keep-alive
Cache-Control: max-age=0
DNT: 1
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 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-Language: zh-CN,zh;q=0.9
Cookie: ******
Accept-Encoding: gzip, deflate
你看,这个就是一个本页面的请求数据,只要能解析出这些东西就可以确定是个HTTP请求,其实只要关注前2行,这是必须的。 |