You could find the checksum of the file...then step through an FTP site with your program, checking checksums (I don't know if that'd work well over FTP, you may want to make your own protocol!), and if they match download it