There are many proxy tools in the development process. The following two are recommended, Charles and Whistle. The specific installation and use are as follows.

1, Charles

Directly baidu Charles software, installation can be

Find the above, click the computer IP and port (default 8888), the phone and computer connect to the same LAN, and then set the phone Wi-Fi proxy IP and port, browser access CHLS. Pro/SSL directly download the certificate to the local (this method often encounter network connection failure to the problem). Can also be

Download the Save Charles Root Certificate and install it on your PC or mobile phone. After completing the above operations, Charles is successfully installed. Open Charles and access the network to capture packets.

2, whistle

The Whistle package needs to be installed

Whistle agent w2 start w2 stopCopy the code

Then go to http://127.0.0.1:8899/

The installation is successful. In the next step, install the certificate on the mobile phone. There are two methods: 1: Click online in the upper right corner, and the proxy information popup window will appear, including IP and port. Connect the mobile phone to Wi-Fi on the same LAN, set the network proxy IP and port, and access the browser rootca.pro to download the certificate to the mobile phone local, install and trust. 2:

Click HTTPS to pop up the download window. Scan code or download directly. Due to the mobile phone system, in many cases, the network connection failure will be prompted when you directly access and download the rootCA address on the mobile phone. In this case, you can download it on the computer and then send it to the mobile phone for installation.

Charles needs to install independent software, and Charles needs to pay, trial version supports one month, each use of half an hour will prompt to close; Startup, open the software can be used; Whistle requires a dependency package to be installed and is best used with the Google SwitchyOmega plugin, which is free; To start, enter the command (W2 start) in the DOS window. Packet capture returns more friendly.