tags:

views:

628

answers:

4

I'm trying to build a C# application, which uses Fiddler. I saw in the documentation somewhere, that there is supposed to be a function Fiddler.Application.Start or something like that. However, I can't find it. I'd prefer not to write a fiddler extension, because I think it will be more powerful to integrate fiddler into my app. Does anyone know how to do this?

+1  A: 

You can just do a System.Diagnostics.Process.Start() on the fiddler EXE, no?

Cheeso
+1  A: 

Is this what you are looking for?

Chris Smith
I want to use Fiddler.FiddlerApplication.Startup but it doesn't show up in the COM object.
gersh
Try one of the following:- Adding a reference to Fiddler.exe directly- Registering fiddler.exe for COM-interop (regsvr32 Fiddler.exe)- Generating .NET bindings for COM stuff (after regsvr32, do tlbimp Fiddler.exe /out:.NETFiddlerBindings.dll)
Chris Smith
I can pretty much guarantee that will break.
EricLaw -MSFT-
+6  A: 

You're really asking about FiddlerCore, which is different than Fiddler, and which is not presently publicly available. You cannot replicate FiddlerCore by simply wrapping Fiddler.exe.

If you want to automate Fiddler, simply launch it with Process.Start. You can send commands to the FiddlerScript engine using the ExecAction executable.

Incidentally, neither Fiddler nor FiddlerCore is a COM object.

Update: FiddlerCore is now available: http://www.fiddler2.com/fiddler/Core/

EricLaw -MSFT-
+1. From the horse's mouth! Love Fiddler btw Eric, thanks!
RichardOD
A: 

"Please note: FiddlerCore is currently undergoing a limited, Microsoft-Internal alpha. At present, there is no timeline for a broader release." http://fiddler.wikidot.com/fiddlercore

So, it appears there is no way to get FiddlerCore unless you work for Microsoft.

gersh