php - Checksums in REST API responses -


is idea send checksum content of response? , if so, common way calculate checksum?

example:

http/1.1 200 ok date: thu, 30 jun 2011 21:32:20 gmt server: apache connection: close content-type: application/json  22  {test:1} 

the underlying protocol http tcp has checksum mechanism, think useless.

if still need kind of thing calculate sha1 signature of body content , include custom header in response, like

http/1.1 200 ok date: thu, 30 jun 2011 21:32:20 gmt server: apache connection: close content-type: application/json x-checksum: 40325305549f7a09edb51ff8df9528ffd8434ac6 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -