liamzebedee
liamzebedee

Reputation: 14490

Does HTTP use a checksum? Why/why not?

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

Answers (1)

Shiro Hazuki
Shiro Hazuki

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

Related Questions