[wp-trac] Re: [WordPress Trac] #6483: Using mt.publishPost results
in posts having date of November 30th, 1999
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 4 19:31:30 GMT 2008
#6483: Using mt.publishPost results in posts having date of November 30th, 1999
-----------------------------------------------+----------------------------
Reporter: nstech | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.7
Component: XML-RPC | Version: 2.3.3
Severity: minor | Resolution:
Keywords: mt.publishPost publishPost xmlrpc |
-----------------------------------------------+----------------------------
Comment (by nstech ):
Please see below:
{{{
POST /wordpress/xmlrpc.php HTTP/1.0
Host: server
Content-Type: text/xml
User-Agent: The Incutio XML-RPC PHP Library
Content-length: 260
<?xml version="1.0"?>
<methodCall>
<methodName>mt.publishPost</methodName>
<params>
<param><value><int>27</int></value></param>
<param><value><string>admin</string></value></param>
<param><value><string>admin</string></value></param>
</params></methodCall>
<?xml version="1.0"?>
<methodResponse>
<params>
<param>
<value>
<int>27</int>
</value>
</param>
</params>
</methodResponse>
}}}
I am using the Incutio XML-RPC PHP Library from
http://scripts.incutio.com/xmlrpc/IXR_Library.inc.php.txt
{{{
<?php
include "http://scripts.incutio.com/xmlrpc/IXR_Library.inc.php.txt";
// Create the client object
$client = new IXR_Client('http://server/wordpress/xmlrpc.php');
$client->debug=true;
// Run a query for PHP
if (!$client->query('mt.publishPost', 27, 'admin', admin)) {
die('Something went wrong - '.$client->getErrorCode().' :
'.$client->getErrorMessage());
}
// Display the result
echo '<pre>';
print_r($client->getResponse());
echo '</pre>';
?>
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/6483#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list