简体   繁体   English

捕获本地http发布流量

[英]Capture local http post traffic

I have two C# winform applications on the same window machine. 我在同一个窗口机器上有两个C#winform应用程序。

  • First application runs a http listener on localhost and port 4567 (not via IIS) 第一个应用程序在localhost和端口4567(不通过IIS)上运行http侦听器
  • Second application issue a http post (httpWebRequest) to port 4567. 第二个应用程序向端口4567发出http post(httpWebRequest)。

I'm trying to see the post/request traffic like I normally would when viewing http traffic in Fiddler2. 我试图在Fiddler2中查看http流量时通常会看到发布/请求流量。 I have no luck so far when trying to capture this traffic with fiddler2, Charles and Wireshark. 到目前为止,我试图用fiddler2,Charles和Wireshark捕获这些流量时没有运气。

Does anyone have insight on how to capture this traffic? 有没有人知道如何捕获这种流量?

To see the requests to your localhost application using fiddler, please set the URL in the calling application as shown below 要使用fiddler查看对localhost应用程序的请求,请在调用应用程序中设置URL,如下所示

http://localhost.fiddler:4567/ HTTP://localhost.fiddler:4567 /

The following post should help you out 以下帖子应该可以帮到你

Monitor traffic to localhost from IE or .NET 从IE或.NET监控到localhost的流量

Fiddler cannot intercept localhost traffic, because fiddler is a proxy server, and local requests are not sent through proxy server by the .NET Framework. Fiddler无法拦截localhost流量,因为fiddler是代理服务器,并且.NET Framework不会通过代理服务器发送本地请求。

To work around this, you can update your applications to send data to localhost.fiddler instead of localhost 要解决此问题,您可以更新应用程序以将数据发送到localhost.fiddler而不是localhost

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM