1. What is Charles
Charles is called Blue and White Porcelain in Chinese. It is a proxy server based on the HTTP protocol. It becomes a proxy for a computer or browser, and then intercepts requests and request results to achieve the purpose of analyzing and capturing packets.
Features: cross-platform, semi-free
2. How Charles works
Preliminary steps:
- Need to run Charles and configure the proxy
- Proxy needs to be configured on the client
step:
- Request sent by the client
- Charles receives and sends to the server
- The server returns the request result to Charles
- Forwarded by Charles to the client
3.Charles' main functions
- Support HTTP and HTTPS proxy
- Support flow control, can be used to simulate weak network environment test
- Supports concurrent requests for interfaces, which can be used for performance stress testing
- Support for resending network requests
- Support breakpoint debugging function
4.Charles' advantages
Compared with Fiddler,
-
Charles can support Linux, MacOS
-
Charles supports viewing messages by domain name and by interface, which is concise and clear
-
Charles supports reverse proxy
-
Charles network speed limit can choose network type
-
Charles can parse the AMF protocol
5. The role of Charles?
- Able to use Charles to analyze the front-end and back-end problems
- Able to use Charles to simulate a weak network test environment
- Ability to use Charles' breakpoints to build abnormal test scenarios