Fiddler as a practical HTTP grab tool, it is the principle of the computer to open an HTTP proxy server, and then it will forward all the HTTP requests and responses, so it is more than the general Firebug or Chrome comes with the capture tool to use more, It can also support some advanced features such as request replay.
The grab pack for Android apps is divided into two parts, the settings for the Fiddler tool and the Android phone proxy settings.
1. Setting the Fiddler tool
- Install and start Fiddler, open the Tools > Fiddler options in the menu bar, and Open the Fiddler Options dialog box.
- In the Fiddler Options dialog, switch to the "HTTPS" "Connections" tab, then tick the checkbox after "Allow romote computers to connect" and then click on the "OK" button to remember the proxy port number.
- After Setup is complete, restart fiddler.
2, the mobile phone agent settings
- Gets the native IP address.
- Open "Settings", "Wi-Fi" on your Android device, locate the network you want to connect to, tap and hold on it, then select "Modify Network", pop Up the network Settings dialog, and tick "show advanced Options".
- In the input box after "Agent", select "Manual", enter the IP address of the computer after "proxy server hostname", enter 8888 in the input box after "Proxy Server port", then click "Save" button.
- Start the browser on your Android device, visit the homepage of Baidu, and you can see the completed request and response data in Fiddler.
- Problem: No restart after setting fiddler, resulting in unable to capture the package successfully, remember to restart the tool to make the configuration effective.
- Note: Fiddler default port number is 8888, can be modified to other, do not conflict with the main port number.
Fiddler Learning-Grab a bag for Android apps