download
You can go to the official website of Charles and download the corresponding version according to your own operating system, then install it, and then open the Charles tool.
The Charles version of this article is 4.2.6. The operating system is MAC Mojave. The mobile operating system is ios 12.1
http
- Make sure your phone and computer are on the same network.
- The mobile phone goes to the Configuration agent (ios: Settings -> WLAN -> Connected wifi-> Configuration Agent).
- Set to manual, the server enters the IP address of the computer (for example, 192.168.2.69). The port is 8888 (Charles default port. If you want to change the port, go to Proxy -> Proxy Setting to check).
- Storage.
- Open Charles and you’ll see the bag.
https
To grab HTTPS packages, a certificate must be installed, otherwise Charles will display Unknown.
- Open Charles,help-> SSL proxying-> Install Charles root certificate to install the certificate on this machine. After the certificate is installed, double-click the certificate and choose Trust > Always Trust
- Open Charles,help-> SSL proxying-> install Charles root certificate on a mobile device or remote browser Enter CHLS. Pro/SSL to install the certificate for the phone.
- Open Charles proxy -> SSL proxy Setting -> add and add *.443. Enable SSL proxying
- Mobile Phone Settings -> General -> About Local -> Certificate Trust Settings -> Enable full trust for certificate.
- Open Charles and you’ll see the package about HTTPS.