1. Introduction

Fiddler is one of the most commonly used packet capture tools. Once opened, it can capture data packets, and when closed, it will automatically cancel the proxy, which is very convenient for local debugging

2. Download

Ali cloud disk address: https://www.aliyundrive.com/s/9bBZXqavfft

Use 3.

1. HTTP request fetching

Fiddler opens up and automatically grabs HTTP requests, where you can see the request and response headers

Right -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- the Result status code Protocol agreement Host Host name URL location Body Caching request Body size Request of the Type of the cache expiration time the content-type response Process the Process of sending a request Comments note the Custom Custom value -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - AutoResponder intercepting request for specified rules User-defined request Filters Filtering rules Timeline Response timeCopy the code

2. Intercepting the request and forwarding it to the local service (debugger)

Now when the front and back ends are separated, for debugging purposes, browser requests can be intercepted and forwarded to the local service

Configure the rules in the AutoResponder

According to the actual modification / / oneself can / / the browser request address regex: http://192.168.12.5:8080/ (. *) / / destination address, so I forwarded to a local 127.0.0.1 is http://127.0.0.1:8080/$1Copy the code

3. The breaking point

After the breakpoint can modify the packet and other operations

Click the position in the picture to turn it into the icon in the picture to complete the interception of the breaking points. Click Run to Completion to release the Completion. You can also go to Rules -> Automatic Breakpoints

Before Requests: intercept Requests After Responses: intercept Responses Disabled: cancel breakpointsCopy the code

Attach the command line command:

The command Match the columns explain
? All Matches strings on all columns
> 或者 < Body Matches the size of the request body
= Result Matching response code
@ Host @ domain name
select Content-Type Matches the request data type
cls All Clear request
start All Capture Traffic: Capturing Traffic: Capturing Traffic: Capturing Traffic: Capturing Traffic
stop All Capture Traffic: Capturing Traffic: Capturing Traffic: Capturing Traffic: Capturing Traffic

Breakpoint commands:

The command Match the columns explain
bpafter All This is followed by the string, which interrupts all requests for columns matching the string
bpu All This is followed by the string, which interrupts the response of all columns matching the string
g / go All Release the interrupt
bps Result Interrupts all matching status code requests

I most often use the second way, after all, the first browser can be very convenient to see, and the third way forward to the local service, the compiler can interrupt point more convenient!

Thank you for reading to the end, if there is any mistake, please correct.