[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
posted @ 2015-01-22 11:15  94cool  阅读(720)  评论(0编辑  收藏  举报