RAW post data makes XMLRPC to not work properly
-
We are using XMLRPC to publish posts on our blogs. However, due to usage of RAW post data it doesn’t work on our server. We had change setting of always_populate_raw_post_data to on though it doesn’t work.
We had made following changes in xmlrpc and it works now:
if ( isset($HTTP_RAW_POST_DATA) ) $HTTP_RAW_POST_DATA = trim($HTTP_RAW_POST_DATA); else{ $HTTP_RAW_POST_DATA=file_get_contents('php://input'); }
If you have any better solution let us know. In the meantime it may save someone’s time.
- The topic ‘RAW post data makes XMLRPC to not work properly’ is closed to new replies.