For more information about fiddler2's Chinese manual, see this blog: blog.sina.com.cnsblog_66a13b8f0100vgfi.html 1. Software Introduction: a free and powerful data packet capture software. It obtains the http Communication Data of the program through a proxy. It can detect interactions between webpages and servers and record all clients and servers.
Fiddler2 Chinese manual see this blog http://blog.sina.com.cn/s/blog_66a13b8f0100vgfi.html 1, software introduction: a free and powerful data packet capture software. It obtains the http Communication Data of the program through a proxy. It can detect interactions between webpages and servers and record all clients and servers.
Please refer to this blog http://blog.sina.com.cn/s/blog_66a13b8f0100vgfi.html for the Chinese manual of Fiddler2
I. Software introduction:
A free and powerful data packet capture software. It obtains the http Communication Data of the program through proxy. It can detect the interaction between the webpage and the server and record the http requests between all clients and the server, supports monitoring, setting breakpoints, and even modifying input/output data. Fiddler contains a powerful event script-based subsystem that can be expanded using the. net Framework language. Therefore, it is a very useful tool for developers or testers.
Ii. Download and install fiddler:
1. Download fiddler2 Chinese Edition Software,: http://www.cr173.com/soft/42248.html
2. After the download is complete, decompress the file and click the "Fiddler.exe" file to start the software.
Iii. Instructions for using fiddler:
1. fiddler captures the browser session:
Any program that supports http proxy can be captured by fiddler. Because the running mechanism of fiddler is to listen to the http proxy of port 8888 on the local machine, therefore, we need to set the IE proxy of the browser to 127.0.0.1: 8888. We will use the 360 browser as an example to set the proxy of the browser: click Tools-Internet Options-connection-LAN Settings, and then click advanced on the proxy server to change the HTTP Proxy server address to 127.0.0.1: 8888.
: Set 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 window that appears, click the HTTPS tab to check all the options that capture HTTPS connections, click OK. As shown in:
: Set to capture HTTPS sessions
3. fiddler main interface introduction:
When fiddler is started, we can see the main interface of the software. The software window can be divided into six parts: menu Bar, toolbar, session List, command line toolbar, HTTP Request display bar, and Http Response display bar. This allows you to clearly understand the data captured.
: Fiddler Main Interface
4. view the HTTP statistics View:
Generally, the fiddler session List displays all the captured http traffic and displays it in a list. Click one or more sessions you want to view, click the "Statistics" menu on the right of the software to easily view the number of requests, number of sent bytes, and other information. If you select the first request and the last request, you can also get the total time consumed by page loading, and you can also identify the most time-consuming requests from the chart, this allows you to optimize the page access speed.
: View the details of a session
5. Use the QuickExec command line:
The QuickExec command line is the black area under the session List. You can enter the command in it and press enter to execute your command. It is very convenient. Here we will introduce several common commands:
Help opens the official usage page and lists all commands.
Cls clear screen (Ctrl + x can also clear screen)
Select command for selecting sessions
?. Png is used to select an image with a png suffix.
Bpu interception request
: Use of QuickExec command line
6. How to set a breakpoint to modify Response in fiddler:
There are two main methods:
1. Click [set]> [automatic breakpoint]> [After response]. This method interrupts all sessions. If you want to delete the breakpoint, click set> automatic breakpoint> disable.
2. Enter "bpuafter URL/session name" in the QuickExec command line to interrupt a specific session. If you want to delete the command, enter "bpuafter" in the command line ".
7. How to Create AUTOResponder rules in fiddler:
The advantage of setting the AUTOResponder rule is that you can return files locally without sending http requests to the server. The following uses accessing the blog site as an example to describe how to use this function.
1) Open the homepage of the blog garden, save the LOGO image of the blog garden locally, and modify the image.
2) Open fiddler and find the session with the LOGO image. Then, click the auto Response tab on the right of the software, check "Enable authomatic reponses" and "permit passthrought unmatched requests" and drag the session to the "auto response" list box.
3) Select "Find a File..." in the second text box of Rule Editor in the lower right corner ...... ", Select the locally saved image, and click" SAVE "to SAVE the image.
: Select the modified LOGO File
4) we open the blog homepage again and observe that the LOGO image has become the one we modified.
:
8. Use of the fiddler session comparison function:
Select two sessions, right-click "Compare", and you can use WinDiff to Compare the differences between the two sessions. (Note: to use this function, you must install WinDiff)
: Compare two sessions
9. fiddler also has a code tool. Let's take a look at how to use it:
1) Click the encoder button in the toolbar.
2) In the new window that appears, you can perform the operation, as shown in.
: Encoding tool usage
10. fiddler query session:
1) Click Edit> query session or press Ctrl + F.
2) In the new window that appears, enter the session you want to query and click "find session". Then, you will find that the queried session is marked in yellow.
: Find session-enter session keywords
I. The identified sessions are marked in yellow.
11. How to Use Fiddler when debugging a website through:
If you want to use Fiddler to analyze HTTP when developing ASP. NET websites using visual stuido, the default Fiddler cannot sniff localhost websites. You can use either of the following methods:
1) You only need to add a dot after localhost, and the Fiddler can sniff it. For example, the original ASP. the NET address is http: // localhost: 2391/Default. aspx. After adding a vertex, it becomes http: // localhost.: 2391/Default. after aspx, it can be captured by fiddler.
2. Capture the website of localhost
2) Add 127.0.0.1 localsite to the hosts file, which can also be captured.