묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
최근에 블로그API가 업데이트되고..
2016.12.14 02:55
기존에 블로그
function metaWeblog_newPost( $blogid, $title, $content, $categories)
{
global $g_id;
global $g_passwd;
global $g_blog_url;
$client = new xmlrpc_client( "{$g_blog_url}");
$f = new xmlrpcmsg("metaWeblog.newPost", // metaWeblog.newPost method
array(
new xmlrpcval("{$blogid}", "string"), // blogid.
new xmlrpcval($g_id, "string"), // user ID.
new xmlrpcval($g_passwd, "string"), // password
new xmlrpcval( // body
array(
'title' => new xmlrpcval($title, "string"),
'description' => new xmlrpcval($content, "string"),
'categories' => new xmlrpcval($categories, "string"),
), "struct"),
new xmlrpcval(true, "boolean") // publish
)
);
$f->request_charset_encoding = 'UTF-8';
}
소스로는 글이 등록되지 않는 현상이 있는데요
[val] => 0 [valtyp] => [errno] => 104 [errstr] => Received from server invalid compressed HTTP
이런 리턴값이 계속해서 들어오구요..
이 XML검증으로는 이제 블로그API사용이 힘들어진건가요?