XML-RPC API error 403 on method getOptions with correct password
-
I’m having an weird error on method getOptions from XML-RPC API.
My password has a single quote (‘), ex: abc’cba
Method getPosts works well, returning my blog posts.
curl --header "Accept: text/xml;" --data "<?xml version="1.0"?><methodCall><methodName>wp.getPosts</methodName><params><param><value><string></string></value></param><param><value><string>MYUSERNAME</string></value></param><param><value><string>abc'cba</string></value></param></params></methodCall>" http://www.MYBLOGURL.com/xmlrpc.phpMethod getOptions doesnt work at all, returning “Incorrect username or password.”
curl --header "Accept: text/xml;" --data "<?xml version="1.0"?><methodCall><methodName>wp.getOptions</methodName><params><param><value><string></string></value></param><param><value><string>MYUSERNAME</string></value></param><param><value><string>abc'cba</string></value></param></params></methodCall>" http://www.MYBLOGURL.com/xmlrpc.phpIf I remove the single quote from password, both methods works well.
Any ideas on what’s going on?
The topic ‘XML-RPC API error 403 on method getOptions with correct password’ is closed to new replies.