Reputation: 153
When we enter a url and send it to http server from browser, we get the response from server sometimes a request with multi http response for one url , is there a way I can know which http response package is the final one?
I use python twisted
to see the response header and I can't figure out the difference of first header and final header.
Upvotes: 3
Views: 4643
Reputation: 11983
A HTTP response consists of headers followed by a message body.
The HTTP headers must all end with a <CR><LF>
newline. The headers are followed by an empty line and then the HTTP body data.
The Content-Length:
headers should specify the size of the message body in bytes so that the HTTP user-agent (or client) such as a browser knows how many bytes to read for body of the HTTP resource.
See the following links for more info:
Upvotes: 8