I have a little program sends http request and gets response with TCP protocol.
My request format;
GET / HTTP/1.0 Host: somewebsite.com {two new line} >
In HTTP/1.0 - server response without content-length is when the stream closes
HTTP/1.0
content-length
In HTTP/1.1 - server response without content-length is when the response is chunked encoded
HTTP/1.1