Brief introduction
Charles is a popular tool for intercepting network packets under Mac, and in the development of iOS, we often need to intercept network packets for the purpose of debugging the network communication protocol with the server side. By setting himself up as a system network Access Proxy, Charles completes all network access requests, thus enabling the interception and analysis of network packets.
Charles is a premium software that can be tested for 30 days free of charge. After the trial period, the unpaid user can still continue to use, but not more than 30 minutes per use, and startup will have 10 seconds of delay.
Therefore, the payment scheme for the vast number of users is still very friendly, even if you do not pay for a long time, you can use the full software features. It's just that when you need to pack for a long time, you'll be affected by the forced shutdown of Charles.
Charles's main functions include:
Supports SSL proxies. You can intercept requests for parsing SSL.
Support Flow control. You can simulate a slow network and a longer wait time (latency) request.
Support for Ajax debugging. You can automatically format JSON or XML data for easy viewing.
Support for AMF debugging. You can format Flash Remoting or Flex Remoting information for easy viewing.
Support for the restart of the network request, convenient back-end debugging.
Support for modifying network request parameters.
Support the interception of network requests and dynamically modify them.
Check to see if Html,css and RSS content meet the standards of the consortium.
Install Charles
Go to Charles's official website (http://www.charlesproxy.com) to download the latest version of the Charles installation package, which is a dmg suffix file. After opening, drag Charles to the application directory to complete the installation.
Installing an SSL Certificate
If you need to intercept the analysis of SSL protocol related content. Then you need to install Charles's CA certificate. The specific steps are as follows:
Go to Http://www.charlesproxy.com/ssl.zip to download the CA certificate file.
After extracting the zip file, double-click the. crt file, and then select Always Trust in the pop-up menu, as follows:
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/extra/