• Skip to content
  • Skip to primary sidebar
  • Skip to footer

Foliovision

Main navigation

  • Weblog
    • FV Player
    • WordPress
    • Video of the Week
    • Case Studies
    • Business
  • About
    • Testimonials
    • Meet the Team
    • We Support
    • Careers
    • Contact
    • Pricing
  • Products
  • Support
    • FV Player Docs
    • Pro Support
  • Login
  • Basket is empty
Affordable VAST/VPAID for Wordpress has arrived. Serve ads with your videos starting today!

XML-RPC server accepts POST requests only – WordPress Error

19 May 2007 / Alec Kinnear / 19 Comments

Lost an hour today to trying to debug Ecto posting to this weblog (if you’re not using Ecto, you should consider it).

I was constantly getting this error:

XML-RPC server accepts POST requests only

Finally I wrote up a nice little support ticket for Dreamhost with all the details. Surprisingly I got the fix back in relatively short order.

I was wondering what the problem with WordPress was. It turned out to be a PHP 5.2.2 bug. The file xmlrpc.php is broken under PHP 5.2.2. As WordPress is the weblog system in widest use in the entire world, it would be nice if the PHP team would get with the real world and debug their releases before rolling them out.

The solution, for now, is to edit the xmlrpc.php file in your WordPress installation and add the following code:

if (phpversion()=="5.2.2") $GLOBALS['HTTP_RAW_POST_DATA'] =
file_get_contents("php://input");

The beginning of my xmlrpc.php file looks like this:

define('XMLRPC_REQUEST', true);

// Some browser-embedded clients send cookies. We don't want them.
$_COOKIE = array();

if (phpversion()=="5.2.2") $GLOBALS['HTTP_RAW_POST_DATA'] =
file_get_contents("php://input");

And XMLRPC is now working again.

I made this fix and now Ecto works a charm again. Alas, this isn’t the first time a PHP error has brough XMLRPC/Ecto down on WordPress weblogs.

A number of things went wrong here:

  1. the PHP developers dropped the ball on their debugging
  2. Dreamhost dropped the ball rolling out 5.2.2 with such a bug in it
  3. Dreamhost dropped the ball a final time by not proactively notifying all its customers who are running WordPress weblogs about this bug

I’ve made this post as I was unable to find any useful information about the XML-RPC serve accepts POST requests only bug when searching Google for that phrase plus WordPress and plus Ecto. I hope other unfortunates find this post more quickly than I found the solution.

Alec Kinnear

Alec Kinnear

Alec has been helping businesses succeed online since 2000. Alec is an SEM expert with a background in advertising, as a former Head of Television for Grey Moscow and Senior Television Producer for Bates, Saatchi and Saatchi Russia.

Categories: WordPress

Related Posts

  1. Editing WordPress Pages with Ecto

    Editing WordPress Pages with Ecto

  2. WordPress Ping Lists

    WordPress Ping Lists

  3. Getting JustBlogIt to work with WordPress 2.1: Bookmarklet.php Fix

    Getting JustBlogIt to work with WordPress 2.1: Bookmarklet.php Fix

Reader Interactions

Comments

  1. Jason. 20 May 2007 at 12:00 am

    wordpress.org/support/topic/117421

    Google “XML-RPC server accepts POST requests only” wordpress

    Sometimes being too specific is the wrong direction.

    Reply
  2. Emily 21 May 2007 at 10:01 am

    Thank you for posting this – it worked for me too!

    Reply
  3. Paranoid Android 30 May 2007 at 4:17 pm

    Thanks, this works for me :)

    Reply
  4. Peter Cooper 30 May 2007 at 5:50 pm

    Also me, thanks!

    Reply
  5. Ristac 31 May 2007 at 4:35 am

    Wow you have saved me such a head ache..

    Reply
  6. Fabian 1 June 2007 at 7:52 pm

    Thanks! Tengo la solucian ahora!

    Reply
  7. Jen 7 June 2007 at 4:06 am

    Thanks for your post. It fixed the problem and I’m able to use ecto again.

    Reply
  8. mark 26 August 2009 at 1:27 pm

    Still can’t get it to work, can’t get rid of this ‘XML-RPC server accepts POST requests only.’

    What do I do?

    Reply
  9. Avatar photoalec 27 August 2009 at 9:00 am

    Hi Mark,

    This may have changed in the latest Wordpress (2.7+) as the external posting functionality has been enhanced. If you figure it out, please let me know so I can update our information to cover the latest versions.

    Reply
  10. trent 8 November 2009 at 3:45 pm

    Same error, but the above doesn’t fix. Have WordPress version 2.5.1 with PHP 5.2.3.

    I’m trying to use Windows Live Writer to post to my wordpress site, but it says:

    The server reported an error with the following URL: …/xmlrpc.php 403 Forbidden

    When I go to my xmlrpc.php page it says: XML-RPC server accepts POST requests only.

    Ideas?

    Reply
  11. Martin 10 November 2009 at 5:27 am

    Hello trent,

    upgrade from 2.5.1 to 2.8 shouldn’t be that hard, so I would recommend you to do that. Not only the XML RPC will work, but your blog will be more secure.

    Thanks, M.

    Reply
  12. uttam 7 July 2010 at 4:07 am

    I am using PHP version 4.2.3 Is there any problem for working of XML-RPC ?

    Reply
  13. Why 28 July 2010 at 6:41 pm

    Sorry, but the above doesn’t fix. Have WordPress version 3.0 with PHP 5.2.5.

    I’m trying to use Windows Live Writer to post to my wordpress site, but it says:

    The server reported an error with the following URL: …/xmlrpc.php Forbidden

    When I go to my xmlrpc.php page it says: XML-RPC server accepts POST requests only.

    Why?

    Reply
  14. Avatar photoalec 1 August 2010 at 3:17 pm

    Hi Why,

    It’s probably a permissions issue. Let us know how/if you solve it.

    Thanks.

    Reply
  15. Why 1 August 2010 at 6:38 pm

    Yes?I think it’s the permissions issue, because “always_populate_raw_post_data” is off, thank you.

    Reply
  16. Martin 10 August 2010 at 2:51 am

    Hello Why,

    this fix is 2 years old, it’s for older Wordpress versions. It doesn’t seem to occur on Wordpress 3.0.

    If you get “XML-RPC server accepts POST requests only.” when you access xmlrpc.php via browser, that’s ok.

    Is “Forbidden” really the whole error message you get? You can try to disabled mod_security by placing the following into .htaccess:

    SecFilterRemove 114

    Looks like some people with iPhones have this issue: iphone.forums.wordpress.org/topic/403-forbidden

    Hello uttam,

    no, that should not make any difference, if you are on a new WP (which is PHP > 4.3 only, so I would try to update both PHP and WP first).

    Thanks, Martin

    Reply
  17. Fadil 17 January 2014 at 6:54 am

    This did not work for me. I want mine to ACCEPT ALL REQUESTS….how do I do that?

    Reply
  18. Henry Ramirez 1 October 2015 at 11:26 pm

    Can you lose traffic if you have this showing: XML-RPC server accepts POST requests only.??

    Reply
  19. Avatar photoAlec 11 October 2015 at 4:38 am

    Hi Henry,

    XML-RPC server should affect SEO, only posting to your site from odd devices.

    There’s a new REST API coming to WordPress which should replace XML-RPC in the medium term.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You can click here to Subscribe without commenting

Primary Sidebar

Categories

  • Business
  • Camera Reviews
  • Case Studies
  • Design
  • FV Player
  • Internet Marketing
  • IT
  • Life
  • SEO
  • Slovak
  • Video of the Week
  • WordPress

Footer

Our Plugins

  • FV WordPress Flowplayer
  • FV Thoughtful Comments
  • FV Simpler SEO
  • FV Antispam
  • FV Gravatar Cache
  • FV Testimonials

Free Tools

  • Pandoc Online
  • Article spinner
  • WordPress Password Finder
  • Delete LinkedIn Account
  • Responsive Design Calculator
Foliovision logo
All materials © 2025 Foliovision s.r.o. | Panská 12 - 81101 Bratislava - Slovakia | info@foliovision.com
  • This Site Uses Cookies
  • Privacy Policy
  • Terms of Service
  • Site Map
  • Contact
  • Tel. ‭+421 2/5292 0086‬

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .

Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Necessary Cookies

Strictly Necessary Cookie allow you to log in and download your software or post to forums.

We use the WordPress login cookie and the session cookie.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

Support Cookies

Foliovision.com uses self-hosted Rocket.chat and self-hosted Freescout support desk to provide support for FV Player users. These cookies allow our visitors to chat with us and/or submit support tickets.

We are delighted to recommend self-hosted Rocket.chat and especially Freescout to other privacy-conscious independent publishers who would prefer to self-host support.

Please enable Strictly Necessary Cookies first so that we can save your preferences!

3rd Party Cookies

This website uses Google Analytics and Statcounter to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping this cookie enabled helps us to improve our website.

We reluctantly use Google Analytics as it helps us to test FV Player against popular Google Analytics features. Feel free to turn off these cookies if they make you feel uncomfortable.

Statcounter is an independent Irish stats service which we have been using since the beginning of recorded time, sixteen years ago.

Please enable Strictly Necessary Cookies first so that we can save your preferences!