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