Reputation: 14490
As I understand, TCP has a relatively reliable checksum mechanism, but there is a very small yet present chance of it returning a false positive.
Does HTTP use an application level checksum (perhaps a hash)? If not, why?
Upvotes: 4
Views: 3922
Reputation: 84
Yup (: the specs for HTTP/1.1 (RFC 2616) allow the use of a Content-MD5
header. Take a look at its section 14.15.
Copy-pasted:
The Content-MD5 entity-header field, as defined in RFC 1864 [23], is an MD5 digest of the entity-body for the purpose of providing an end-to-end message integrity check (MIC) of the entity-body.
Upvotes: 5