开发者

How to read Http port in c#?

开发者 https://www.devze.com 2023-01-28 17:02 出处:网络
how can 开发者_Python百科we read http port in c#Given the lack of detail in the question, here is a broad spectrum dose answer

how can 开发者_Python百科we read http port in c#


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号