当前位置:网站首页>Fiddler packet capture principle explanation and example operation
Fiddler packet capture principle explanation and example operation
2022-08-07 14:01:00 【shiny umbrella】
Fiddler工作图解

Before explaining caught,先看一下我们的HTTPRequest header contains the parameters,这些参数的含义是什么.
HTTPRegular request header
| 请求头 | 含义 |
|---|---|
| Accept | 客户端支持的数据类型 |
| Accept-Charset | The client USES the encoding |
| Accept-Encoding | 客户端支持的数据压缩格式 |
| Accept-Language | 客户端的语言环境 |
| Host | The client wants to access a host name |
| If-Modified-Sence | 资源的缓存时间 |
| Referer | The client from the resource access server |
| User-Agent | 客户端的软件环境 |
| Cookie | 客户端可以向服务器带数据 |
| Connection | After the request is completed is shut down or keep connection |
| Date | The client's current request time |
抓包
Grasp package is the client sendserver的网络包,以及serverReturned to the client's package.
HTTPCaught the sample and parameters on
示例:
- get请求:在百度中搜索 fiddler的使用,查看返回结果.
- post请求:A website login
请求
在百度中搜索 fiddler的使用,抓取到的数据:Request header and line as shown below:
1、请求行
如图所示,This part is request line.
数据copyThe content is:
GET /s?ie=utf-8&f=3&rsv_bp=1&rsv_idx=1&tn=monline_3_dg&wd=fiddler%E4%BD%BF%E7%94%A8&fenlei=256&rsv_pq=d410c48d002f6544&rsv_t=16c9GIjIWx7au4zPRdR1ReDb8luE9OKPs8zeEqmb%2Bh7lQvG%2B4SonxX5O2LsV&rqlang=en&rsv_dl=ih_0&rsv_enter=1&rsv_sug3=2&rsv_sug1=2&rsv_sug7=001&rsv_sug2=1&rsv_btype=t&rsp=0&rsv_sug9=es_2_1&rsv_sug4=2835&rsv_sug=9 HTTP/1.1
These data meaning, in turn, is:请求方法、请求路径(包含了请求参数)、请求协议.
Request parameters can also see here,Comparison of the be clear at a glance.
2、请求头
As shown in the figure below is the content of the request header,Due to the content of the request header is too much,就不方便copy出来看了.
3、请求体
get请求没有请求体.
使用查询ip地址的postRequest to show the content of the request body.
响应
在百度中搜索 fiddler的使用,抓取server返回给客户端的响应消息.
1、状态行
如图所示,This part is the status line marked,The meaning of these parameters, in turn, is:响应协议、响应状态码、State response message.
2、响应头
Tell the browser what is server returned data.
3、响应体
如图所示,We see is the response body
3.1、查看响应结果
Depending on the value returned by the,It is ok to choose a different data format.
- 文本:TextView
- 图片:ImageView
- 网页:WebView
- json:Json
- xml:XML
3.2、中文乱码
If the response results contained in Chinese,Will display stil,不要慌,Click on the yellow block,The result of the response decoding can be.
正常显示了:
get和post区别
- get没有请求体,post有请求体
- get的请求参数拼接在url之后,用
?分割URL和传输数据,Request parameters with&相连,而postSubmit data inhttp请求的请求体中.
例如:加粗的是url,Is behind the request parameters and values
https://www.baidu.com/s?
ie=utf8&f=3&rsv_bp=1&rsv_idx=1&tn=monline_3_dg&wd=fiddler%E4%BD%BF%E7%94%A8&fenlei=256&rsv_pq=d410c48d002f6544&rsv_t=16c9GIjIWx7au4zPRdR1ReDb8luE9OKPs8zeEqmb%2Bh7lQvG%2B4SonxX5O2LsV&rqlang=en&rsv_dl=ih_0&rsv_enter=1&rsv_sug3=2&rsv_sug1=2&rsv_sug7=001&rsv_sug2=1&rsv_btype=t&rsp=0&rsv_sug9=es_2_1&rsv_sug4=2835&rsv_sug=9
- getRequest parameters of co,因为浏览器的urlInput box has length show.而postThe request parameter of any number
- get请求没有post请求安全,因为get的请求参数在url中可见,而且getTo obtain the response data fromcache(缓存)中获取的.
- getValue of the variable access request method is
Request.querystring.postTo obtain the value of a variable method isRequest.body
HTTPS抓包
在抓取httpsUnder the agreement of packets before,我们要先在fiddler中配置HTTPs,Consult my blog:fiddler工具详解-包含配置https
https的抓包和httpCaught the same,The above example some is fromhttps类型的网站.
快速抓包tips
- 点击capturing开启抓包,Access to the data they want and then shut downcapturing,不要让fiddler继续抓包
- 隐藏图片请求、Hidden link request.设置:菜单栏 - Rules - 勾选 hide image request和hide CONNECTs.
- 关键字搜索,使用ctrl + f,在sessionList to find the key,To quickly locate you want that a request.然后选中这个session,右键- Mark - Red,可以标记一下.
- 控制capturingThe beginning of the time,When we entered the final page started to capture,And then refresh this page,So you can directly get the list of session we want.
- In the auxiliary tool bar - FiltersCan be set in the capture data from a web site.设置方法参考:fiddler工具详解 - 包含Filters的使用,在这篇文章的最后一部分.
In the interface testing purpose
如果devPeople didn't give interface document,So we can get interface by caught the way of information:请求url,请求方法、参数、响应结果.
还是以搜索 fiddler使用 为例展示.
The request of the interface path can be found here.辅助工具栏 - inspector - Raw,Request method is also can seeget请求,
打开postman,创建一个请求,输入请求URL,然后点击send,You can see our request the results.
边栏推荐
- Commonly used regular expressions and their use
- Qt implementation based on matchtemplate long shots
- 学习笔记:时间复杂度和空间复杂度
- NestedTensor
- Installation and usage example of target detection toolbox MMDetection
- 【MySql进阶】索引详解(二):Mysql InnoDB索引原理、B+树、聚簇索引、二级索引、联合索引
- 网络基础(三)02-网络的基础概念——DNS服务器之hosts文件配置 & 网站访问流程之三次握手 & BS 架构-浏览器访问、CS 架构-安装软件客户端 & 静态网站和动态网站-数据是否动态
- ReentrantReadWriteLock Read-write lock
- 6. Chinese version of cuBLAS Development Guide--SetStream() and SetWorkspace() in cuBLAS
- Event registration: How to efficiently respond to the current real-time scene needs?
猜你喜欢

rpc.rquotad: unable to register (RQUOTAPROG, RQUOTAVERS, udp)

关于LANC控制镜头中出现的问题

Tapdata Open Source Project Basic Tutorial: Features and Practical Demonstrations

ReentrantReadWriteLock读写锁

LOGO 8.3 Web Server function

内存管理(二)——内存分段

VMware's record of virtual machine expansion

_ dynamic programming code hakuouki zuisouroku note cash II _518 change

传统网站与数字化网站的对比

Fiddler断点图文讲解
随机推荐
AICOCO AI Frontier Promotion (8.7)
2022年广东省安全员A证第三批(主要负责人)考试模拟100题及在线模拟考试
实现Sprite的Circle Fill效果及打了图集出现的问题
修改mysql 数据表主键
网页设计(二)
07.自定义指令传参小窍门
VMware's record of virtual machine expansion
一个程序从编译到运行的全过程
[华为云在线课程][SQL语法分类][数据查询][学习笔记]
网络基础(三)02-网络的基础概念——DNS服务器之hosts文件配置 & 网站访问流程之三次握手 & BS 架构-浏览器访问、CS 架构-安装软件客户端 & 静态网站和动态网站-数据是否动态
eyb: Creation process: build the environment to display the menu (1)
Postgresql logical backup tools pg_dump and pg_resotre learning
Web Design (2)
Fiddler breakpoint graphic explanation
2022/8/5 拓扑排序+dp
MySQL ERROR: ERROR 1292 (22007) : Incorrect date value: '1988' for column 'birthday' at row 1
Network Foundation (3) 02-Basic Concept of Network - DNS server hosts file configuration & three-way handshake of website access process & BS architecture - browser access, CS architecture - installat
Measure distance between objects in an image using OpenCV
redis总结_原理
5.cuBLAS开发指南中文版--cuBLAS中的Create()和Destroy()