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

  1. Make sure your phone and computer are on the same network.
  2. The mobile phone goes to the Configuration agent (ios: Settings -> WLAN -> Connected wifi-> Configuration Agent).
  3. 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).
  4. Storage.
  5. Open Charles and you’ll see the bag.

https

To grab HTTPS packages, a certificate must be installed, otherwise Charles will display Unknown.

  1. 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
  2. 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.
  3. Open Charles proxy -> SSL proxy Setting -> add and add *.443. Enable SSL proxying
  4. Mobile Phone Settings -> General -> About Local -> Certificate Trust Settings -> Enable full trust for certificate.
  5. Open Charles and you’ll see the package about HTTPS.