Slowpoke101/FTBLaunch — pull request #418 by PaulTT88 (2012-11-26 13:00:19+00:00)
Title: HTTP Headers Check

Hello,

Writing in Java is like trying to talk in German for me, I understand enough to make it work, and I have a dictionary, but it does not by ANY means make my java good.

I've attempted to add HTTP header checking to the CreeperRepo urls, with failover to different machines (It retries the initial machine first), given the stats shown on CreeperRepo now, (122 failures to 1.5 million successful requests) I believe this should be enough for smooth operation.

Hopefully I understand the use of HTTPUrlConnection, that if the stream is not opened, it does not download the file, only the headers, checked the header for code 200 (HTTP 1.0/OK), if it returns 503 because of heavy load, or 404 because of an incorrect hash somehow, this should then retry instead of people just ending up with no mods or exceptions reading the modpack xml files.

Once again, I apologize for my poor java, and hopefully at the least you can use this as a 'suggestion' and write it better.

~Paul from CreeperLabs.com

P.S. It's been a while since I've done anything with github, apologies if I've done it wrong.