How to use a tool to capture the data returned by the Fiddler modification background interface and capture the data returned by the fiddler
How to use a tool to capture data returned by the Fiddler modification background Interface
In client debugging, it is often necessary to deal with the background interface. Sometimes we want to modify the data returned by the background to verify that some functions of the client are in good condition, or sometimes the data returned by the background is not what we want, we can use the packet capture tool Fiddler to modify the data returned by the background.
First, determine the interface to modify. For example, you need to modify the interface here:XXX/psyapi/recommend/recForYou. do
The returned results of this interface are shown in:
The list contains three data entries. to delete the last data entry, follow these steps:
Copy jsondata to javastxtsung. The local_json.txt file is as follows:
On the left-side panel of Fiddler, click the interface to be modifiedXXX/psyapi/recommend/recForYou. do, switchAutoResponder option view, select the first two check boxes, type the absolute path of the local json file into the bottom input box, and clickSave. :
Now, when you request this interface, you will find that the results returned in the background are the same as those returned in the local file. Surprise ~