$curl_request = $_SERVER['REQUEST_METHOD']; //获取请求方式
if($curl_request == 'POST'){
echo post;
}else if($curl_request == 'GET'){
echo get;
}
$curl_request = $_SERVER['REQUEST_METHOD']; //获取请求方式
if($curl_request == 'POST'){
echo post;
}else if($curl_request == 'GET'){
echo get;
}