摘要:
View Code 1publicstaticstringGetWebContent(stringurl)2{3stringresult=string.Empty;4try5{6HttpWebRequestmyHttpWebRequest=(HttpWebRequest)WebRequest.Create(url);7myHttpWebRequest.AllowAutoRedirect=true;89//maximumof10autoredirects10myHttpWebRequest.MaximumAutomaticRedirections=10;11//30secondtimeoutfo 阅读全文
posted @ 2011-11-15 16:36 闲坐敲棋 阅读(313) 评论(0) 推荐(0) 编辑