The previous recording method is the PC-side access, but if we want to record our own app background request interface information, if you get this har file. In fact, it is also very simple, that is, through Charles, let the mobile phone access request to go this Charles agent on the line Charles way to open Charles Agent
iOS Development tools--Network packet analysis tools Charles
Based on the configuration of this article, connect the phone to the PC to the agent to turn on recording
Click the second button in the red box above to turn the recording on/off and the first to clear the data button.
We turn on this recording feature this time. Then the client that operates our mobile app,charles will refresh a lot of data, which is the request of the mobile phone side.
Save As Har file
Select the URL data you want to save, then click File->export to select the file type har file.