Android http packet capture, android
Sometimes you want to check the http request and response sent by the APP during development. This requires packet capture. This gives you some unknown APIs, for example, you can do some "bad things "...
Required tools:
I. How to Use Fiddler2
After the download is complete, the installation will not be done.
For example, set the Fiddler Proxy:
Click OK. The proxy settings are complete here. Be sureRestart SoftwareThe configuration takes effect. The following figure shows the settings on the mobile phone.
2. Mobile Agent settings
Taking Samsung S4 as an example,
1. For example, set Samsung S4 On a real machine:
Find your Wifi, and you must have your computer and mobile phone in the same Wifi. It is best to send a Wifi to your computer.
Long press the Wifi hotspot and select modify network configuration.
The proxy is set to manual. The proxy host name is your PC Ip address, and the port is the port set by Fiddler just now.
Bytes -----------------------------------------------------------------------------------------
2. Simulator (android 2.3) settings
The settings are complete. Let's see what we have caught.
Bytes --------------------------------------------------------------------------------------------------------
Let's take a lookWeibo ClientObtain the homepage content as follows:
I cannot help but lament that it is very powerful ~~~~~~~~~~~~~~~~~~~~~~~~
Tip: you can set a filter for Fiddler to easily view the desired Http package:
How to capture network data packets of android mobile client applications in Windows 7
This is no different from the data packets of other computers that capture the same LAN. No matter what platform, the network data packets sent are the same protocol. You only need a common packet capture software.
How to Use the shark package capture tool for Android? Help
You can first take a look at this: Wireshark packet capture tool tutorials and common packet capture rules
Wenku.baidu.com/..lfcnl3
Similar tutorials in Baidu Library