标签: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
标签:request eth stty variable serve tty variables post method
原文地址:https://www.cnblogs.com/selenazhou/p/12797356.html