I am trying to make Http connections made by C# HttpClient helper class reusable. I read that there is KeepAlive header which has to be present in Http request.
I sniffed the traffic and I cant find any reference to KeepAlive.
It has GET and it has HTTP/1.1 strings in there. No KeepAlive no nothing.
P.S. I also tried to find KeepAlive property somewhere on HttpClient but couldnt…
Any ideas?
It should have a
Connectionheader, which looks like this:Connection: CloseConnection: Keep-AliveThe keep-alive header looks like this:
Keep-Alive: 115