I am using the BackgroundFileTransfer method to download large audio files in Windows Phone. Everything works great on Windows Phone 7, but on Windows Phone 8 it seems I get TransferError = “The HTTP network provider returned an error” for some URLs and I see the status code being 301 (Moved permanently).
I also get SystemException if I try to open this URL in the BackgroundAudioPlayer (which also works on WP7).
So doesn’t WP8 know how to handle HTTP code 301?
I did some more investigation and I have some more info; this issue not related to HTTP 301 at all but HTTPS connection. Both of the URLs that do not work are behind HTTPS.
WP8 doesn’t even try to fetch anything as it send “FIN, ACK” after the handshake. WP8 just gives up. WP7 on the other hand sends “SYN” as it should and starts to download the file (after receiving HTTP 301).
I have let MS know about this issue: http://social.msdn.microsoft.com/Forums/en-US/wpdevelop/thread/f4cc446d-534c-496f-86e2-d21e72001177. Let’s see if anything happens.