从URL获取OAuth标头

时间:2017-07-13 21:46:27

标签: c# oauth http-headers

我有第三方网址,用于在标头中发送oAuth参数。当我使用下面的代码阅读它时,不会返回授权参数。我错过了什么?

string url = "http:  // xxx.com/events/abc-def";
            HttpClient httpClient = new HttpClient();

            WebRequest request = WebRequest.Create(url);
            request.Method = WebRequestMethods.Http.Get;
            string authHeader = request.Headers["Authorization"];

0 个答案:

没有答案