//创建http链接
var request = (HttpWebRequest)WebRequest.Create("http://www.cnblogs.com/huangxincheng/archive/2012/03/14/2395279.html");
request.Timeout = 1000 * 5; //5s过期
var response = (HttpWebResponse)request.GetResponse();
Stream stream = response.GetResponseStream();
StreamReader sr = new StreamReader(stream);
string content = sr.ReadToEnd();
Console.WriteLine(content);