How to capture requests and capture requests
Recently, the company has created a project because the project can only be run in the middle. To debug the project, you must capture packets. How can I capture packets from a PC? Fiddler can help you.
Preparation: one PC (Windows), one Fiddler installation package, and one installed mobile phone
1. Download Fiddler, http://www.telerik.com/fiddler in PC
2. Install the SDK)
3. Open the software, Click Tools-Fiddler Options-Connections in the menu, and select "Allow remote computers to connect" to Allow remote connection.
4. Restart the software
5. Click the "Online" icon in the upper-right corner to view the ip address of the Local Machine. Many ip addresses are displayed below. If you are not sure which one is your own, check ipconfig in cmd.
6. The default listening port number is 8888. You can modify it by yourself. Click Tools-Fiddler Options-Connections in the menu to set the Fiddler listen on port value.
7. Set the proxy address on your mobile phone to the IP address of your PC and the port number to 8888 (the modified proxy address is the corresponding port number after modification)
Note: If you are connected to your company's intranet wifi and wifi enables browser secondary verification, you must first pass the secondary verification before enabling proxy. Otherwise, secondary verification may fail.
8. At this time, click any link in, and you can view the request through Fiddler on the PC.
Note: https is required. By default, Fiddler does not capture https requests. You need to set this parameter.
Click Tools-Fiddler Options-HTTPS
If you still cannot capture the certificate, you may need to download and install a certificate on your mobile phone. Open the browser on your mobile phone and enter your computer ip address: Your port number. For example, if my address is 172.16.2.135: 8888, install the certificate.
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.