Fiddler packet capture tool to learn and use

1. How Fiddler works

Fiddler is a proxy between the client and the server. When the client sends a request, fiddler will intercept the request and then forward it to the server. The response from the server processing request must also be intercepted by fiddler. After fiddler has processed it, Return to the client.

Second, a simple local browser HTTP crawl

Background: Create multiple test data, add trouble manually, want to execute the script through Jmeter, but do not know the specific interface, can only be solved by Fiddler capture the package.

1. Open Fiddler

 

 By default, all requests sent by the local browser will be intercepted, and the results displayed are too many. Here is a filter

2. Filter requests to be monitored

 

 3. The request contains static files and hides the static files

 

Hide static file operation (fill the following sentence to the position shown)

REGEX:(?insx)/[^\?/]*\.(css|ico|jpg|png|gif|bmp|wav|js|jpeg)(\?.*)?$

 

 Send the request again to view

 

 

4. Interface grabbing

 

 

 

 5. JMeter publishes information through the interface

When filling in, pay attention to the content of the red box (grabbed by Fiddler)

 

 

 

Execution result, Chinese garbled

Solve the garbled problem:

1) Join the HTTP header manager

 

 Check the results, still garbled

 

2) HTTP request plus UTF-8

 

 

 

View Results:

 

 The display is normal and the garbled problem is resolved.

Interface testing through JMeter has been completed.

 

Guess you like

Origin www.cnblogs.com/cyying/p/12753579.html