HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://localhost/");
request.Connection = "keep-alive";
Error:System.ArgumentException: Keep-Alive 和 Close 不能使用此属性设置。
应该怎样设置HttpWebRequest.Connection属性呢??
HttpWebRequest.KeepAlive = True;