I have a javascript code like this
var testCanvas = document.getElementById(\'canvas-1\');
var canvasData = testCanvas.toDataURL(\"image/png\");
var ajax = n
According to a comment in the manual, to get the HTTP_RAW_POST_DATA, you need to do something like this:
The manual says this about the wrappers such as php://input
:
In the case of POST requests, it is preferable to use php://input instead of $HTTP_RAW_POST_DATA as it does not depend on special php.ini directives.