HTTP Packet capture process
1. Download the agent software on Mac computer, Charlse or fiddler can;
Download method: http://www.charlesproxy.com/ can download to the latest version
2. View the IP address of your Mac computer
To view the method:
Computer top left Apple Icon-System Preferences-network-select wifi--click on the lower right "advanced"-Select "TCP/IP" to view the corresponding display content IPV4 address, this address is the computer's IP address, copy this address;
3. Bind the computer IP on the phone
Binding method:
Open iphone--Settings-Wireless LAN, open Network settings, locate the HTTP proxy below, select "Manual";
The MAC computer IP address of the 2nd step is filled in the " Server " column;
"Port" is filled with 8888;
4. Open the agent software installed in the 1th step, under normal circumstances, the data request on the mobile phone, the agent software will display the corresponding access request data, it proves that your phone is connected to your computer network;
5. After the above steps, modify the hosts address on the Mac computer, the corresponding request on the iphone hosts will be modified accordingly, to achieve the purpose of mobile phone access test environment;
HTTPS Grab Bag
The HTTPS grab takes a few more steps than the HTTP grab, removing the previous 123 steps, and the work that needs to be done is:
1. You need to download the Charles Certificate Http://www.charlesproxy.com/ssl.zip, unzip it into an iOS device, or open it directly on your iOS device for download and installation.
2. proxy Settings ... SSL tab enable SSL proxying ,
This step is different from Fiddler, fiddler install the certificate can catch https URL of the package, Charles is troublesome some, need to be in the SSL tab of the previous step locations form fill in to grab the packet domain name and port, click the Add button, in the Popup form host Domain name
3. After the above operation, can grasp the data of HTTPS;
Mac HTTP and HTTPS grab packets