I
I
Ivan Noname2018-06-08 13:22:31
PHP
Ivan Noname, 2018-06-08 13:22:31

Why is there an error when working with the autoposting plugin on Wodpress?

I'm trying to send a test article to the autoposting plugin in Wordpress from ContentMonster
https://contentmonster.ru/setupexport

$token='тут мой токен';
$url='http://мойсайт.ru/wp-content/plugins/contentmonster/xr.php';
$post = [
                'key'         => $token,
        'method' => 'uploadPost',
                'title'       => '1111',
                'content'     => '111111111111111',
        'category_id' => '0',				
        'tags' => '11'
            ];	
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
$response = curl_exec($ch);
curl_close($ch);

Throws faultCode -32700 faultString parse error. not well formed
What to do?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question