我在C#中使用了Fiddler核心API来捕获所有流量,问题是当我打开某个安全网站的Internet Explorer时,其显示为“ 无法显示此页面”。但是对于其他一些https网站,它可以在同一浏览器中运行。
我正在使用以下代码:
FiddlerApplication.AfterSessionComplete += FiddlerApplication_BeforeRequest;
FiddlerApplication.AfterSessionComplete += FiddlerApplication_AfterSessionComplete;
const FiddlerCoreStartupFlags flags =
FiddlerCoreStartupFlags.AllowRemoteClients |
FiddlerCoreStartupFlags.CaptureLocalhostTraffic |
FiddlerCoreStartupFlags.DecryptSSL |
FiddlerCoreStartupFlags.MonitorAllConnections |
FiddlerCoreStartupFlags.RegisterAsSystemProxy;
FiddlerApplication.Startup(7777, flags);
// beforeRequest会话代码为:
if (oSession.oRequest.headers.HTTPMethod == "CONNECT")
{
//oSession["x-no-decrypt"] = "do not care.";
return;
}
oSession.bBufferResponse = true;
oSession.utilDecodeRequest();
请帮助我。