First, the software introduction:
A free and powerful data packet crawling software. It obtains the program HTTP communication data through the proxy way, can use it to detect the Web page and the server interaction situation, can record all client and server's HTTP request, the support monitoring, the setting breakpoint, even modifies the input and output data and so on function. Fiddler contains a powerful subsystem for event-based scripting and is able to use the. NET Framework language extensions. So it's a very useful tool for both developers and testers.
Second, fiddler download and Installation:
1, download fiddler2 version of the software, download the address:
2, after downloading, unzip the file, and then click "Fiddler.exe" file can start the software.
Third, the Fiddler practical function uses the explanation:
1, fiddler capture browser session:
can support the HTTP proxy of any program can be captured by Fiddler, because the fiddler operating mechanism is to monitor the local 8888-port HTTP proxy, so we want to browser's IE proxy set to 127.0.0.1 : 8888, we use 360 browser as an example to set the browser's proxy: Click the "Tools"-"Internet Options"-"Connection"-"LAN Settings", and then click on the proxy Server "Advanced" button to change the HTTP proxy server address to 127.0.0.1:8888.
Figure I: Setting up a browser proxy
2. Use Fiddler to capture HTTPS sessions:
By default, fiddler does not capture HTTPS sessions, so you need to set it yourself. Start the software, click "Tools"-"Fiddler Options", in the New pop-up window, click on the HTTPS tab, the capture HTTPS connection this option to the front all tick, click OK to operate successfully. As shown in the following illustration:
Figure II: Setting to capture HTTPS sessions
3, Fiddler main interface Introduction:
Starting fiddler, we will see the main interface of the software, the software window can be roughly divided into six parts: Menu bar, toolbar, session list, Command line toolbar, HTTP request Display bar, HTTP response display bar. Allows you to at a glance.
Figure III: Fiddler main interface diagram
4, view the HTTP statistics view:
Typically, all of the HTTP traffic captured in the Fiddler session list is displayed in the form of a list, click on one or more sessions you want to view, and then click the "Statistics" menu on the right side of the software to easily see the number of requests, Bytes sent, and so on. If you choose the first request and the last request, you can also get the total time consumed by the page load, and you can tell from the chart that those requests are the most time-consuming, allowing you to optimize the speed of the page's access.
Figure IV: View details of a session
5, the use of quickexec command line:
The quickexec command line is the black area below the session list, you can enter the command inside, the carriage return can execute your command, very convenient, here to introduce several commonly used commands:
Help opens the Official usage page, and all commands are listed
CLS Clear Screen (Ctrl+x can also clear screen)
Select to select a session command
?. PNG used to select a picture of the PNG suffix
BPU Intercept Request
Figure Five: Use of the quickexec command line
6, how to set breakpoints in fiddler Modify response:
There are two main methods:
1, click the "Settings" menu-"Automatic Breakpoint"-"response", this method is to interrupt all sessions, if you want to eliminate breakpoints, click "Settings"-"Automatic Breakpoint"-"disabled" on it.
2, in the quickexec command line input: "Bpuafter URL/Session Name", this method is to interrupt a specific session, if you want to eliminate the command, the command line input "Bpuafter."
7. How to create Autoresponder rules in Fiddler:
The advantage of setting the Autoresponder rule is that you are allowed to return files locally without sending HTTP request to the server. Let's take a look at the blog site as an example to illustrate the use of this feature.
1 Open the Blog home page, the blog Park logo pictures saved in the local, and the picture modified.
2 Open fiddler to find that we have the logo image of the session, and then click on the software to the right of the automatic Response tab, in the "Enable authomatic reponses" and "permit passthrought unmatched "Check the front and drag the session to the Automatic Response list box."
3 in the lower right corner of the rule editor the second text box select "Find a File ...", and then select a locally saved picture, click the "Save" button to save it.
Figure VI: Select the modified logo file
4 We open the homepage of the blog again, notice that the logo image has become the one we modified.
Figure VII: Effect chart
8, the use of Fiddler session comparison function:
Select two sessions, right click on "Compare", you can use WinDiff to compare the two sessions are different. (Note: The premise of using this function is that you have to install WinDiff)
Figure eight: Comparing two sessions
9, fiddler and coding Gadgets, let's take a look at how to use:
1) Click the Encoder button on the toolbar
2 in the New pop-up window, you can operate, as shown in the following figure.
Figure Nine: Use of the Encoding tool
10, fiddler query session:
1 Click on the "Edit" menu-"query session" or use the shortcut key ctrl+f.
2 in the new pop-up window you want to query the session, click the "Find Sessions" button, you will notice that the query to the session will be marked with yellow.
Figure 10: Finding a session-filling in the conversation keyword
Figure 11: The identified session is marked in yellow.
11. How to use fiddler when vs Debug Website:
If you want to use visual Stuido to develop a asp.net web site, you can also analyze HTTP with fiddler, but the default fiddler is to not sniff the localhost site. There are two ways you can choose:
1 as long as you add a dot behind the localhost, fiddler can sniff. For example: Originally asp.net address is http://localhost:2391/Default.aspx, add a point number, become http://localhost.:2391/Default.aspx Then it can be captured by fiddler.
Figure 12: Capturing the localhost web site
2) in the Hosts file to add 127.0.0.1 Localsite This can also be captured.
This article is only to introduce the fiddler part of the main function of the use of the method, because the fiddler really powerful, this can not be all listed, if you have any information on the use of fiddler do not understand the place or have any suggestions, welcome message, The Guardian God Technology Channel will give you a detailed answer.