Fiddler gets the data of program Http/https communication through proxy, it can detect the interaction of all client and server and HTTP request, support Monitor, set breakpoint, even can modify input and output data. You can also use Fiddler as a proxy server to crawl the packets of third-party devices.
1, modify the settings
Tools-> fiddleroptions, then make the following settings, set the port number to be monitored (default 8888), check "Allowremote Computers to connect"
Set up the Listening protocol (default is the following, generally do not need to change, that is, the default listener Http/https protocol data)
2, set up WiFi hotspot for mobile phone connection
The simplest, can use 360 free WiFi to create a WiFi hotspot, this hotspot is used for mobile phone connection, of course, the premise is that the computer's wireless network card can work correctly if you do not have a wireless network card, you can buy a portable wireless card and plug in the computer.
Otherwise, it can be done by directive: Netsh wlan start hostednetwork to open the hosting network
directive: netsh wlan set hostednetwork mode=allow ssid=360-jx key=12345678 set up WiFi hotspots, where the SSID is the hotspot name, key is the password, see the figure below.
3, set up mobile WiFi agent
such as the following, manually set up the agent, the port to fill out the above settings of the listening port, the host name to fill out the running Fiddler host IP address
Note: Ensure that the mobile WiFi IP address and the host IP address running fiddler are on the same network segment
4, the operation of mobile phone-related applications
The results are as follows
5, send the capture request
6, Analog server return
One of the purposes of this example is to return the JS script name to the server, optionally allowing the browser to execute the local JS script file.
As above, the browser requests two JS files to the server, Fiddler will return the local two JS script, for browser execution
General Description:
Add rule: With the drag operation, add the rules--as above, if the request matches a given value (a request of two JS in the example above), the specified content is returned (two local JS scripts in the example above)
Import ... : Import Rules
Enable rules: Open rule
Unmatched Requestpassthrough: If do not match then release, generally want to check
Enable latency: Open delay, optional
Match only once: matching only once
Save: Saving Rules