How to use the packet capture tool Charles

Package capture tool Charles usage tutorial

1. First download from the official software http://www.charlesproxy.com/, please make sure that JDK has been installed before installation, and then follow the prompts to install. Note: Unregistered version will automatically log out every 30 minutes.

2. For the Mac system, after opening charles, the system has been proxied by default. If not, you need to check Mac OS X Proxy on the Proxy in the menu bar.

3. Charles can save the captured package and open it when it is to be analyzed next time. Filter can filter requests and supports wildcards. For example, if you only want to view requests that contain 365rili and end with .do, you can set 365rili.*.do in Filter. Overview can view the details of this request in more detail, such as the time-consuming detailed train request start time, end time, response start time, end time, total time, DNS time, network delay, etc. For Size, the request header size, response header size, compression ratio, etc. are also listed in detail.

4. If you want to view more detailed request information, such as Header, cookie, form form, etc., you can click Request, and select Reponse similarly to view the detailed response. In addition to proxying for the PC, you can also grab the client and set the proxy port number in Proxy->Proxy Settings

5. On the mobile phone, find the connected wifi in the WLAN settings and set the proxy. Set the proxy mode to manual, set the host name to the ip of the machine where Charles is located, and the port number to the proxy port configured by Charles. In this way, all http requests from the mobile client will be proxied by charles. You can easily view the client's http request.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326568042&siteId=291194637