本文介绍了Fiddler重新发行以及由作曲家进行编辑和重新发行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在日常生活中使用Fiddler.但是,对我而言,最常用的功能(例如Reissue and EditReissue from composer)没有任何快捷方式.我不知道该如何使用提琴手脚本.有人可以为此提出解决方案吗?

I'm using Fiddler on daily life. However, the most used feature for me, such as Reissue and Edit and Reissue from composer don't have any shortcuts. I don't know how to use fiddler script for this. Can anybody point a solution for this?

推荐答案

CTRL + R 打开FiddlerScript编辑器.

Hit CTRL+R to open the FiddlerScript editor.

OnBoot()函数内,添加以下代码:

Inside the OnBoot() function add the following code:

FiddlerApplication.UI.lvSessions.add_KeyDown(HandleAKey);

在OnBoot函数的右括号之后,立即添加以下代码:

Immediately after the closing brace for the OnBoot function, add the following code:

static function HandleAKey(Sender, theKey:KeyEventArgs) {        
    if (theKey.KeyData == Keys.E)
    {
        var oS: Session = FiddlerApplication.UI.GetFirstSelectedSession();
        if (null == oS) return;
        theKey.Handled = theKey.SuppressKeyPress = true;
        FiddlerApplication.DoComposeByCloning(oS);
    }
}

保存文件.重新启动Fiddler.现在,当您在"Web会话"列表中的任何选定会话上按 E 键时,该会话将被克隆到编辑器中以重新发送.

Save the file. Restart Fiddler. Now, when you press the E key on any selected session in the Web Sessions list, that session will be cloned to the composer to resend.

当前,FiddlerApplication.UI.actReissueSelected()函数是不公开的,这意味着没有简单的方法来调用该功能而不直接调用FiddlerApplication.oProxy.SendRequest().

Currently, the FiddlerApplication.UI.actReissueSelected() function is not public, which means that there's no simple way to invoke that functionality without calling FiddlerApplication.oProxy.SendRequest() directly.

这篇关于Fiddler重新发行以及由作曲家进行编辑和重新发行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-23 00:57