Fiddler捕获了许多我不感兴趣的HTTP OPTIONS调用。
是否可以忽略它们,只看到GET和POST呢?
Fiddler捕获了许多我不感兴趣的HTTP OPTIONS调用。
是否可以忽略它们,只看到GET和POST呢?
OnBeforeRequest
并添加以下代码:static function OnBeforeRequest(oSession: Session) {
if (oSession.HTTPMethodIs("OPTIONS")) {
oSession["ui-hide"] = "true";
}
查找OnBeforeResponse
并添加以下代码:
static function OnBeforeResponse(oSession: Session) {
if (oSession.HTTPMethodIs("OPTIONS") && oSession.responseCode == 200) {
oSession["ui-hide"] = "true";
}
OnBeforeResponse
中添加了一点内容,使用if (oSession.HTTPMethodIs("OPTIONS") && oSession.responseCode != 200) { oSession["ui-hide"] = "false"; }
,这样我就可以看到任何奇怪的选项响应。 - WORMSS