如何找到用于访问应用程序的http谓词(POST、GET、DELETE、PUT)?我看起来是httpcontext.current岁,但似乎没有任何房产给我提供信息.谢谢
如何找到用于访问应用程序的http谓词(POST、GET、DELETE、PUT)?我看起来是httpcontext.current岁,但似乎没有任何房产给我提供信息.谢谢
使用HttpContext.Current.Request.HttpMethod
.
见:http://msdn.microsoft.com/en-us/library/system.web.httprequest.httpmethod.aspx