C# – Connection: keep-alive Header is Not Being Sent During HttpWebRequest
I’ve had the same issue: The Connection: Keep-Alive header is not sent except the first request, and the server I accessed won’t give me the correct response if it is missing. So, here are my workarounds to this issue: First is set the ProtocolVersion property of HttpWebRequest instance to HttpVersion.Version10. Except the http command will … Read more