The installation

download

Go to the website to download, address: www.charlesproxy.com/download/

Set up the

  1. After the download is complete, configure Proxy>> Proxy Setting >> Select Support HTTP/2 and Enable transparent HTTP proxying.

HTTPS: proxy>> SSL proxying setting>> Add >>*:443 (port 443 is used for HTTPS services, port 80 is HTTP)

Install the certificate

MAC Installation Certificate

Charles top: Help -> SSL Proxying -> Install Charles Root Certificate

When you are finished, you will see the certificate. Double-click the certificate to open the certificate details: Expand trust

To use the certificate: Change it to Always Trust, and the startup password is required for closing the certificate

Mobile Phone Installation Certificate

Help >> SSL Proxying >> Install Charles Root Certificate on a Mobile Device or Remote Browser >> Pop-up port and domain name

  1. If the mobile phone does not have a certificate installed, HTTPS packets cannot be captured. In this case, you need to install the certificate and trust the mobile phone.
  2. Certificate address: default browser of mobile phone, iOS is Safari open and enter download address [CHLS. Pro/SSL] (prerequisite: ① Connect to computer agent (point 4 below)]
  3. If the trust certificate is required after the certificate is installed, go to iOS Settings >> User profile picture information and click “Trust” (if it is not displayed: General >> About the local machine to the bottom >> Certificate Trust Settings >> Switch on).
  4. After connecting to the proxy, all HTTP requests will go to your computer. When the computer shuts down, the network will be interrupted. To recover, turn off the manual configuration in the Settings.

Mobile connection agent

Set the agent of the mobile phone to the computer (select the wireless network to be connected, note that the computer and mobile phone must be on the same network, go to the bottom to configure the agent) Click the connected wireless network >> Configure the agent at the bottom >> Select Manual >> Enter server and Port >> Storage (after the test is completed or directly closed here, Each test requires re-entering the server and port on the phone)

The menu

proxy

  • Start/Stop Recording: Starts or stops Recording a session.
  • Start/Stop Throttling: Starts/stops Throttling.
  • Enable/Disable Breakpoints: Enables or disables breakpoint mode.
  • Recording Settings: Recording session Settings.
  • Throttle Settings: Throttle Settings.
  • Breakpoint Settings: Breakpoint Settings.
  • Reverse Proxies Settings: Reverse Proxies Settings.
  • Port Forwarding Settings: indicates Port Forwarding.
  • Windows Proxy: Logs all requests on your computer.
  • Proxy Settings: Proxy Settings.
  • SSL Proxying Settings: indicates the SSL proxy Settings.
  • Access Control Settings: Access Control Settings.
  • External Proxy Settings: External Proxy Settings.
  • Web Interface Settings: Web Interface Settings.

Tools

  • No Caching Settings: Disables Caching Settings.
  • Block Cookies Settings: Disables the Cookie setting.
  • Map Remote Settings: Remote mapping Settings.
  • Map Local Settings: Local mapping Settings.
  • Rewrite Settings: Rewrite Settings.
  • Black List Settings: Blacklist Settings.
  • White List Settings: Whitelist Settings.
  • DNS Spoofing Settings: DNS Spoofing Settings.
  • Mirror Settings: Mirror Settings.
  • Auto Save Settings: Automatically saves the Settings.
  • Client Process Settings: Client Process Settings.
  • Compose: edit and modify.
  • D) Repeat:
  • Repeat Advanced: Advanced packet sending.
  • Validate: indicates verification.
  • Publish Gist: Publish Gist.
  • Import/Export Settings: Import/Export Settings.
  • Profiles: indicates Profiles.
  • Publish Gist Settings: Publish Gist Settings.

Use skills

Analog weak network

  1. Click on the Proxy – > Throttling Settings
  2. If Enable Throttling is selected, the network speed limitation function is enabled
  3. Speed setting

Concepts: Bandwidth, Utilistation, round-trip, MTU

  1. For details about custom Settings, see the following table

    • Weak net: up: 10 down: 30

    • 2 g: up: 15 down: 50

    • 3 G: uplink: 384 Downlink: 2800

  2. To perform weak networking for an address, select Only for Selected hosts in Throttling Settings

  3. After setting it up, we see our little turtle is green

Refer to the address

zhuanlan.zhihu.com/p/347387901