[wp-hackers] Posting HTML formatted content with XML-RPC

Chris Lott chris.lott at gmail.com
Wed Jan 11 20:46:43 GMT 2006


On 1/11/06, Owen Winkler <ringmaster at midnightcircus.com> wrote:
> Try using the IXR Client and see if that works ok for you.
>
> Still...  Having looked through the IXR library, can anyone confirm that
> encoded entities passed in XMLRPC values are properly decoded?  The
> XML-RPC spec seems to imply that entities in XML should be decoded by
> the RPC server, which kind of makes sense.  If it's not doing that, it
> should.

It doesn't seem to be, but then it MUST be because with other clients
the HTML comes through fine. Here is code using the IXR library and I
am getting the same result... HTML entities in the post:

include('IXR_Library.inc.php');
$client = new IXR_Client('http://127.0.0.1:2006/devwp/xmlrpc.php');


if (!$client->query('blogger.newPost', '', '', 'admin', 'chrislottt',
'<title>LinkLog</title><category>2</category><p><strong>bold
statement</strong></p>', 1)) {
   die('An error occurred -
'.$client->getErrorCode().":".$client->getErrorMessage());
}

echo $client->getResponse();



--
Chris Lott


More information about the wp-hackers mailing list