Wireshark数据包分析之HTTP协议包解读

网友投稿 706 2022-10-16


Wireshark数据包分析之HTTP协议包解读

*此篇博客仅作为个人笔记和学习参考

GET方法的数据包分析

Hypertext Transfer ProtocolGET / HTTP/1.1\r\n #请求行信息#[Expert Info (Chat/Sequence): GET / HTTP/1.1\r\n] #专家信息#Request Method: GET #请求的方法#Request URI: / #请求的URI#Request Version: HTTP/1.1 #请求的版本#Host: boomgg.cn\r\n #请求主机#Connection: keep-alive\r\n #使用持久链接#Upgrade-Insecure-Requests: 1\r\n #升级不安全请求#User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36\r\n #浏览器类型#Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8\r\n #请求的类型#Accept-Encoding: gzip, deflate, sdch\r\n #请求的编码格式#Accept-Language: zh-CN,zh;q=0.8\r\n #请求语言#Cookie: CNZZDATA155540=cnzz_eid%3D2093723420-1483596271-%26ntime%3D1483596271\r\n #Cookie信息#Cookie pair: CNZZDATA155540=cnzz_eid%3D2093723420-1483596271-%26ntime%3D1483596271\r\n #Cookie对#[Full request URI: #请求的URI全称#[HTTP request 1/3] #HTTP请求进度#[Response in frame: 12] #响应帧#[Next request in frame: 15] #下一个请求帧#

Hypertext Transfer ProtocolHTTP/1.1 200 OK\r\n #响应行信息#[Expert Info (Chat/Sequence): HTTP/1.1 200 OK\r\n] #专家信息#Request Version: HTTP/1.1 #请求版本#Status Code: 200 #状态码#Response Phrase: OK #响应短语#Date: Tue, 31 Jan 2017 07:34:36 GMT\r\n #响应时间#Server: Apache/2.4.6 (CentOS) PHP/5.4.16\r\n #服务器信息#Last-Modified: Tue, 17 Jun 2014 16:00:47 GMT\r\n #上一次修改#ETag: "4b8d-4fc0a3f32a9c0"\r\n #上一次修改标识#Accept-Ranges: bytes\r\n #接收范围#Content-Length: 19341\r\n #内容长度#Keep-Alive: timeout=5, max=99\r\n #保持响应时间,以及最大值#Connection: Keep-Alive\r\n #使用持久链接#Content-Type: text/css\r\n #响应的内容类型#[HTTP response 2/3] #HTTP响应#[Time since request: 0.423110000 seconds] #响应使用时长#[Prev request in frame: 5] #上一个请求的帧#[Prev response in frame: 12] #上一个响应的帧#[Request in frame: 15] #请求的帧#[Next request in frame: 47] #下一个请求的帧#[Next response in frame: 59] #下一个响应的帧#File Data: 19341 bytes #文件数据大小#Line-based text data: text/css #数据#

POST方法的数据包分析

基本同上Hypertext Transfer ProtocolPOST /Login.aspx HTTP/1.1\r\n[Expert Info (Chat/Sequence): POST /Login.aspx HTTP/1.1\r\n][POST /Login.aspx HTTP/1.1\r\n][Severity level: Chat][Group: Sequence]Request Method: POSTRequest URI: /Login.aspxRequest Version: HTTP/1.1Host: 192.168.1.113\r\nConnection: keep-alive\r\nContent-Length: 232\r\n[Content length: 232]Cache-Control: max-age=0\r\nOrigin: 1\r\nUser-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36\r\nContent-Type: application/x-text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8\r\nReferer: gzip, deflate\r\nAccept-Language: zh-CN,zh;q=0.8\r\nCookie: CNZZDATA155540=cnzz_eid%3D1111972901-1485847397-%26ntime%3D1485847397\r\nCookie pair: CNZZDATA155540=cnzz_eid%3D1111972901-1485847397-%26ntime%3D1485847397\r\n[Full request URI: request 3/5][Prev request in frame: 103][Response in frame: 116][Next request in frame: 117]File Data: 232 bytesHTML Form URL Encoded: application/x-item: "VIEWSTATE" = "/wEPDwULLTE2NDIxODkzMTdkZJ7MzhenUUfXodvToYkVaXvn0yfdfHjuKEO48w8QcgNA"Form item: "EVENTVALIDATION" = "/wEWBAKgrJH+CQLr/4HfAgLPyszgDQKr1YrVCg3Y+W/qSNhR3JLDwqBQ34U2Wh/M2l3/ijyDFw7qhPPT"Form item: "UserID" = "Kemin" #这里可以看到发送的用户名Form item: "UserPass" = "Fang" #这里可以看到发送的密码Form item: "Log" = "Login"

基本同上Hypertext Transfer ProtocolHTTP/1.1 200 OK\r\n[Expert Info (Chat/Sequence): HTTP/1.1 200 OK\r\n][HTTP/1.1 200 OK\r\n][Severity level: Chat][Group: Sequence]Request Version: HTTP/1.1Status Code: 200Response Phrase: OKCache-Control: private\r\nContent-Type: text/html; charset=utf-8\r\nContent-Encoding: gzip\r\nVary: Accept-Encoding\r\nServer: Microsoft-IIS/7.5\r\nX-AspNet-Version: 4.0.30319\r\nX-Powered-By: ASP.NET\r\nDate: Tue, 31 Jan 2017 07:43:17 GMT\r\nContent-Length: 1434\r\n[Content length: 1434]\r\n[HTTP response 4/5][Time since request: 0.102894000 seconds][Prev request in frame: 114][Prev response in frame: 116][Request in frame: 117][Next request in frame: 133][Next response in frame: 176]Content-encoded entity body (gzip): 1434 bytes -> 2563 bytesFile Data: 2563 bytesLine-based text data: text/html


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Spring整合Mybatis的全过程
下一篇:Java中使用Filter过滤器的方法
相关文章

 发表评论

暂时没有评论,来抢沙发吧~