Use of iOS packet capture tool Charles

1. Download and install Charles. Official website download address

2. Choose MAC System Preferences > Network to view IP addresses

3. Set the HTTP proxy for the mobile phone

After setting up the agent, you need to open Charles on your computer to access the Internet

4. Open Charles on the computer for HTTP packet capture

You open up an App or a browser or something, Charles will pop up like this, right

HTTPS caught

You need to add the following steps to HTTP: 1. Install the Charles certificate

When you select the real computer, the download address of the real computer certificate will be displayed as shown in the following figure

Once the download is complete, open the device Settings options General -> Description file

Open About local Certificate trust and select Trust Certificate

If you still cannot see the data, whitelist the request as described in HTTP above