Reputation: 31
Is it possible to download an app from Apple app store programmatically without using iTunes?
I have tried Wireshark to catch packets while downloading an app in iTunes from my iPhone. In the trace, I've got a HTTP packet which revealed the URL of the app I downloaded.
However, when I used Wget to download from this URL, it turned out to be 403 Forbidden
.
The reason why I asked for help is that there are some "smart routers" which claimed to accelerate downloading from the app store, and I want to download some apps to test the real downloading speed and verify it. However, I do not want to click every download from the iTunes. I have my own Apple account and I will only download free apps.
Upvotes: 3
Views: 1923
Reputation: 291
Don't forget other headers like 'user-agent' and cookie:
wget --header='User-Agent: iTunes/12.1.1 (Windows; Microsoft Windows 7 x64 Business Edition Service Pack 1 (Build 7601); x64) AppleWebKit/7600.1017.9000.2' --header='Accept: /' --header='Cookie: downloadKey=expires=1426914268~access=/us/r1000/131/Purple3/v4/f8/f8/c5/f8f8c50a-90fc-f62f-af89-796bf89111c6/gbp3951770696681909972.D2.pd.ipa*~md5=11e28a91dbf5454de97148d90fce5386' 'http://a1834.phobos.apple.com/us/r1000/131/Purple3/v4/f8/f8/c5/f8f8c50a-90fc-f62f-af89-796bf89111c6/gbp3951770696681909972.D2.pd.ipa'
Upvotes: 0