Is the file you want to download a file provided by you? If yes you could also provide a textfile containing the checksum of that file which will be downloaded first. After that you could download the main-file and compare its checksum with the checksum from your textfile.
IMHO there is no way to calc a checksum of a file placed on a webserver without downloading that file to your local computer.