3G Podcast Hack
Da dieser Artikel vermutlich auch International auf Interesse stößt, erscheint er in englischer Sprache.
One of the most interesting new features in iPhone Firmware 2.2 is the ability to download podcast episodes without a computer. Unfortunately Apple restricts this to episodes below 10 MB.
Well, we found a workaround for our own Podcast and would like to share the solution with you. Please notice that this solution is implemented on the podcast server. The Client (iPhone) remains untouched. So this article is mostly for those producing or hosting their own Podcast.
iTunes telling you „Preparing download…“ Wait. No really, just wait!
The trick is basically not telling the iPhone how big the file is. Just leave out the Content-Length Response Header or set it to „-1“. For this to work the filename needs to remain untouched. In theory this should be an easy task with mod_headers. Unfortunately our apache ignored everything which had to do with the content-length. If you find a working solution please tell us.
So what we implemented instead is a combination of mod_rewrite and a little php script.
The downsize of this solution is that the Client can’t tell you any progress while downloading. The iPhone will just tell you that it is preparing the download while actually downloading. Please note that with the solution below nothing will change for your iTunes or Mobile-iTunes if on WiFi. Everything will work as used (including progress bar).