【发布时间】:2013-12-01 22:38:48
【问题描述】:
我正在尝试在我的网站的测试版中实现对 Hotmail 的 OAuth 2.0 身份验证(有关详细信息,请参阅http://msdn.microsoft.com/en-us/library/live/hh243647.aspx#authcodegrant)。我检查了很多次我的代码,一切似乎都是正确的。无论如何,当我使用
请求访问令牌时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" }
任何人都可以指出我调试的正确方向吗?
【问题讨论】:
标签: php http oauth-2.0 hotmail