Fiddler Reissue and Edit and Reissue from composer

情到浓时终转凉″ 提交于 2019-12-07 09:34:01

问题


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?


回答1:


Hit CTRL+R to open the FiddlerScript editor.

Inside the OnBoot() function add the following code:

FiddlerApplication.UI.lvSessions.add_KeyDown(HandleAKey);

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);
    }
}

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.

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.



来源:https://stackoverflow.com/questions/14068166/fiddler-reissue-and-edit-and-reissue-from-composer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!