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
Post a Comment