作者热门文章
- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我的服务器上有一个名为 api.php 的脚本。我使用 POST 请求从其他服务器调用它。有什么方法可以获取 POST 请求的 api.php 原始内容吗?
最佳答案
使用下面的代码
$data = file_get_contents('php://input');
关于php - 如何在 PHP 中获取原始请求?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3289716/
我是一名优秀的程序员,十分优秀!