HttpWebRequest request = WebRequest.Create("http://localhost:5001/identity") as HttpWebRequest; request.Method = "GET"; var headers = request.Headers; headers["Authorization"] = "Bearer " + key; //传递进去认证Token request.Headers = headers; HttpWebResponse response;
https://www.cnblogs.com/wjx-blog/p/11127837.html
标签:Headers,request,headers,token,api,HttpWebRequest,IdentityServer From: https://www.cnblogs.com/djd66/p/16875941.html