Good day. I'm using idhttp in my Delphi application.
I wonder if it is possible I Getting a MD5 hash of a file Online :
eg
idhttp.get ( ' http.onedrive.com/arquive.rar ');
Is possible to return the MD5 of a file before downloading ... or just after I download could check the MD5 ?
For in php ... I use get_headers which returns some enteressantes data as Content- MD5 ... but almost any file owned this header ...
Ex php:
<?php $url = 'https://download3.vmware.com/software/player/file/VMware-player-6.0.4-2249910.exe';
echo '<pre>';
print_r(get_headers($url));
print_r(get_headers($url, 1));
?>
Array
(
[0] => HTTP/1.0 200 OK
[Server] => Apache
[ETag] => "df0743bf13519b6c461d50fac0fa0ded:1414635035"
[Content-MD5] => 3wdDvxNRm2xGHVD6wPoN7Q==
[Last-Modified] => Thu, 30 Oct 2014 02:10:35 GMT
[Accept-Ranges] => bytes
[Content-Length] => 98906456
[Date] => Tue, 25 Nov 2014 19:11:28 GMT
[Connection] => close
[Content-Disposition] => attachment; filename="VMware-player-6.0.4-2249910.exe"
[Content-Type] => application/x-octet-stream
)
I can use this ETag header to see if the file is identical? But how to catch it with DELPHI ??
[ETag] => "df0743bf13519b6c461d50fac0fa0ded: 1414635035"