KB: Save and clear Fiddler sessions periodically by ExecAction.exe and Task Scheduler

  1. Edit CustomRules.js and look for function OnExecAction()

  2. Add a new custom action to the switch(sAction){} case statement

    e.g. the following “dailydump” action will save the captured sessions to C:\temp\

    case “dailydump”:

    FiddlerObject.UI.actSelectAll();

    if(FiddlerObject.UI.lvSessions.SelectedItems.Count > 0){

    FiddlerObject.UI.actSaveSessionsToZip(String.Format(“c:\\temp\\{0:yyyy-MM-dd_HHmmss}.saz”,DateTime.UtcNow));

    FiddlerObject.UI.actRemoveAllSessions();

    }

    break;

  3. Add a new task in Task Scheduler to run ExecAction.exe your_custom_action_name

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s