当前位置:网站首页>fiddler-AutoResponder
fiddler-AutoResponder
2022-07-07 10:09:00 【Splendid Qianyang 813】
https://www.cnblogs.com/yoyoketang/p/10604746.html
Preface
mock It can be said that it is a must ask topic in the interview , My first contact with mock When I was young, I also looked confused . although fiddler The tool has been used for a long time , Breaking point inside , The function of setting automatic data return has been used .
mock The popular point is to simulate the returned data , It's just that the interviewer pretends to force , So professional . Simulated return data , use fiddler Break point to modify the return data and settings AutoResponder Can achieve
AutoResponder
Use AutoResponder, Modify the returned data and save , Let the interface return the modified data
Visit the online address :https://www.cnblogs.com/yoyoketang/ Use fiddler Grab the bag
Find the captured data from the session box , Drag to AutoResponder page
Right click to edit the returned content
It opens at raw, Modify the returned body Content , Point after modification save preservation
Next check Enable rules And check the interface to be set , Re open the browser to see that the content has been modified
Check Enable rules At the same time , You'd better tick it at the same time Unmatched requests passthrougth, This option is to release all unmatched
Add Rule
If we want to request an interface address , return json data , Add here Add Rule It can also be realized
It opens at Rule Editor The second input box , Pick the last one “Find a file”, Find the local json The lower right corner behind the file Save preservation
json The contents of the document are as follows
{"error_code": 0,
"reason": "success",
"result": {
"data": {
"conclusion": "[ Good luck + Official luck + Fortune + Talent and skill ] Like a dragon in the clouds , float upon the clouds , wisdom Strive for progress , Just a little success ",
"analysis": " Desire is difficult and hope is high , If the plan succeeds, the financial resources are great , Suspicion and jealousy are from Change , Like a dragon riding on the cloud ."
}
}
}
Next, enter... In the browser :https://www.baidu.com/
The setting just now will appear json Content
Set the return to local html The same is true for files
Set address jump
When visiting an Internet address , How to jump to the local connection ? You can also set the rule jump here
Set the rules as shown in the following figure , visit https://www.sina.com.cn/
Jump to visit the local jenkins Address http://localhost:8080/login
Analog status code
AutoResponder It can also simulate the status code , such as 302, 401, 502 such
revisit https://www.sina.com.cn/
when , It will pop up 401 Authentication box
Network latency can also be simulated *delay:100
边栏推荐
- ArcGIS operation: batch modify attribute table
- In addition to the objective reasons for overtime, what else is worth thinking about?
- Es classes and objects, prototypes
- Arcgis操作: 批量修改属性表
- 2016 CCPC Hangzhou Onsite
- ES6中的函數進階學習
- Selenium+bs4 parsing +mysql capturing BiliBili Tarot data
- Deep understanding of UDP, TCP
- Basic chapter: take you through notes
- 终于可以一行代码也不用改了!ShardingSphere 原生驱动问世
猜你喜欢
Internship log - day07
VS Code指定扩展安装位置
嵌入式背景知识-芯片
Wallys/IPQ6010 (IPQ6018 FAMILY) EMBEDDED BOARD WITH ON-BOARD WIFI DUAL BAND DUAL CONCURRENT
Deconvolution popular detailed analysis and nn Convtranspose2d important parameter interpretation
Basic use of JMeter to proficiency (I) creation and testing of the first task thread from installation
The applet realizes multi-level page switching back and forth, and supports sliding and clicking operations
Arcgis操作: 批量修改属性表
Enterprise practice | construction of banking operation and maintenance index system under complex business relations
A wave of open source notebooks is coming
随机推荐
[original] what is the core of programmer team management?
ORM--查询类型,关联查询
Introduction to uboot
为什么安装mysql时starting service报错?(操作系统-windows)
Flex flexible layout
Analyze Android event distribution mechanism according to popular interview questions (I)
14th test
Interface test
Applet popup half angle mask layer
ORM -- logical relation and & or; Sort operation, update record operation, delete record operation
Gauss elimination
The new activity of "the arrival of twelve constellations and goddesses" was launched
XML配置文件解析与建模
Deconvolution popular detailed analysis and nn Convtranspose2d important parameter interpretation
中国首款电音音频类“山野电音”数藏发售来了!
STM32产品介绍
ES6中的函數進階學習
Postman interface test V
phpcms实现PC网站接入微信Native支付
Basic use of JMeter to proficiency (I) creation and testing of the first task thread from installation