Due to some configuration changes on my webhost, Wordpress (2.1.x) stopped working correctly on one domain.

Basically, even though Windows Live Writer was submitting to the XML RPC Interface via POST, it was still returning “XML-RPC server accepts POST requests only.”. Not exactly helpful! 

Windows Live Writer was giving a message like  ”Invalid Server Response – The response to the blogger.getUsersBlogs method received from the weblog server was invalid.”, and I could only find this post as a possible solution.

Anyway, the kind folks at Dreamhost fixed it up by adding the following line to the top of the xmlrpc.php file: 

$HTTP_RAW_POST_DATA = file_get_contents(“php://input”);

What it does, I’m not quite certain (fixing a global variable?) – but it works nicely now.

Pingbacks to “Wordpress "XML-RPC server accepts POST requests only."”

  1. a crank’s progress : XML-RPC server accepts POST requests only.

2 comments to “Wordpress "XML-RPC server accepts POST requests only."”

  1. paul says:

    Your webhost was pretty quick on this: it’s an issue with the version of php installed, apparently.

    Thanks for the tip, though. That was the fix.