HTTP downloader with good integrity(hash..probably md5) checker built in

2

I'm trying to download xcode v3.2 from the Apple Developer Connection website, but everytime I download the huge file, it fails to mount due to a checksum error. It's really frustrating! BitTorrent downloaders have more reliability than normal http downloads. Anyways, just wondering if there is any intelligent downloader which can download without corrupting.

I can use an md5 hash checker, but that's only useful once the whole file has been downloaded. I need a solution which can check integrity on-the-fly and re-download the corrupted bits. If there's any such provision in the HTTP.

I've searched for the file on the usual torrent sources... its not there :(

Any help is appreciated...have a good day! thanx

detj

Posted 2009-10-04T04:15:58.090

Reputation: 893

Question was closed 2014-06-15T12:17:04.770

Answers

2

Bittorrent is all you can have at the moment. Standard HTTP downloads can't be processed as you describe -- first you'd need to checksum all the pieces of a file beforehand (like bittorrent), then you'd need to distribute a small file with those checksums to the client (like bittorrent), then you'd need software that checks those checksums as pieces come in (like bittorrent).

The best you can do with standard HTTP/FTP/etc downloads is checksum the file after the transfer is complete.

If your transfer is failing, try

  • a) another download location (as in another URL to download from), or
  • b) another download location (as in physically travel to another site and use their internet connection -- maybe try it from work).

quack quixote

Posted 2009-10-04T04:15:58.090

Reputation: 37 382

Not really, rsync can do checksumming as well thus fixing a broken big file. But of course, this requires the other side that's serving files for you to serve them over rsync. – vtest – 2011-01-09T21:27:58.970

hmm that's sad! well, then hit & trial it is. Apple doesn't give any mirror site, just a stupid 'Download' button. I'll try downloading from any other connection (diff. ISP), maybe that could work thanx man – detj – 2009-10-04T04:28:12.730

2

Http doesn't tell you the checksum of the data in advance, and it certainly doesn't tell you a checksum of the parts. Without using a non-http tool, the best I could recommend is that you use curl with the resume option, I've had better luck with that, and actually did use it for large dmg files on Apple's site.

That would be using the -C - option like so:

curl -O -C - http://developer.apple.com/download/something.dmg

dlamblin

Posted 2009-10-04T04:15:58.090

Reputation: 9 293

nice trick! will try dat – detj – 2009-10-04T15:36:20.587