摘要: 用TcpClient如何获取远程网页的内容private string GetHTMLTCP(string URL) { string strHTML = "";//用来保存获得的HTML代码 TcpClient clientSocket = new TcpClient(); Uri URI = new Uri(URL); clientSocket.Connect(URI.Host, URI.Port); StringBuilder RequestHeaders = new StringBuilder();//用来保存... 阅读全文
posted @ 2014-03-19 15:34 程序员徐坤 阅读(1101) 评论(0) 推荐(0) 编辑