简体   繁体   English

我可以从C#开始小提琴吗?

[英]Can I start fiddler from C#?

I'm trying to build a C# application, which uses Fiddler. 我正在尝试构建一个使用Fiddler的C#应用​​程序。 I saw in the documentation somewhere, that there is supposed to be a function Fiddler.Application.Start or something like that. 我在文档中看到,应该有一个函数Fiddler.Application.Start或类似的东西。 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. 我不想写一个小提琴扩展,因为我认为将fiddler集成到我的应用程序中会更强大。 Does anyone know how to do this? 有谁知道如何做到这一点?

You're really asking about FiddlerCore , which is different than Fiddler. 你真的在问FiddlerCore ,它与Fiddler不同。 You cannot replicate FiddlerCore by simply wrapping Fiddler.exe. 你不能通过简单地包装Fiddler.exe来复制FiddlerCore。

If you want to automate Fiddler, simply launch it with Process.Start. 如果您想自动化Fiddler,只需使用Process.Start启动它。 You can send commands to the FiddlerScript engine using the ExecAction executable . 您可以使用ExecAction可执行文件将命令发送到FiddlerScript引擎。

Incidentally, neither Fiddler nor FiddlerCore is a COM object. 顺便说一句,Fiddler和FiddlerCore都不是COM对象。

你可以在fiddler EXE上做一个System.Diagnostics.Process.Start() ,不是吗?

是你在找什么?

"Please note: FiddlerCore is currently undergoing a limited, Microsoft-Internal alpha. At present, there is no timeline for a broader release." “请注意:FiddlerCore目前正在使用有限的Microsoft-Internal alpha。目前,没有更广泛发布的时间表。” http://fiddler.wikidot.com/fiddlercore http://fiddler.wikidot.com/fiddlercore

So, it appears there is no way to get FiddlerCore unless you work for Microsoft. 所以,除非你为微软工作,否则似乎无法获得FiddlerCore。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM