如何通过代理在 C# 中使用 Fiddler?

How to use Fiddler in C# with a proxy?

我一直在 C# 中使用 Fiddler

到目前为止我能够拦截请求。但是,我需要设置代理。我这样做了,代理已设置。

Proxy Settings Windows' 表格中,我有 HTTPSecure127.0.0.1 Proxy address to usePort, 8888.

这与我直接使用 Fiddler 应用程序时所做的相同。

但是,当我通过 C# 代码而不是使用 Fiddler 设置它时,我无法导航。我的页面给我消息:

Your connection is not secure

我还需要做什么?我缺少什么 Fiddler 来正确设置代理?

通常如果无法建立安全连接,您需要trust Fiddler's root certificate on your development PC. If you are using Firefox you will have to do an additional step信任FF内部的证书。