标签:http err col str except 设置 cal nec oca
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://localhost/");
request.Connection = "keep-alive";
Error:System.ArgumentException: Keep-Alive 和 Close 不能使用此属性设置。
应该怎样设置HttpWebRequest.Connection属性呢??
HttpWebRequest.KeepAlive = True;
标签:http err col str except 设置 cal nec oca
原文地址:http://www.cnblogs.com/ganjiqi/p/7685916.html