This article was reproduced from: http://blog.csdn.net/songer_xing/article/details/53841401
Note: I have such a demand, first record, and then to organize.
In the process of grasping the package found Xiaomi 5miui7 system can not install Fiddler certificate, a variety of attempts without fruit, finally changed a test phone, can be installed successfully, realized: Fiddler crawl Android phone HTTPS request!!!
In the test process, grasping the packet is an essential test analysis means, fiddler not only can intercept the PC-side data packet, but also can intercept the mobile side. In particular, you have some API interface is not very understanding or do not know what functions to adjust which interfaces, or in the test interface, check the data, checking the mobile port has no duplicate call interface and other issues, open fiddler, mobile phone running the corresponding function, at a glance, for testing to provide convenient .... Well, occupational diseases, speak more, this article does not introduce testing means, hehe
Here's how to use fiddler crawl HTTPS request, using Android phone and Apple phone, summed up, the amount ... Also add a handy place to crawl iOS directly on your Windows PC without having to
1, first download Fiddler installation package on the official website
Https://www.telerik.com/download/fiddler
Now the newest is fiddler4, also this article uses the Fiddler, after downloading directly next installs can
2, after installation, the Open interface is such a child:
The default green box is capturing, meaning that the capture function is open, if one day found that they can not grasp the package, check the status, set in File–> Capture traffic.
3. Install CA Certificate
1) Select the Tools-fildder options and select the HTTPS tab
With "Decrpt HTTPS Traffic" selected, fiddler can intercept HTTPS requests
2) Select the Connections tab and select Allow remote computers to connect. is to allow other machines to send HTTP/HTTPS requests to fiddler.
3) port number is: 8888, must restart Fiddler to take effect
4) Check that the certificate is installed successfully, open Internet options, Content--certificate, see the following do_not_trust_fiddlerroot words, congratulations fiddler set up successfully
4. Mobile phone Configuration
1) confirm the PC-side IP, the phone to and PC-side with the network, assuming that the IP acquired to the PC is 192.168.1.83, set the mobile proxy IP and port, the port is fiddler proxy Port 8888
Android, iOS are open settings, find WiFi settings, proxy set to Manual
Android settings
iOS settings are as follows
2) Browser Access Web page input proxy IP and port, such as 192.168.1.83:8888, download fiddler certificate, click Fiddlerroot Certificate
Android, iOS are like, click Install can
After installing the certificate, you can access the application by mobile phone, you can see the intercepted packet ....
5) Fiddler Screening
Can grab the bag, the problem comes again, a lot of requests I just want to focus on the request I need, then you can use the Fiddler filter
My daily settings are like this, Red Cross-section, is to filter the content, there are many times separated by semicolons. So that we can meet the daily grab bag.
Fiddler crawling HTTPS requests (Android/ios)