Mac side of the excellent grab kit tool--charles useFirst, Introduction
Charles is a Mac-side interception and Analysis Network request tool, in the network development using it for analysis, can greatly improve our development efficiency. Charles is a fee-based software, generally can be tried for 30 days, but can be through the corresponding crack to get services (here only to do demo use, I hope you buy genuine software). Charles Software and hack pack: Http://pan.baidu.com/s/1ySsUy.
Second, installation and use
After downloading the compressed package, unzip the open, drag the package into the application folder, this time an original software can let us use, just have a trial period, right click on our Charles app, show package content:
Replace the jar package in the following folder with the jar package in our cracked folder:
Third, using Charles to carry out packet capture analysis on Mac
After the software installation, we can intercept the general network request on the Mac, open the software, the proxy settings in the Mac OS X proxy tick, set as a network proxy, if a network request occurs, can be intercepted by Charles
if we need to intercept the network request for the SSL protocol, we also need to install a certificate: Http://yun.baidu.com/s/1o6J2Crg. Note Set the certificate permissions to always trust.
The interface for capturing information is as follows:
The software is very powerful, structure is to sort the request by domain name, sequence is to sort the request time, the following request and response, respectively, the requested packet and the returned packet, if it is JSON data, will automatically help us to parse the format.
Note: If the request package is not caught on the iOS emulator, restart the emulator.
Iv. grasping the packet on the mobile device
The process of importing a certificate is the same as on a Mac, accessing HTTP://YUN.BAIDU.COM/S/1O6J2CRG on a mobile device. To download the certificate, install:
To intercept a network request on a mobile device, our mobile device must be in the same network segment as the computer, view the IP address in the network settings of our computer, then click on the network on our connected computer on the mobile device, in the Agent column, select Manual, fill in the IP address we just viewed, and set a port number.
In the proxy setting in Charles, select and configure the port number as follows
We then access the network on the device, and the request package can be crawled by us.
v. More applications of Charles
1. Filtering Network Requests
Sometimes we just want to crawl a host's network request, we can set up a filter network, in the Proxy menu recording setting, we select the include tag, you can add a whitelist, so that Charles only intercept the request under this host:
2. Analog Speed Limit Network
Most of the time, we need to test the application of the data when the network is poor, we can simulate setting the speed limit network, in the proxy menu in throttle settings, enable throttling tick, and can be set below the network settings, only Selected host can set a specified host access to restrict the network.
3, modify the network information, multiple requests
In testing the interface, sometimes we need to repeatedly make different parameters of the interface request, Charles also support our request parameter modification and multiple requests, right click on the request, now edit:
We can modify the parameters, request type and so on, then click Execute to re-request
Mac side of the excellent grab kit tool--charles use