91

Is there an easy way to add an HTTPMethod (GET/PUT/POST/DELETE...) column to the fiddler display?

Found these instructions on the fiddler wiki for adding session variables:

cols add "Client IP Address" X-CLIENTIP

But HTTPMethod doesn't seem to be as easy.

Anybody know a way to do this or have a good fiddler script?

Community
  • 1
  • 1
thamster
  • 1,542
  • 1
  • 11
  • 10

2 Answers2

209

There's an easier way now (as of v4.4.5.1 or earlier).

Right-click the column bar and select Customize columns....

Collection: Miscellaneous
Field Name: RequestMethod
Screenshot of Customize Columns dialog box

Result:
Screenshot of new created column

Matthias
  • 13,607
  • 9
  • 44
  • 60
  • 4
    this is more intuitive – misaxi Jul 31 '14 at 04:08
  • 3
    Don't you mean _"or later"_? Any way, +1. – Cerbrus Jul 31 '15 at 14:07
  • 3
    No, I did mean _or earlier_. Basically it works on this version, and I'm not sure how many versions ago it was added. haha – Matthias Jul 31 '15 at 17:55
  • 3
    Note that if you add this to a running session, Fiddler won't go back and populate this column for existing transactions (adding a column doesn't cause Fiddler to re-parse data that it already rendered). If you export those sessions to a .saz file and reimport them then Fiddler with re-render that data and populate the new column. I mention this because I added this column in an instance of Fiddler where I had already captured data, and was initially confused upon seeing an empty "Method" column. – LinuxDisciple Sep 26 '17 at 19:28
23

Edit your rules, then in the class Handlers add:

public static BindUIColumn("Method", 60)
    function FillMethodColumn(oS: Session){

        return oS.oRequest.headers.HTTPMethod; 
    }
Michael MacDonald
  • 708
  • 1
  • 6
  • 24