Using Fiddler to catch a post-packet analysis

Source: Internet
Author: User

in the fiddler4 Using Tutorials The principle and software interface of Fiddler have been introduced. This paper mainly deals with the fiddler of the Clutch.

Fiddler crawl HTTP requests.

Grab bag is the most basic application of fiddler, take this blog as an example, after starting fiddler, enter http://blog.csdn.net/chaoyu168 in the browser after entering enter, in the Fiddler web The HTTP request captured by the session interface is as follows:

A detailed description of each field has been explained and is no longer described here. Note that the icons in the # column, each of which represent different types, include the following:

Also, note the host field of the request . You can see a response from a subdomain of multiple www.csdn.net, stating that in the architecture of a large web site, many subdomains are required, which may be used solely to cache static resources, may be specifically responsible for the media resources, or are specifically responsible for data statistics (such as Pingback).

Right-click one of the requests. The actions that can be selected are: Save( The message that holds the request, which can be a request message, which can be a response message ). For example, one of the request header information we saved is as follows:

Not only a single Session,fiddler also supports saving all crawled sessions ( and supports import ), which is then saved for fetching suspicious requests, It is helpful to analyze these requests at any time afterwards.

If you want to resend certain requests, you can select them and then click Reply in the toolbar . you can resend the selected requests.

Left click on a single HTTP request, you can See the following information in the tab panel on the right:

1. Statistic.

about the HTTP requests for performance and other data analysis:

We can see some basic performance data: For example , the time consumption of DNS resolution is 8ms, and the time consuming of establishing TCP/IP connection is 8ms and other information.

2. Inspectors.

It is divided into two parts, the upper part is the request head part, the lower part is the response head part. For each part, aView the contents of each request and response in a number of different formats.JPGformat UseImageViewyou can see the picture,Html/js/cssUseTextViewyou can see the contents of the response。Rawtab to see the original complianceHTTPthe standard request and response headers. AuthYou can view the authorizationProxy-authorizationand theAuthorizationRelated information.Cookiestab to see the requestedCookiesand responding to theSet-cookieheader information.

3. Autoresponder

Fiddler is one of the more important and powerful features. can be used to intercept a request, redirect to a local resource, or use The built-in response of Fiddler. Can be used to debug server-side code without modifying the server-side code and configuration, because after interception and redirection, it is actually accessing local files or getting a built-in response for Fiddler . When allow autoresponser is checked and the appropriate rules are set (the rule in this example is to intercept the http://blog.csdn.net/chaoyu168 request to a local file layout.html), as shown in

Then access the http://blog.csdn.net/chaoyu168 in the browser, the results are actually:


This is exactly the content of the local layout.html, stating that the request has been successfully intercepted locally . of course, you can also use Fiddler the built-in response. Is the way Fiddler supports blocking redirects:


Therefore, if you want to debug a script file of the server, you can intercept the script locally, after modifying the script locally, then modify the server side of the content, which can ensure that as far as possible in the real environment debugging, so as to minimize the likelihood of the occurrence of the bug .

Not only a single URL,Fiddler supports multiple URL matching methods:

I. Character matching

such as example can match http://www.example.com and http://example.com.cn

II. Exact match

Exact matches are indicated by exact, as in the example above

Exact:http://blog.csdn.net/ohmygirl

Iii. Regular expression matching

Start with regex: use regular expressions to match URLs

such as: Regex: (? insx). *\. (css|js|php) $ means matching all request URLs ending with css,js,php

4. Composer.

The old version of the Fiddler is called Request-builder. As the name implies, you can build the corresponding request, there are two common ways to build the request:

(1) Parsed enter the requested URL after executed, or you can modify the corresponding header information (such as adding common accept, host, referrer, Cookie,cache-control and other headers) after execute.

The common application of this feature is: "Swipe ticket" (Not train ticket!!) ), such as Refresh page traffic (based on ethical and security reasons, if you really go to brush tickets, brush the amount of visits, this blog is not responsible for)

(2) Raw. Constructs an HTTP request using HTTP header information. Similar to the above. Not much of a narrative

5. Filter

Fiddler another more powerful feature. Fiddler provides multi-dimensional filtering rules sufficient to meet the needs of daily development and commissioning. As shown:


The filter rules are:

A. Host and zone filtering. You can filter HTTP requests that display only the intranet or the Internet

You can also select an HTTP request for a specific domain name

B. Client process: You can capture a request for a specified process.

This is useful for debugging a single application's request.

Additional settings can be found in the official documentation for fiddler.


Using Fiddler to catch a post-packet analysis

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.