$postcontent = array(
'post_type' => 'post',
'post_status' => $post_status,
'post_title' => $post_title,
'post_name' => $post_title,
'post_content' => $post_content,
'post_thumbnail' => $image_returnInfo['id']
// 'terms_names'=> array('category' => $category_battery),
);
$res = $client -> query('wp.newPost',1, $usr, $pwd, $postcontent);
$postID = $client->getResponse();
print_r($client);
私はこの問題を解決することができますどのように私はエラー32300 を得たXMLRPC wordpressのAPIからのポストを挿入しようとしますが?XMLRPC要求オブジェクトエラー32300転送エラー
次の結果が得られました。
IXR_Client Object
(
[server] => battery.kis-com.ch
[port] => 80
[path] => /battery-station/xmlrpc.php
[useragent] => The Incutio XML-RPC PHP Library
[response] =>
[message] =>
[debug] =>
[timeout] => 15
[headers] => Array
(
[Host] => battery.kis-com.ch
[Content-Type] => text/xml
[User-Agent] => The Incutio XML-RPC PHP Library
[Content-Length] => 781
)
[error] => IXR_Error Object
(
[code] => -32300
[message] => transport error - HTTP status code was not 200
)
)
最後に、私は正確な問題を発見しました。実際にはhttps:プロトコルの問題で問題でした。私が使用したコードはhttpsで動作しません。私はhttpsに次のコードを使用しました。 –