Since its final release, I've been trying to download iPhone's SDK from Apple's website. The whopping 1.6 GB download seems a pretty daunting task in my unstable line, and some of apple's web sites features made it pretty impossible in no time.
My download failed three times after 50-70% completion, each time either I have manually paused the download for some reason or my connection was having some problem. And apples server did not give me any resume feature in any of the download managers. Downloading 1.6 GB with Firefox's own download manger seemed an option, but what if Firefox crashes?
At last, I thought of giving good ol' wget a try and it didn't fail me. If you are in a similar situation like me, try this.
My download failed three times after 50-70% completion, each time either I have manually paused the download for some reason or my connection was having some problem. And apples server did not give me any resume feature in any of the download managers. Downloading 1.6 GB with Firefox's own download manger seemed an option, but what if Firefox crashes?
At last, I thought of giving good ol' wget a try and it didn't fail me. If you are in a similar situation like me, try this.
- Downlaod 'Export Cookie' addon for firefox from here
- Log into iPhone Developer Site using your apple developer account, if you don't have one, just register, its free.
- Export your cookie using the addon to a file named 'cookies.txt'
- Run this from the command line
wget --limit-rate=5k --tries=inf -server-response --continue --load-cookies cookies.txt http://adcdownload.apple.com/iphone/iphone_sdk_for_iphone_os_2.2__9m2621__final/iphone_sdk_for_iphone_os_2.2_9m2621_final.dmg