Associate Fiddler with .PCAP files for quick viewing?

495 views
Skip to first unread message

Ben Edelman

unread,
Jun 30, 2014, 4:42:28 PM6/30/14
to httpf...@googlegroups.com
I like to use Fiddler to view .PCAP files created elsewhere.  But it's a few extra clicks to proceed through File-Important.  Drag-and-drop doesn't work. 

Ideally, it would be possible to associate Fiddler with .PCAP's.  But Fiddler's Command-Line Help indicates no command line option to import a .PCAP.  I only a see a way to provide a .SAZ file on the command line, which isn't quite what I need.

Suggestions?

EricLaw

unread,
Jul 1, 2014, 4:24:37 PM7/1/14
to
Thanks for asking about this; this has been one of my longstanding backlog issues, and I've added support for this in Fiddler 2.4.8.5.

This build supports opening PCAP, CAP, PCAPNG, HAR, and TSTEST files directly via the command line. You can also hold down CTRL while dropping one of these file types directly on the Fiddler Session List to cause it to be treated as an import operation.

Fiddler Transcoder developers can use a new overload of the ProfferFormatAttribute that lists supported file extensions, like so:

    [ProfferFormat("Packet Capture""The PCAP and CAP formats are ..."".cap;.pcap;.pcapng")]

The filename specified by the user will be in the options dictionary passed to the ImportSessions function:

 if (null != dictOptions)
 {
    if (dictOptions.ContainsKey("Filename"))  {
        sFilename = dictOptions["Filename"as string;
    }
 
    if (dictOptions.ContainsKey("Quiet"))
    {
       bSilent = ("True".OICEquals((dictOptions["Quiet"as string)));
    }
 }

Ben Edelman

unread,
Aug 22, 2014, 3:31:01 PM8/22/14
to httpf...@googlegroups.com
Just closing the loop here -- I've been using this improvement for a month and it works just as expected!  Saves me a few seconds a dozen times per day.  Thanks so much.
Reply all
Reply to author
Forward
0 new messages