Ok so I currently have code working and I need to create a wordpress plugin with it.
Currently my code includes XMLRPC 2.2.2 and looks like the below…
include("xmlrpc-2.2.2/lib/xmlrpc.inc");
$sock = new xmlrpc_client($server_url.'common');
$msg = new xmlrpcmsg('login');
$msg->addParam(new xmlrpcval($dbname, "string"));
$msg->addParam(new xmlrpcval($user, "string"));
$msg->addParam(new xmlrpcval($password, "string"));
$resp = $sock->send($msg);
I want to utilize the HTTP API so that I don’t rely on the user having curl
for example…
My question is can I utilise this? Do i have to just edit the current xmlrpc library to use wordpress HTTP API or has this already been done?
Look forward to your reponses!!
WordPress includes a XML-RPC class (IXR), it’s a matter of
And for authenticated requests: