C#中用SOCKET发送HTTP请求例子
C#中用SOCKET发送HTTP请求 自行组织http报文,报显示服务器反馈回来的报头与报体信息。 StringBuilder buf = new StringBuilder(); buf.Append("GET ").Append(path).Append(" HTTP/1.0\r\n"); buf.Append("Content-Type: application/x-www-form-urlencoded\r\n"); buf.Append("\r\n");
下载地址
用户评论
参考可以,实现了一些功能