简体   繁体   English

来自C#中tcpClient的Fiddler中未显示传出的HTTP请求

[英]Outgoing http requests not showing in Fiddler from tcpClient in C#

I have a TCP-client written in C#, which sends HTTP requests. 我有一个用C#编写的TCP客户端,用于发送HTTP请求。 When I am sending requests I don't see them in Fiddler. 发送请求时,我在Fiddler中看不到它们。 When I send similar requests from Http requester I can see all requests. 当我从Http请求者发送类似的请求时,我可以看到所有请求。 What is the reason? 是什么原因?

Fiddler registers itself as the default HTTP proxy. Fiddler将自己注册为默认的HTTP代理。 Applications are free to ignore that proxy. 应用程序可以随意忽略该代理。 Your code needs to cooperate with Fiddler. 您的代码需要与Fiddler合作。 It needs to find out what proxy is set and use it. 它需要找出设置了什么代理并使用它。

The built-in HTTP classes in .NET do that. .NET中的内置HTTP类可以做到这一点。

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

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