Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/319.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 有没有使用TCP套接字读取http请求并从中收集数据的示例(比如以某种方式模拟http服务器)_C#_.net_Http_Tcp - Fatal编程技术网

C# 有没有使用TCP套接字读取http请求并从中收集数据的示例(比如以某种方式模拟http服务器)

C# 有没有使用TCP套接字读取http请求并从中收集数据的示例(比如以某种方式模拟http服务器),c#,.net,http,tcp,C#,.net,Http,Tcp,有没有使用TCP套接字从http请求中收集数据(比如以某种方式模拟http服务器)来读取http请求的示例,所以我想保留发送者IP:端口、请求体等数据 那么,有人在开源项目中见过这样的东西吗?或者你知道如何创建它吗?(如果是,请提供siple代码示例)回顾过去,HTTP不是最容易解析的协议。如果它是在今天从头开始设计的,它将是非常不同的 首先,如果可能,请使用ASP.NET。如果你不能使用ASP.NET,那么看看这个类

有没有使用TCP套接字从http请求中收集数据(比如以某种方式模拟http服务器)来读取http请求的示例,所以我想保留发送者IP:端口、请求体等数据


那么,有人在开源项目中见过这样的东西吗?或者你知道如何创建它吗?(如果是,请提供siple代码示例)

回顾过去,HTTP不是最容易解析的协议。如果它是在今天从头开始设计的,它将是非常不同的

首先,如果可能,请使用ASP.NET。如果你不能使用ASP.NET,那么看看这个类