r/PHPhelp • u/Striking-Bat5897 • Jan 29 '25
PHP 8.3 - fpm and post data
I have a symfony application and getting a POST request from a remote service. When receiving with an Apache webserver with php 8.3, i can get the POST data with $data = file_get_contents("php://input").
It's not working on a Nginx webserver. then $data is empty. The difference is apache PHP is a module, on nginx it's fpm.
Sorry if i should ask this in r/nginx
4
Upvotes
View all comments
Show parent comment
1
u/Striking-Bat5897 Jan 29 '25
In the nginx access log it's
1.2.3.4 - - [29/Jan/2025:15:16:55 +0100] "POST /cxml/order HTTP/1.1" 200 196 "-" "-"