使用postman进行测试 nginx 使用file_get_contents(“php://input”) 使用postman传输json数据向云服务器时,返回空字符串,我将接收的变量进行打印,postman的response界面会显示 我排除了php.ini配置和服务器权限问题,最终在postman的url前面写https,防止服务器301重定向对数据的影响,强制使用https。。。 具体不是很懂,反正这么解决了,可以尝试一下。