Accessing query string variables sent as POST in HttpActionContext
问题 I'm trying to access a query string parameter that was sent using the POST method (WebClient) to the Web API in ASP.NET MVC 5 (in an overridden AuthorizationFilterAttribute). For Get, I've used the following trick: var param= actionContext.Request.GetQueryNameValuePairs().SingleOrDefault(x => x.Key.Equals("param")).Value; However, once I use POST, this does work and the variable paran is set to null. I think that's because the query string method only applies to the url, not the body. Is