I have written an FTP library for BlitzMAX if you want that.
If you want to verify the data, find some code to compute a hash for it, download that hash first, then download the data. Recompute the hash for the data actually downloaded and then compare it against the original hash. If they match then you can use the file, else it is corrupted.
I suggest doing some real-world tests to determine whether corruption is a problem first before you go down this route. It may be the case that the HTTP stream already has enough built-in mechanisms to deal with transmission errors.
If you want to verify the data, find some code to compute a hash for it, download that hash first, then download the data. Recompute the hash for the data actually downloaded and then compare it against the original hash. If they match then you can use the file, else it is corrupted.
I suggest doing some real-world tests to determine whether corruption is a problem first before you go down this route. It may be the case that the HTTP stream already has enough built-in mechanisms to deal with transmission errors.