fiddler-- set breakpoints, modify http request

fiddler can not only capture, but also to modify http packets. Need to set a breakpoint, stopped or http packets http request response packet, and then modify it.

 

fiddler is a proxy server, so you can set breakpoints, stop http request http request modifications made after the release.

 

After setting breakpoints, you can modify http request any information, including: host, cookie or data form.

 

There are two ways to set breakpoints:

 

(A), set a global breakpoint: Start fiddler, click the rules in the menu bar -> automatic breakpoint -> before requests; in this way will intercept all sessions;

 

               Cancel Global breakpoints: Start fiddler, click the rules in the menu bar -> automatic breakpoint -> disabled;

 

 

(B) set a single breakpoint: url already know the address of a request, this time only break point to debug this request, the other request is not intercepted;

 

               : Enter the command line in the lower left corner of the fiddler quickexec command: bpu www.baidu.com; this way only interception www.baidu.com.

 

               Cancellation single break: input bpu command to the command line.

 

 

 

==========================================================================================================

Set breakpoints, modify http request

 

Example: browser access www.ifeng.com, then modify http request by fiddler, allowed to visit www.163.com. Specific operation is as follows:

 

step:

(1), start fiddler, click the rules in the menu bar -> automatic breakpoint -> before requests;

 

(2), open the browser, type: www.ifeng.com URL;

             This time fiddler icon on the taskbar blinking, stopped http request

 

(3), fiddler return to the main interface, as it has been stopped http request wants, and the other request is not blocked. Cancel breakpoint: Click the rules in the menu bar -> automatic breakpoint -> disabled;

 

 

 

(4), intercepted http request in front of a red T icon, select the http request needs to be modified, select the inspectors panel, using raw tab (must be to modify the raw tab)

 

 

 

 

(5), to modify the url: www.163.com. While the host is modified: www.163.com; then click the green "run to completion" button is released.

             GET https://www.163.com/ HTTP/1.1
             Host: www.163.com

 

 

 

(6), back to the browser, open the website www.163.com found.

 

Note: If you click the yellow button "break on response" will continue to respond to requests interception of the http.

Guess you like

Origin www.cnblogs.com/xiaobaibailongma/p/12121217.html