当前位置:网站首页>Fiddler use
Fiddler use
2022-04-23 03:15:00 【A happy wild pointer D】
1. The breakpoint
1.1 Automatic Breakpoints
(1)Rules→ Automatic Breakpoints→ Before Requests/After Responses
Before Requests: Request breakpoint , Request from Fiddler Interrupt before sending . It is often used to modify request parameters .
After Responses: Response breakpoint , The response was interrupted after returning from the server . Often used to modify response data .
This works for all requests , That is to say , When enabled , All requests or responses will be interrupted , It needs to be released manually .

(2) Refresh the page , By Fiddler interrupt , Modification request / The response data ( This is Before Requests, So it is to modify the request parameters ), Select the next action as needed .
Break on Response: Release request , Interrupt response .
Run to Completion: Release request , Return response .
Choose Response: Select file as response data . Click on Run to Completion after , Return the file directly ( amount to mock The role of ).

1.2 Breakpoint command
You can use commands to interrupt specific requests , Other requests are not affected .
- bpu string: Request breakpoint ,string Is a matching string . Such as :bpu 127.0.0.1, All requests for the domain name will be interrupted .
- bpu: Do not enable request breakpoints , amount to Disable.
- bpafter string: Response breakpoint ,string Is a matching string . Such as :bpafter login, For all url Contained in the login Interrupt response to string request .
- bpafter: Do not enable response breakpoints .
- g/go: Release interrupted request / Respond to , But the next new request will still be blocked .
- bps status: Interrupt the request for the specified response code . Such as bps 200 Indicates that all response codes of interrupt are 200 Request .
- bpm method: Interrupts the request for the specified method . This “ Method ” refer to HTTP Method , Such as GET、POST etc. .
- bpv method: relieve HTTP Method breakpoint .
2.mock data
2.1 Response breakpoint
It has been described in detail earlier , Skip here .
2.2 AutoResponser
(1) Add rules
Enable rule: Enable rules
Unmatched requests passthrough: All requests that do not match are released .
Matching rules :
| Prefix | Matching instructions | give an example |
| No prefix | Equivalent to fuzzy search , request url If the matching string is included in the, the matching will be successful |
|
| EXACT: | Equivalent to precise search , request url Match the matching string as like as two peas to match the success. |
|
| REGEX: | Regular matching , Followed by regular expression |
|
Executive action :
- It could be a website address , At this time, it plays the role of redirection
- It can also be fiddler Built in files 、 Custom response 、 Or local files
- Or set up / Add some information, etc

(2) Initiate request , You can see that the returned response is the content of the local file .

3.Composer
establish 、 Send a request , It can be used for simple interface testing .

3.1 Customize Request request
Fill in the request method manually 、url、 Request header 、 Request parameters, etc , Click on execute Send a request .
3.2 replay
Drag a session to Composer in , Click on execute Repeat the request .
3.3 Tamper with request data
(1) Drag a request from the conversation list on the left to Composer in ,fiddler The request mode will be automatically decomposed 、 request url、 Request header 、 Request body
(2) Modify request data : Request parameters 、 Request first class
(3) Click on execute Send request out

版权声明
本文为[A happy wild pointer D]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220627537724.html
边栏推荐
- 2022G2电站锅炉司炉考试题库及在线模拟考试
- Top ten project management software similar to JIRA
- EasyUI's combobox implements three-level query
- 由于3²+4²=5²,所以称‘3,4,5‘为勾股数,求n(包括n)以内所有勾股数数组。
- be based on. NETCORE development blog project starblog - (2) environment preparation and creation project
- 編碼電機PID調試(速度環|比特置環|跟隨)
- Flink实时数仓项目—DWS层设计与实现
- C language to achieve address book - (static version)
- 一套组合拳,打造一款 IDEA 护眼方案
- A set of C interview questions about memory alignment. Many people make mistakes!
猜你喜欢

Course design of Database Principle -- material distribution management system

Top 9 task management system in 2022

. net tip: talk about the problem that the scoped service cannot be obtained in the middleware structure

Experiment 6 input / output stream

《C语言程序设计》(谭浩强第五版) 第9章 用户自己建立数据类型 习题解析与答案

Judge whether there is a leap year in the given year
![[Mysql] LEFT函数 | RIGHT函数](/img/26/82e0f2280de011636c26931a74e749.png)
[Mysql] LEFT函数 | RIGHT函数

2022年P气瓶充装培训试题及模拟考试

Use of slice grammar sugar in C #

Maui initial experience: Cool
随机推荐
Top 9 task management system in 2022
Miniapi of. Net7 (special section): NET7 Preview3
Due to 3 ²+ four ²= five ², Therefore, we call '3,4,5' as the number of Pythagorean shares, and find the array of all Pythagorean shares within n (including n).
Use DFS to solve the problem of "number of dictionary rows"
Laravel new route file
全网讲的最细,软件测试度量,怎样优化软件测试成本提高效率---火爆
中后二叉建树
. net tip: talk about the problem that the scoped service cannot be obtained in the middleware structure
Experiment 5 components and event handling
The most understandable life cycle of dependency injection
Laravel's own paging query
The whole network is the most complete. How to do interface automation test? Proficient in interface automation test details
TP5 inherits base and uses the variables in base
数据挖掘系列(3)_Excel的数据挖掘插件_估计分析
Vs code setting line feed
Recursion - outputs continuously increasing numbers
Mise en service PID du moteur de codage (anneau de vitesse | anneau de position | suivant)
Charles uses three ways to modify requests and responses
求二叉树的叶子结点个数
PID debugging of coding motor (speed loop | position loop | follow)





