Working principle
First, last picture.
At a glance, we can see where the Fiddler is in the request, and we can determine what it is capable of.
It actually works on the native 8888 port HTTP proxy, and when we start fiddler , it automatically changes the proxy settings:
In Chrome:
From then on we can see, as long as the request is HTTP, before the request to leave the machine will go through fiddler, when response back, did not reach the actual requestor, will also go through fiddler: so we can easily implement the content of the modification request and response, So that we can easily debug the current network of the program.
Http://www.cnblogs.com/forcertain/archive/2012/11/29/2795139.html
The difference from other tools
Firebug, IE and Chrome's own developer tools: This is the front-end development of the tool, they listen to browser-initiated requests and responses to the browser, display the request data and response data, the Fiddler basic function is consistent, but it is only listening, only the request and response data records, And fiddler completely took over the request and the response.
Foreword: For mobile application, often need to grasp packet analysis data parameters, Android grab packet conventional thinking solution is through the ADB, Tcpdump generated capture package file, upload to the PC side, and then through the Wirshark to view the data capture packet, but, For Android applications, the client-server interaction is more in the form of rest interface services, based on the HTTP/HTTPS protocol, the disadvantage of using tcpdump method is more obvious:
1, the phone needs root authority
2, the operation process is troublesome, and wirshark to view the large amount of data need to filter
3, the analysis is the dump file, not the operation of the client in real-time interactive data
Therefore, this article introduces the use of Fiddler to carry out the Android capture package, in order to quickly and easily realize the application of mobile phone capture packet analysis
Fiddler Introduction: Fiddler is an HTTP protocol debugging Agent tool that can record and check all HTTP traffic between your computer and the Internet.
Through the Fiddler capture package process: Mobile phone connection Wi-Fi network--Set HTTP proxy--all HTTP access to the phone through fiddler this intermediary--access to the outside Web network
First, the tool download:
Fiddler:http://www.telerik.com/download/fiddler
Second, fiddler set
Open Fiddler, tools-> Fiddler Options.
Switch to the HTTPS panel
Check "Decrpt HTTPS traffic" to set fiddler to intercept HTTPS requests
Switch to Connections panel
Select Allow remote computers to connect. Allows other machines to send HTTP/HTTPS requests to fiddler.
After configuration, you need to restart Fiddler when prompted.
Third, mobile phone set HTTP proxy
1. Enter the phone settings--Wireless network--wlan Select interface
2. Tap and hold a WLAN access point and click "Modify Network"
3. Proxy settings, select Manual, for example, enter the proxy server hostname (fiddler installed machine IP): 192.168.1.10, Port: 8888
Iv. capturing HTTPS requests:
This step is intended to allow Fiddler to capture HTTPS requests. If you only need to intercept an HTTP request, you can ignore this step
1. First know the IP address of the machine where the Fiddler is located: for example, the IP address of the machine with Fiddler installed is: 192.168.1.10
2. Open the browser, Access http://192.168.1.10:8888, click "Fiddlerroot Certificate" and install the certificate
V. Normal use of the client or open the Web page with a browser, if there is a HTTP/HTTPS request, you will be able to see the captured data in fiddler
Fiddler use tutorial See: Http://www.cnblogs.com/TankXiao/archive/2012/02/06/2337728.html#qita
Fiddler Mobile Clutch Reference: http://www.cnblogs.com/TankXiao/p/3063871.html
http://blog.csdn.net/hunterno4/article/details/19998273
Http://jingyan.baidu.com/article/2a1383289d7792074b134f69.html
Http://jingyan.baidu.com/article/2f9b480d81df9241ca6cc258.html
Use Fiddler to grab a bag for Android apps