简体   繁体   English

如何在Fiddler中捕获服务器端Web API调用?

[英]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.

相关问题 Fiddler无法捕获Web服务器流量? - Fiddler cannot capture web server traffic? 无法让Fiddler使用本地主机不同的端口捕获来自MVC的HttpClient Web API调用 - Can't get Fiddler to capture HttpClient web api calls from MVC with localhost different port 使用提琴手和 web REST API - Using Fiddler and web REST API Web api asp.net Ajax请求Bearer令牌登录在Fiddler中有效,但在Ajax调用中无效 - Web api asp.net ajax request for Bearer token login work in fiddler but does not work in ajax call 服务器端渲染。 Web API和Angular 2 - Server side rendering. Web API and Angular 2 Web Api服务器端处理和数据表参数 - Web Api Server Side Processing and DataTables parameters 使用Fiddler的Web API测试返回null - Web API Test using Fiddler return null 简单的 API 但来自 Fiddler 的无尽捕获——用 201 锤炼 - Simple API but Endless Capture from Fiddler -- hammered with 201 在服务器端使用Ajax和Web Api阻止Web窗体中的CSRF - Prevent CSRF in Web Forms using Ajax and Web Api in the server side 使用Web API的客户端Web应用程序,如何根据服务器端Web API的期望填充选择框字段值? - Client-side web app consuming Web API, how to populate select box field values based on expectations of server-side Web API?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM