当前位置:网站首页>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
边栏推荐
- ASP. Net 6 middleware series - Custom middleware classes
- Use DFS to solve the problem of "number of dictionary rows"
- After the mobile phone is connected to the computer, how can QT's QDIR read the mobile phone file path
- Fundamentals of software testing and development
- 《C语言程序设计》(谭浩强第五版) 第9章 用户自己建立数据类型 习题解析与答案
- Configuration table and page information automatically generate curd operation page
- 全网讲的最细,软件测试度量,怎样优化软件测试成本提高效率---火爆
- Miniapi of. Net7 (special section): NET7 Preview3
- Xutils3 corrected a bug I reported. Happy
- The most easy to understand dependency injection and control inversion
猜你喜欢
为什么BI对企业这么重要?
ASP. Net 6 middleware series - execution sequence
【无标题】
MySQL port is occupied when building xampp
. net tip: talk about the problem that the scoped service cannot be obtained in the middleware structure
Ide-idea-problem
Comprehensive calculation of employee information
“如何实现集中管理、灵活高效的CI/CD”在线研讨会精彩内容分享
Aspnetcore configuration multi environment log4net configuration file
How does Microsoft solve the problem of multiple programs on PC side -- internal implementation
随机推荐
Is it difficult to choose binary version control tools? After reading this article, you will find the answer
LNMP MySQL allows remote access
准备一个月去参加ACM,是一种什么体验?
Web Course Design - his system
[MySQL] left Function | Right Function
The most detailed in the whole network, software testing measurement, how to optimize software testing cost and improve efficiency --- hot
It can receive multiple data type parameters - variable parameters
Laravel's own paging query
C language to achieve address book - (static version)
2022年做跨境电商五大技巧小分享
Using stack to solve the problem of "mini parser"
How does Microsoft solve the problem of multiple programs on PC side -- internal implementation
Iotos IOT middle platform is connected to the access control system of isecure center
Yes Redis using distributed cache in NE6 webapi
[authentication / authorization] customize an authentication handler
A comprehensive understanding of static code analysis
Xamarin effect Chapter 22 recording effect
Recommend reading | share the trader's book list and ask famous experts for trading advice. The trading is wonderful
Vs code setting line feed
队列的存储和循环队列