Unplanned
Last Updated: 09 Jul 2024 17:53 by Eric
Martin
Created on: 24 May 2024 02:29
Type: Feature Request
0
Toggle to automatically decode the selected request's response body

I often have to locally save a lot of responses manually.

My workflow is:
• Open a .saz file

• Search for a particular request

• Save the response locally.

 

For that, I always have to manually click the "Response body is encoded. Click to decode." Button.

Fiddler Classic doesn't have a feature to automatically decode the selected request's response body.

 

So if I don't pay attention, and skip a step, I will store an encoded response body, without ever noticing it. Which can cause trouble later, since these files are then sent to my customer. And the customer could randomly check the files.

 

I need a toggle in Fiddler, that automatically decodes the selected request's response body.

2 comments
Eric
Posted on: 09 Jul 2024 17:53
// Click Rules > Customize Rules. Scroll to the OnBoot function.
//Inside that function, add:
FiddlerApplication.add_OnLoadSAZ(onLoadSAZ);
// Just outside that OnBoot function, add the following code:
static function onLoadSAZ(sender: Object, oEA: FiddlerApplication.ReadSAZEventArgs)
{
if (oEA.arrSessions.Length < 1) return;
var arrSess: Session[] = oEA.arrSessions;

  
  
  
  
for(var i:int=0; i<arrSess.Length; i++)
{
arrSess[i].utilDecodeRequest(true);
arrSess[i].utilDecodeResponse(true);
}
  
  
  
  
  
  
arrSess[i].RefreshUI();
}
}
}
// Save the file and restart Fiddler.

 

Eric
Posted on: 15 Jun 2024 02:40

1) During capture, you can depress the Decode button in the toolbar.

2) During later examination, you can select all sessions (Ctrl+A), then right-click and choose Decode Selected Sessions from the Session List's context menu.