1

静的ファイルをサーバー化するためにApacheサーバーを使用しています。ファイルが大きくなる可能性があります。http範囲リクエストを使用してファイルをダウンロードするC++プログラムを作成しました。(同じファイルに対して3つの範囲要求を実行する3つのスレッドを作成しました)。各範囲リクエストの整合性を確認するにはどうすればよいですか?Apacheは、範囲要求に対してmd5ヘッダーを送信しません。

4

1 に答える 1

0

You can do a HEAD request to the static file to get all the headers without the file. Maybe that also contains the MD5 checksum.

Also, some FTP sites have the md5sum of a file simply in a text file along with the file.

It is not strictly necessary to check the MD5 of the file. TCP has checksums built-in, and it is very rare that a file gets corrupted on transfer.

于 2012-05-14T12:56:34.963 に答える