Use Charles to capture https packets

1. Charles installation

Download and install Charles from the official website:
https://www.charlesproxy.com/download/

2. HTTP packet capture

(1) Check the IP address of the computer



 

2) Set up mobile HTTP proxy

Connect the mobile phone to the computer, click "Settings -> Wireless LAN -> Connected WiFi", set the HTTP proxy:
the server is the computer IP address: such as 192.168.0.100
Port: 8888



 After setting the proxy, you need to open Charles on the computer to access the Internet

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

Open an app on your phone

Click "Allow" on the computer to allow, and the HTTP request column of the mobile phone appears

3. HTTPS packet capture

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

Mobile browser to open https://chls.pro/ssl

And install the certificate, remember to trust the certificate.

Note: For IOS version 10.3+, additional settings are required:

Settings->General->About This Machine->Certificate Trust Settings->Charles Proxy CA Certificate open there.

 

At this point, you can try the Https packet capture effect.

 

Reference: https://www.charlesproxy.com/documentation/using-charles/ssl-certificates/

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326310469&siteId=291194637