I use HttpWebRequest to POST image of a byte array through web services, image size is approximately similar to byte[4096]
code:
HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(wsHost); webRequest.Headers.Add(HttpRequestHeader.AcceptEncoding, "gzip,deflate"); webRequest.Headers.Add(HttpRequestHeader.KeepAlive, "true");
I get an error message:
The underlying connection was closed. A connection that was expected to be kept alive was closed by the server
Is this a server problem, or is my sending problem?
source share