HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://localhost/");
request.Connection = "keep-alive";
Error:System.ArgumentException: Keep-Alive 和 Close 不能使用此屬性設置。
應該怎樣設置HttpWebRequest.Connection屬性呢??
HttpWebRequest.KeepAlive = True;
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://localhost/");
request.Connection = "keep-alive";
Error:System.ArgumentException: Keep-Alive 和 Close 不能使用此屬性設置。
應該怎樣設置HttpWebRequest.Connection屬性呢??
HttpWebRequest.KeepAlive = True;
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。