开发者

Getting the Authorization header from an http request

开发者 https://www.devze.com 2023-04-11 15:24 出处:网络
Does anyone know 开发者_开发问答how to get the authorization header value from an http request in asp.net? I\'ve been trying to google it but i haven\'t found anything on retrieving the authorization

Does anyone know 开发者_开发问答how to get the authorization header value from an http request in asp.net? I've been trying to google it but i haven't found anything on retrieving the authorization header values.


Easy:

string value = Request.Headers["Authorization"]

Not something you usually handle on your own though.

0

精彩评论

暂无评论...
验证码 换一张
取 消