HttpWebRequest httpWeb = (HttpWebRequest)HttpWebRequest.Create("http://ypk.39.net/yaopin/zc/liqi/7c872.html");
httpWeb.UserAgent = "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0)";
httpWeb.Accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*";
httpWeb.ContentType = "application/x-www-form-urlencoded";
httpWeb.Method = "get";
httpWeb.CookieContainer = new CookieContainer();
httpWeb.KeepAlive = false;
HttpWebResponse httpRes = httpWeb.GetResponse() as HttpWebResponse;
Stream resStream = httpRes.GetResponseStream();
StreamReader sr = new StreamReader(resStream, System.Text.Encoding.GetEncoding("gb2312"));
string strCode = sr.ReadToEnd();
resStream.Close();
FileHelper.WriteFile("D://a.html", strCode);