简体   繁体   English

控制互联网连接数据

[英]Control Internet connection data

I want to control internet connection programmatically, (I use Visual Studio .net (C#)). 我想以编程方式控制Internet连接(我使用Visual Studio .net(C#))。 I want to process all the requests that are sent to the internet. 我想处理所有发送到互联网的请求。

For example, if a user on any browser type "google.com", I want to get this request before it's sent to the internet. 例如,如果任何浏览器上的用户键入“ google.com”,我都希望在将该请求发送到互联网之前得到它。

Simply, it's a process that Windows uses to send and retrieve data from a communication port, please do any one have a simple article that explain this process, also does any one have an idea how to control the data flow on communication ports using dot net. 简而言之,这是Windows用于从通信端口发送和检索数据的过程,请让任何人撰写一篇简单的文章来说明该过程,也要使任何人都知道如何使用点网控制通信端口上的数据流。 。

You may want to check out how Fiddler , a transparent proxy that automatically adds itself to the WININET chain so that it can see every request being made, works. 您可能想查看Fiddler (一种透明的代理程序)如何工作,该透明代理程序会自动将自身添加到WININET链中,以便可以看到所发出的每个请求。

According to this MSDN article: 根据此MSDN文章:

...the program registers itself as the system proxy for Microsoft Windows Internet Services (WinInet), the HTTP layer used by Internet Explorer, Microsoft Office, and many other products. ...该程序将自身注册为Microsoft Windows Internet服务(WinInet),Internet Explorer,Microsoft Office和许多其他产品使用的HTTP层的系统代理。

Additionally, take a look at the answers to this question - How to create a simple Proxy in C# . 此外,请查看此问题的答案- 如何在C#中创建简单的代理

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

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