我收到错误消息(-32300):传输错误-提取类别时,HTTP状态代码不是200

时间:2019-04-11 04:26:31

标签: php xml-rpc xmlrpcclient

Error (-32300): transport error - HTTP status code was not 200.

我收到上述错误, 这是我用来发帖的脚本

$wpusername = "admin";
$wppassword = "admin123";
require_once("IXR_Library.php.inc"); 
$client = new IXR_Client($wpurl.'/xmlrpc.php');
$client->query('wp.getTerms',1,$wpusername, 
$wppassword,'category');
$data=$client->getResponse();

print_r($data);

输出为:

  

IXR_Client对象([服务器] =>动手测试。信息[端口] => 80 [路径]   => /trendpresstheme//xmlrpc.php [useragent] => Incutio XML-RPC PHP库[响应] => [消息] => IXR_Message对象([消息] =>   term_id3 namedog slugdog term_group0 term_taxonomy_id3   分类标准类别描述parent0 count18 filterraw custom_fields   term_id4 namemusic slugmusic term_group0 term_taxonomy_id4   分类标准类别描述parent0 count0 filterraw custom_fields   term_id5 nameNews slugnews term_group0 term_taxonomy_id5   分类标准类别描述parent0 count0 filterraw custom_fields   term_id1名称未分类slugun已分类term_group0   term_taxonomy_id1分类类别描述parent0 count0   filterraw custom_fields term_id6名称Web自动化slugweb_automation   term_group0 term_taxonomy_id6分类标准类别描述parent0   count0 filterraw custom_fields [messageType] => [faultCode] =>   [faultString] => [methodName] => [params] => [_arraystructs] =>数组   ()[_arraystructstypes] =>数组()[_currentStructName] =>数组(   )[_param] => [_value] => [_currentTag] => [_currentTagContents] =>   h3.h3 {text-align:center; margin:1em; text-transform:capitalize; font-size:1.7em;}   .product-grid2 .product-image2 {溢出:隐藏;位置:相对}   .product-grid2 .product-image2 img {width:100%; height:auto}   /.product-grid2:hover .social   li:nth-​​child(2){transition-delay:.15s} / .product-grid2   .buynow {color:#fff; font-size:15px; text-align:center; width:100%; padding:10px   0;显示:阻止;位置:绝对;左:0;底部:-100%;过渡:全部   .3s;} .product-grid2:hover .buynow {bottom:0} .product-grid2:hover   .imgpro {-webkit-filter:blur(1px); / * Chrome,Safari,Opera * /   过滤器:blur(1px); } .dispro .product-grid2 {margin:20px!important;   宽度:180像素!重要;显示:inline-block!important;保证金:自动;   } #proli {边距:20px;列表样式:无;显示:inline-block; }   .wp-menu-image img {margin-top:-7px; } .pricetag {颜色:红色; }   .product-image2 .btnbuynow {margin-bottom:-20px!important; }   [_parser] =>资源ID#4 [currentTag] => style)[debug] => [error]   => IXR_Error对象([代码] => -32700 [消息] =>解析错误。格式不正确))

0 个答案:

没有答案