Detailed explanation of the packet capture tool Fidder (mainly to capture the request of the app in Android)

Step 1: Download the artifact Fiddler, download link:

After the http://fiddler2.com/get-fiddler
download is complete, install it foolishly!

Step Two: Set Up Fiddler

Open Fiddler, Tools-> Fiddler Options (remember to restart Fiddler after configuration)
Select "Decrpt HTTPS traffic", Fiddler can intercept HTTPS requests
Select "Allow remote computers to connect". It is to allow other machines to send HTTP/HTTPS requests Come up to Fiddler

write picture description here

write picture description here

Remember this port number is: 8888

Step Three: Set Up Your Android Phone

First get the ip address of the PC: enter: ipconfig in the command line to get the ip address

write picture description here

Well, at this point I got the IP address and port number

Let's do proxy settings for Android phones, I use Samsung's G4:

Make sure your phone and PC are connected to the same local area network

Enter the phone's settings -> click to enter WLAN settings -> select the wireless network to connect to, long press to pop up an option box: as shown in the figure:

write picture description here

Select Modify Network Configuration:
write picture description here

Select Show advanced options, set the proxy to manual, fill in the ip address and port number obtained above, and click Save. This will set up our phone successfully.

Step 4: Download Fiddler's Security Certificate

Use the browser of your Android phone to open: http://10.2.145.187:8888 , click "FiddlerRoot certificate" and install the certificate, as shown in the figure:
write picture description here

At this point, we have set all the values. Let's test it. Next, open Fiddler, and then open the browser in the mobile phone to browse the web at will. Fiddler captures the packets as follows:

write picture description here

In this way, the data packets of the Android mobile terminal are successfully captured, which is very helpful for us to debug the network data request later. We can use this method to judge whether our request to the network is successful!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325773789&siteId=291194637