xml-rpc telling me I don't have permission to post
-
Ever since wp changed to https my xmlrpc posting is broken.
So I am trying to use xmlrpc within wordpress and kept getting malformed xmlrpc message. After a few tries, I guess the automatic xmlrpc.php protection kicked in and now I’m getting a message ‘Sorry, you are not allowed to post on this site.’
The site I’m posting FROM is a self-hosted wp site
The site I’m posting TO is https://factorstreetpaper.wordpress.com/Question #1: How do I regain my ability to post to the wordpress.com xmlrpc.php?
Question #2: What the heck is wrong with the code below that it thinks my request is incorrect?
$client = new WP_HTTP_IXR_CLIENT("https://factorstreetpaper.wordpress.com/ ); $bSuccess = $client->query( 'wp.newPost', array( 0, $sUsername, $sPassword, array( 'post_status' => 'draft', 'post_type' =>'post', 'post_title' => "Karen test", 'post_content' => "test post" ) ) ); if(!$bSuccess){ print "Error msg from XMLRPC =". $client->error->message."<br />"; }
- The topic ‘xml-rpc telling me I don't have permission to post’ is closed to new replies.