when I do a simple echo of $HTTP_RAW_POST_DATA i get the error:
Undefined variable: HTTP_RAW_POST_DATA
I read that in php.ini i need to un-tick
always_populate_raw_post_data = On
but i still get the error and I did restart Apache as well. Im using php 5.3.6
If you need to access the raw POST body you should really favor the use of the
php://inputstream over$HTTP_RAW_POST_DATAas per the relevant manual entry:So, to access the POST body using
php://input: