WordPress.org

Ready to get started?Download WordPress

Forums

RAW post data makes XMLRPC to not work properly (1 post)

  1. Indianhelper
    Member
    Posted 7 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic