Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does HTTP use a checksum? Why/why not?

Tags:

http

tcp

checksum

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?

like image 366
liamzebedee Avatar asked Oct 24 '25 15:10

liamzebedee


1 Answers

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.

like image 144
Shiro Hazuki Avatar answered Oct 26 '25 11:10

Shiro Hazuki