C# 判断当前请求是GET还是POST
2021-03-08 13:26
标签:request eth stty variable serve tty variables post method 方法一: HttpContext.Current.Request.RequestType == "POST"; //当前请求为:POST HttpContext.Current.Request.RequestType == "GET"; //当前请求为:GET 方法二: if(Request.ServerVariables["REQUEST_METHOD"] =="POST") { } //当前请求为:POST if(Request.ServerVariables["REQUEST_METHOD"] =="GET") { } //当前请求为:GET C# 判断当前请求是GET还是POST 标签:request eth stty variable serve tty variables post method 原文地址:https://www.cnblogs.com/selenazhou/p/12797356.html
上一篇:netty 入门
下一篇:api---config.js