Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从 WCF Web API 中的 Web 方法访问标头值?
你可以尝试这样的事情:
(使用 System.Web;)
HttpUtility.UrlDecode(HttpContext.Current.Request.Headers["myValue"]);