Not a dupe, in this very case I am trying to run my php thru a command line and it does not work as expected (php uses php://input and I do not want to modify them)
I am trying the following:
echo 'hello' | php -r 'print("input content:".file_get_contents("php://input"));'
I am expecting something like
content:hello
to be printed out , but get only
content: