当前位置:网站首页>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
边栏推荐
- 14th test
- Postman interface test II
- Win10 installation vs2015
- The landing practice of ByteDance kitex in SEMA e-commerce scene
- 哈夫曼编码压缩文件
- Application of C # XML
- Parameter sniffing (1/2)
- Integer inversion
- Wallys/IPQ6010 (IPQ6018 FAMILY) EMBEDDED BOARD WITH ON-BOARD WIFI DUAL BAND DUAL CONCURRENT
- Why does the starting service report an error when installing MySQL? (operating system Windows)
猜你喜欢

Postman interface test I

Video based full link Intelligent Cloud? This article explains in detail what Alibaba cloud video cloud "intelligent media production" is

ORM model -- associated fields, abstract model classes
![[original] what is the core of programmer team management?](/img/11/d4b9929e8aadcaee019f656cb3b9fb.png)
[original] what is the core of programmer team management?

STM32中AHB总线_APB2总线_APB1总线这些是什么

ORM模型--数据记录的创建操作,查询操作

The physical meaning of imaginary number J

每周推荐短视频:L2级有哪些我们日常中经常会用到的功能?
![[untitled]](/img/5b/61efbaded29250bc8d921b0cf087c8.png)
[untitled]

Deconvolution popular detailed analysis and nn Convtranspose2d important parameter interpretation
随机推荐
Some thoughts on the testing work in the process of R & D
C socke server, client, UDP
Delete a record in the table in pl/sql by mistake, and the recovery method
Basic chapter: take you through notes
web3.0系列之分布式存储IPFS
Gauss elimination
Google Colab装载Google Drive(Google Colab中使用Google Drive)
Writing file types generated by C language
C# 初始化程序时查看初始化到哪里了示例
The applet realizes multi-level page switching back and forth, and supports sliding and clicking operations
反卷积通俗详细解析与nn.ConvTranspose2d重要参数解释
Can I open a stock trading account online? Is it safe
Software modeling and analysis
Pit encountered by vs2015 under win7 (successful)
企业实战|复杂业务关系下的银行业运维指标体系建设
MongoDB创建一个隐式数据库用作练习
Parameter sniffing (1/2)
2020ccpc Weihai J - Steins; Game (SG function, linear basis)
ArcGIS operation: batch modify attribute table
Please ask me a question. I started a synchronization task with SQL client. From Mysql to ADB, the historical data has been synchronized normally