Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fiddler Reissue and Edit and Reissue 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?

like image 683
Jones Avatar asked Dec 26 '22 12:12

Jones


1 Answers

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.

like image 136
EricLaw Avatar answered Jan 15 '23 03:01

EricLaw