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: