Php Oauth 2.0的令牌请求失败

Php Oauth 2.0的令牌请求失败,php,http,oauth-2.0,hotmail,Php,Http,Oauth 2.0,Hotmail,我正在尝试在我的网站的beta版中实现对Hotmail的OAuth 2.0身份验证(有关详细信息,请参阅)。我检查了很多次我的代码,一切似乎都是正确的。无论如何,当我用 file_get_contents($url, false, $context); 结果是我弄错了。印刷品 $http_response_header 这是我得到的答案: array(10) { [0] => string(24) "HTTP/1.1 400 Bad Request" [1] => strin

我正在尝试在我的网站的beta版中实现对Hotmail的OAuth 2.0身份验证(有关详细信息,请参阅)。我检查了很多次我的代码,一切似乎都是正确的。无论如何,当我用

file_get_contents($url, false, $context);
结果是我弄错了。印刷品

$http_response_header
这是我得到的答案:

array(10) { 
[0] => string(24) "HTTP/1.1 400 Bad Request" 
[1] => string(23) "Cache-Control: no-store" 
[2] => string(16) "Pragma: no-cache" 
[3] => string(19) "Content-Length: 115" 
[4] => string(30) "Content-Type: application/json" 
[5] => string(25) "Server: Microsoft-IIS/7.5" 
[6] => string(24) "X-WLID-Error: 0x80049D66" 
[7] => string(40) "PPServer: PPV: 30 H: BAYIDSLGN3C054 V: 0" 
[8] => string(35) "Date: Mon, 18 Nov 2013 16:44:40 GMT" 
[9] => string(17) "Connection: close" }

有人能告诉我调试这个的正确方向吗?

问题是测试版。。。在在线版本中它可以工作!问题解决了