[英]How to capture a server side web api call in fiddler?
I have got the a service with the following topology. 我有一个具有以下拓扑的服务。
A (Web application) ---calls---> B (Local Web Api) ---calls---> C (Remote Web Api) A(Web应用程序)---调用---> B(本地Web Api)---调用---> C(远程Web Api)
I am trying to capture the traffic from B to C in Fiddler, but nothing is logged. 我正在尝试捕获Fiddler中从B到C的流量,但未记录任何内容。
B is a web site hosted locally on my dev box in IIS. B是在IIS中我的开发箱中本地托管的网站。 It's running on an app pool with a credential other than mine as it has a different set of permissions. 它在具有我的凭据以外的凭据的应用程序池上运行,因为它具有一组不同的权限。 Traffic going out from B is not getting logged, even after I have done the following redirect: 即使执行以下重定向,从B出站的流量也不会被记录:
<system.net>
<defaultProxy
enabled = "true"
useDefaultCredentials = "true">
<proxy autoDetect="false" bypassonlocal="false" proxyaddress="http://127.0.0.1:8888" usesystemdefault="false" />
</defaultProxy>
What can I do to capture traffic leaving B? 如何捕获离开B的流量?
The problem is that the .NET Framework is hardcoded to bypass the proxy for localhost
addresses. 问题是.NET Framework进行了硬编码,以绕过localhost
地址的代理。 Change the target address to localhost.fiddler
and the traffic will be captured. 将目标地址更改为localhost.fiddler
,将捕获流量。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.