摘要: private string GetHtmlCode(string url) { string htmlCode; HttpWebRequest webRequest = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(url); webRequest.Timeout = 30000; webRequest.Method = "GET"; webRequest.UserAgent = "Mozilla/4.0"; webRequest.Headers.Add("A... 阅读全文
posted @ 2012-02-21 17:53 编程笔记 阅读(2158) 评论(0) 推荐(2) 编辑