# TcpClientHttpRequest **Repository Path**: FreeSql/TcpClientHttpRequest ## Basic Information - **Project Name**: TcpClientHttpRequest - **Description**: 基于 TcpClient 现实的 http请求库,编写于2007年做了几年数据采集工作。 - **Primary Language**: C# - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2019-10-26 - **Last Updated**: 2023-08-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 基于 TcpClient 实现的 http请求库,编写于2007年做了几年数据采集工作。 # 支持 * http/https * get/post * cookie 管理(兼容性好) * gzip/deflate 自动解压内容 * 普通响应/chunk响应 * 重定向(防死循环重定向) * 代理请求 # 使用方法 ```csharp TcpClientHttpRequest hr = new TcpClientHttpRequest(); hr.Action = "http://www.baidu.com/"; hr.Method = "get"; //默认 hr.Send(); Console.WriteLine(hr.Response.Xml); ```