After installing Fiddler on your PC, you can grab requests from various browsers, and you can get your iphone, Android phone, and Windows Phone requests via some settings. I don't say much about how it works (well, it's not because I don't know XD), the main idea is how to configure the phone to crawl requests on the iphone, for example.
Preparation: A. Install the fiddler, you can go to the official website to download; B. Mobile phones and computers in the same network.
1 set some settings for Fiddler, and remember to restart fiddler! when you are finished configuring
A. Open Tools > Fiddler Options >https,capture HTTPS connects, tick decrypt HTTPS traffic, Ignore server certificate errors
Settings in HTTPS
B. In the connections next to HTTPS, select Allow remote computers to connect
Settings in the Connections
2. Get the IP address of the computer, 10.211.55.3 is the DA
Cmd-ipconfig
3. Install the Fiddler certificate on the iphone
Open Safari, visit http://Computer ip:8888, My Computer is http://10.211.55.3:8888, click "Fiddlerroot Certificate", then install the certificate.
4. Open the Iphone> settings >wi-fi, locate the same network as the computer, connect, and at the HTTP proxy, enter the computer's IP address into the server bar, the port is set to 8888.
iphone Network settings
5. Test whether the computer can catch the package successfully. Open an app on your phone, or use Safari to open www.baidu.com (the most commonly used test network is the way to connect XD) to see if Fiddler is captured.
6. Ready, now only need to know the address of the test machine, in the PC's hosts binding, after binding, on the phone can be tested!
Note: When you're done, be sure to turn off the fiddler agent on your iphone so that your iphone doesn't get online.
PS: Just work, can not find the host, by the way also attached host directory good: computer >c disk >windows>system32>drivers>etc>hosts. I will send a shortcut to the desktop so that every time you change it is very convenient yo, you can try to do so.
Location of the hosts
Another, has encountered the small partner's host modification is unsuccessful, the prompt permission is insufficient. Later also found the solution, here share under: hosts-Right-click Properties-Edit-Select user-Set user permissions.
Modify the Hosts permission settings
FIDDLER-PC on the phone to achieve the grab bag