I am having an issue with $HTTP_RAW_POST_DATA within modx. I have created a XML-RPC server using IXR library. The server works perfectly *outside* of modx, but within modx, the $http raw post data variable is unavailable to the IXR class. I have provided for the php 5.2.2 bug by using this code:
if (!isset($HTTP_RAW_POST_DATA)){
$HTTP_RAW_POST_DATA = file_get_contents('php://input');
}.
As I said, the server works perfectly outside of modx. I have tried to GLOBAL the variable everywhere - which does not work.
The snippet (for pingbacks), I have created is called within a blank template, text/xml. Perhaps the content type is wrong? The stand alone (outside of modx) was just a php file.
Does anyone have any suggestions, ideas or notions about this strange problem. Maybe it’s something I don’t know about modx??
Thanks for any help
Sheri