测试代码:
HttpWebRequest req = (HttpWebRequest)WebRequest.Create("http://www.google.com");
HttpWebResponse lRes = req.GetResponse() as HttpWebResponse;
Stream stream = lRes.GetResponseStream();
//StreamReader sr = new StreamReader(stream, System.Text.Encoding.GetEncoding("GB2312"));
StreamReader sr = new StreamReader(stream);
string s = sr.ReadToEnd();
lRes.Close();