What indicates the end of an HTTP Response, without having a Content-Length
header?
I've read that in some case, that server closes the TCP connection. But I've witnessed cases that the TCP Connection existed after receiving all the response.
So a major problem arises when:
- There isn't a
Content-Length
header - TCP connection exist after receiving all of the HTTP Response
- The browser wishes to use the same TCP connection in order to send more HTTP Requests
In that case, how the browser knows it can use the same TCP connection? The server might send more content that's relevant to the 1'st HTTP Request and that would get mixed up with the 2'nd HTTP Response.