Last active
June 26, 2024 15:09
-
-
Save flying19880517/fe4a1d4eda8005995633 to your computer and use it in GitHub Desktop.
Fiddler Script替换ResponseBody
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//关闭Stream选项 | |
//以下内容添加到FiddlerScript的OnBeforeResponse中 | |
if(oSession.host.EndsWith("example.com")){ | |
//使用正则表达式 | |
oSession.utilReplaceRegexInResponse("Example","Hahaha"); | |
//自己处理 | |
var body = oSession.GetResponseBodyAsString(); | |
body = body+"asdfadsfadfs"; | |
oSession.utilSetResponseBody(body); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment