• hi there

    I’ve been trying to use the XML-RPC API to submit a draft post via a form on a WordPress page. All seems to work fine on my local development copy but when live I get the following error:

    Error message: Authorization Required

    I’m making a call to wp.getCategories and am passing the blog ID, the username and password. The user has a Contributor role which seems to work fine locally.

    Yes, XML-RPC is enabled in the writing settings. I’m not sure what the “Authorization Required” error actually means. If it was a wrong user/pass there appears to be a specific error message for that.

    Any help appreciated 🙂

    best wishes,
    Simon

Viewing 2 replies - 1 through 2 (of 2 total)
  • What’s the actual XML-RPC error that gets sent back?

    Thread Starter simonrjones

    (@simonrjones)

    I’ve inspected the raw HTTP response and it appears an Apache Basic Authentication header was blocking XML-RPC, it was returning an HTTP return code of 401: Authorization Required

    Sorry, false alarm!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Authorization Required issue with XML-RPC’ is closed to new replies.