标签: php postman
echo $req=$_SERVER["REQUEST_METHOD"]; // outputs "GET"
我尝试使用邮递员创建 API。当在 localhost 中运行它时,它运行得很好,但是当在服务器中运行此代码时,它会向我显示 GET。有人可以帮我吗?
答案 0 :(得分:0)
检查您的服务器 http 或 https。如果服务器是 https 然后你发送 http post 请求,然后它显示了这种问题。