To receive curl post request you can directly get it from php://input as all input variables
like below
file_get_contents('php://input');
and you can get json as follow
json_decode(file_get_contents('php://input'));
Learn Linux, Nginx, Apache, MongoDB, MySQL, PHP, Javascript, CSS
1 Response
[…] To receive post contents on webserver using PHP follow the link below https://lampjs.wordpress.com/2015/06/19/read-json-request-in-php/ […]