Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/http/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows Phone 8无法在BackgroundFileTransfer或BackgroundAudioPlayer中处理HTTP代码301?_Http_Windows Phone 8 - Fatal编程技术网

Windows Phone 8无法在BackgroundFileTransfer或BackgroundAudioPlayer中处理HTTP代码301?

Windows Phone 8无法在BackgroundFileTransfer或BackgroundAudioPlayer中处理HTTP代码301?,http,windows-phone-8,Http,Windows Phone 8,我正在使用BackgroundFileTransfer方法在Windows Phone中下载大型音频文件。在Windows Phone 7上一切都很好,但在Windows Phone 8上,似乎我得到了TransferError=HTTP网络提供商返回了一些URL的错误,我看到状态代码被永久移动 如果我试图在同样适用于WP7的BackgroundAudioPlayer中打开此URL,我也会收到SystemException 那么WP8不知道如何处理HTTP代码301吗 我做了更多的调查,得到了更

我正在使用BackgroundFileTransfer方法在Windows Phone中下载大型音频文件。在Windows Phone 7上一切都很好,但在Windows Phone 8上,似乎我得到了TransferError=HTTP网络提供商返回了一些URL的错误,我看到状态代码被永久移动

如果我试图在同样适用于WP7的BackgroundAudioPlayer中打开此URL,我也会收到SystemException


那么WP8不知道如何处理HTTP代码301吗

我做了更多的调查,得到了更多的信息;此问题与HTTP 301无关,但与HTTPS连接无关。两个不起作用的URL都在HTTPS后面

WP8在握手后发送FIN、ACK时甚至不尝试获取任何内容。WP8只是放弃了。另一方面,WP7发送SYN,并在收到HTTP 301后开始下载该文件


我已将此问题告知MS:。让我们看看有没有什么事发生

这可能是故意的。你想让一个后台应用程序在没有你输入的情况下从一个域跳到另一个域吗?@RichardA。虽然HTTP代码302很可能是经过处理的,但我希望这是HTTP客户机所期望的。我也不希望WP7出现倒退。在HTTP中,您可以执行wrt的跃点是有限制的。代码301。@Earlz是的,HTTP 302似乎工作正常。然后不知何故向Microsoft提交了一个bug。他们没有正确地实现HTTP标准。因为它是一个永久的重定向,所以您应该能够只获取它重定向到的URL并使用它