1, mobile phones and computers need to access the same network: the same LAN or the same WiFi signal.
2, Configuration fiddler
First download install Fiddler, after running select menu Tools->fiddler options, open the HTTPS page.
Select "Decrpt HTTPS Traffic", fiddler can intercept HTTPS request;
Select Ignore server certificate errors (unsafe);
Open the Connections page and select Allow remote computers to connect, which allows other machines to send HTTP/HTTPS requests to Fiddler;
Click OK.
Restart Fiddler.
3. Installation Certificate
Get the IP address of the current computer, for example I am here: 10.102.2.215
Then open Safari in the iphone and Access address http://10.102.2.215:8888, click "Fiddlerroot Certificate" and install the certificate.
Install the certificate.
4, set fiddler as the Agent
Open the Settings->wifi on the iphone, click the I icon behind the current WiFi to view the current connection information, scroll to the bottom of the HTTP proxy, switch to "manual";
Fill in your IP address and the corresponding port number: 8888.
5, after the configuration is complete, you can open your mobile app, the network request will be uploaded to the fiddler via the same LAN or WiFi, for packet capture analysis.
6, because there are now some users using IPV6 IP address network. Currently the HTTP proxy via IPV6 cannot open the Fiddler certificate download page,
It is recommended that you switch to the IPV4 network for fiddler settings before switching the network to IPV6 for HTTP proxy settings and packet capture analysis.
This article is from the "he Mountain Stone" blog, please be sure to keep this source http://zhangshujie.blog.51cto.com/4921537/1890669
How to use fiddler for Apple's clutch