Microsoft.Owin.Testing.TestServer cannot use with Fiddler

 ̄綄美尐妖づ 提交于 2019-12-25 04:24:17

问题


I tried to use TestServer and found that Fiddler could not catch the traffic.

The address is set to http://localhost and no way to change it.

        server = TestServer.Create(app =>
        {
            new Startup().Configuration(app);
        });

It would be good to change the url to http://ipv4.fiddler or some other candidate methods in http://docs.telerik.com/fiddler/observe-traffic/troubleshooting/notraffictolocalhost page.

how can I do?


回答1:


This won't work as TestServer fakes out the transport layer and just creates and passes in HttpContext objects to your controllers. There's no traffic for Fiddler to intercept and no real TCP or HTTP performed.



来源:https://stackoverflow.com/questions/25058358/microsoft-owin-testing-testserver-cannot-use-with-fiddler

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!