我正在通过网络服务使用HttpWebRequest
字节POST
数组图片,图片大小类似于byte[4096]
代码:
HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(wsHost);
webRequest.Headers.Add(HttpRequestHeader.AcceptEncoding, "gzip,deflate");
webRequest.Headers.Add(HttpRequestHeader.KeepAlive, "true");
我收到一个错误:
The underlying connection was closed. A connection that was expected to be kept alive was closed by the server
是服务器问题,还是我发帖问题?