开发者

How to read Http port in c#?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜