HTTPS Automated Connection Guide

HTTPS Automated Connection Guide

Checksum

Checksum

The Checksum command is used to calculate the hash of a remote file. The reply is returned on the first line of the response body and can be used to compare with the hash value of the downloaded local file to verify data integrity. The supported hash algorithms are SHA1, MD5, and CRC32.
URL
Request Type
Parameters
/hash
GET or POST
file (required) – the path relative to the current working directory, or an absolute path to the file.
algorithm – the hash algorithm to use when calculating a checksum. Valid values are SHA1 (default), MD5, or CRC32.
length - The starting position within the file. This value is used for calculating partial file checksums. By default the value is 0, which will perform the checksum on the entire file.

0 COMMENTS

We’d like to hear from you!