System.Net.ServicePointManager.DefaultConnectionLimit=100;
HttpWebRequest request=(HttpWebRequest) WebRequest. Create (builder. The ToString ());
HttpWebResponse response=null;
Try
{
Request. The Method="GET";
Request. The ContentType="text/HTML. Charset=utf-8 ";
Request. The Timeout=5 * 60 * 1000;
Request. The KeepAlive=false;
The response=(HttpWebResponse) request. The method GetResponse ();
The string result;
The Stream s=response. GetResponseStream ();
StreamReader reader=new StreamReader (s, Encoding GetEncoding (" utf-8 "));
Return reader. ReadToEnd ();
//return the result.
}
The catch (Exception ex)
{
String a=ex. The Message;
return null;
}
The finally
{
If (the response!=null)
{
The response. The Close ();
}
If (request!=null)
{
Request. The Abort ();
}
}
The above code, the great god