gpt4 book ai didi

php - 如何在 PHP 中获取原始请求?

转载 作者:塔克拉玛干 更新时间:2023-11-03 06:01:59 24 4
gpt4 key购买 nike

我的服务器上有一个名为 api.php 的脚本。我使用 POST 请求从其他服务器调用它。有什么方法可以获取 POST 请求的 api.php 原始内容吗?

最佳答案

使用下面的代码

$data = file_get_contents('php://input');

关于php - 如何在 PHP 中获取原始请求?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3289716/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com