1. Charles installation

Charles:

https://www.charlesproxy.com/download/ 2. HTTP caught

(1) Check the IP address of the computer

(2) Set HTTP proxy for mobile phone Connect the mobile phone to the computer, click “Settings -> WIRELESS LAN -> Connected WiFi”, set HTTP proxy:

IP address of the server: 172.16.120.79 Port: 8888

(3) Open Charles on the computer for HTTP packet capture

Open an App or browser on your phone. If you can’t access the Internet, check whether the previous steps are correct

Click “Allow” to display a list of HTTP requests for the mobile phone

HTTPS packet capture needs to be configured on the basis of HTTP packet capture

The following describes how to configure HTTP packet capture based on HTTP packet capture: (1) Install the SSL certificate on the PC

(2) Install SSL Certificate on Mobile Device by clicking Help -> SSL Proxying -> Install Charles Root Certificate on a Mobile Device

Pop-up window appears to get the address CHLS. Pro/SSL

Enter the address CHLS. Pro/SSL in the Safari browser of the mobile phone. The certificate installation page is displayed

  • Note 1: If CHLS. Pro/SSL cannot be installed in Safari, please (1) set up the HTTP proxy on your phone (2) keep Charles open on your computer
  • Note 2: For iOS 10.3, you need to enable full trust Charles certificates in Settings → General → About This machine → Certificate Trust Settings

(3) Charles set Proxying Settings -> SSL Proxying Settings…

Check Enable SSL Proxying and click Add

Host sets the HTTPS interface to capture, such as this one

Let the mobile phone resend the HTTPS request, and you can see the captured packet

Note: If you do not capture packets, please turn off the HTTP proxy of your mobile phone. Otherwise, you will not be able to access the Internet after disconnecting from your computer