FIDDLER的使用方法及技巧总结(连载四)FIDDLER通用规则更改

四、FIDDLER通用规则更改

FIDDLER的使用方法及技巧总结(连载四)FIDDLER通用规则更改

To make custom changes to web requests and responses, use FiddlerScript to add rules to Fiddler's OnBeforeRequest or OnBeforeResponse function. Which function is appropriate depends on the objects your code uses: OnBeforeRequest is called before each request, and OnBeforeResponse is called before each response. Note:

1)It is not possible to access the response objects inside OnBeforeRequest as they have not yet been created.

2)It is possible to use objects from the request inside OnBeforeResponse; however, any changes you make to those objects will not be seen by the server, as it has already received the request.

FIDDLER的使用方法及技巧总结(连载四)FIDDLER通用规则更改

 FIDDLER的使用方法及技巧总结(连载四)FIDDLER通用规则更改

 下面是一些正则匹配基本的规则

FIDDLER的使用方法及技巧总结(连载四)FIDDLER通用规则更改