user484458
user484458

Reputation: 168

How to read Http port in c#?

how can we read http port in c#

Upvotes: 1

Views: 2034

Answers (1)

Chris Taylor
Chris Taylor

Reputation: 53699

Given the lack of detail in the question, here is a broad spectrum dose answer

If you want to write an HTTP Server you can

  1. Use HttpListener

  2. Use TcpLister class and write your own TCP server

  3. Use the Socket class and write your own TCP server

If your intention is to monitor the HTTP traffic that your server is receiving then you can

  1. Use WinPCap (SharpPCap) to capture the traffic and filter the traffic you are interested in

If your intention is to send HTTP traffic to a server

  1. Look at WebRequest class

  2. Loot at WebClient class

Upvotes: 6

Related Questions