[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

你可能感兴趣的:(Connection)