[WebException: The underlying connection was closed: The message length limit was exceeded.]解决方法

[WebException: The underlying connection was closed: The message length limit was exceeded.]     
System.Net.HttpWebRequest.GetResponse()

response headers 最多 64 kb限制
HttpWebRequest.DefaultMaximumResponseHeadersLength = -1; // unlimited
原文地址:https://www.cnblogs.com/94cool/p/4241140.html