The installation

Address: www.charlesproxy.com/

Set up the

Certificate of 1.

Open Charles -> help -> SSL Proxying -> Install Charles Root Certificate

This step will add Charles’s certificate to the MAC and automatically open the MAC keystring. If not open go to keychain access -> Type -> certificate find Charles Proxy….

Double-click the certificate and trust -> When using this certificate -> Always Trust

2. Check network Settings

System Preferences -> Network -> Advanced -> Proxy

If web proxy and secure web proxy are selected to 127.0.0.1:8888, the configuration is successful

There is a pit here, if you have used other proxy Settings, you need to uncheck automatic proxy configuration, otherwise you will be very confused to get the request information!!

3. Set SSL proxy

Proxy -> SSl Proxying Settings

Add *:* wildcard, or port 443, and host and port that you need to listen on

Save the Settings and select Enable SSL Proxying

4. Chrome download plugin SwitchyOmega

Set the system agent

use

1. Listen for requests

Proxy -> Start Recording

Proxy -> Start SSL Proxying

Proxy -> macOS Proxy

Enable the plug-in SwitchyOmega -> system agent

This will already catch the SSL request

2. Modify request parameters

First open the interface you want to modify and right-click Breakpoints

Then modify the request information

Execute