0

I want to control internet connection programmatically, (I use 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.

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.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Omar Abid
  • 15,753
  • 28
  • 77
  • 108

1 Answers1

2

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.

According to this MSDN article:

...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.

Additionally, take a look at the answers to this question - How to create a simple Proxy in C#.

Community
  • 1
  • 1
Cerebrus
  • 25,615
  • 8
  • 56
  • 70