Video icon
Video Tutorials
Search this site
Get Fiddler! Addons Help & Documentation Developer Info Discuss Contact

Configuring Columns

Column Reordering & Sorting

You can reorder the columns by dragging a column header to the left or the right.

You can the Session List based on the values in a particular column by clicking on that column's header.

Adding Custom Columns

Fiddler v2.2.0.5 and later enable you to add custom columns.  You can bind columns in two distinct ways.

From FiddlerScript, you can simply add a method labeled with the BindUIColumn attribute:

       public static BindUIColumn("HTTPMethod")
       function CalcMethodCol(oS: Session){
              if (null != oS.oRequest) return oS.oRequest.headers.HTTPMethod; else return String.Empty;
       }

Fiddler will run the method on each session to fill the custom column.  (To avoid exceptions, be sure that your method is robust and checks to ensure that objects exist before use!)

Alternatively, from FiddlerScript you can call the AddBoundColumn() method.  The first parameter is the name with which the column should be named, and the second parameter is the default width of the column.  The third parameter is either a Fiddler Session Flag string, an @-led-header name, or a JavaScript function that returns a string. 

       static function Main()
       {
              FiddlerObject.UI.lvSessions.AddBoundColumn("ClientPort", 50, "X-ClientPort");
              FiddlerObject.UI.lvSessions.AddBoundColumn("SentCookie1", 60, getSentCookie);
              FiddlerObject.UI.lvSessions.AddBoundColumn("SentCookie2", 60, "@request.Cookie");
              FiddlerObject.UI.lvSessions.AddBoundColumn("ReturnedCookie", 60, "@response.Set-Cookie");

      
}

       static function getSentCookie(oS: Session){ if (null != oS.oRequest) return oS.oRequest["Cookie"]; }
   

From an IFiddlerExtension, you can use the AddBoundColumn method, passing a getColumnStringDelegate as the third parameter.


< Back to Help Homepage


©2009 Microsoft Corporation