0

Laravel 8 からLaravel 8 + Octane / Swooleに移行しています。すべて正常に動作しますが、 php://input常に空です。また、$_POST と $_SERVER の値もチェックします。

file_get_contents('php://input')AWS SNS Message Validatorによって使用されます。

読む代替案はありますphp://inputか?

PHP コード

echo "php://input: ".file_get_contents('php://input');

PHP-FPMを使用

$ curl -i -X POST --data "dataaaa" https://example.com/aws/sns/webhook
php://input: dataaaa

オクタン+スウールで

$ curl -i -X POST --data "dataaaa" https://example.com/aws/sns/webhook
php://input:
4

1 に答える 1