$url = "http://192.168.201.214/wordpress/?json=posts/create_post&dev=1&nonce=".$_POST["nonace"].
"&title=".$_POST["title"]."&content=".$_POST["content"]."&slug=".$_POST["title"]."&status=draft";
//echo $url; exit;
$ch=curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIESESSION, false);
$r=curl_exec($ch);
curl_close($ch);
echo "<pre>";
$ar=json_decode($r);
//print_r($ar);
echo "status ------------------------------ ".$ar->status."<br>";
echo "Link ------------------------------ ".$ar->post->url."<br>";
this my code to create a post everthing is fine but when i create a post with spaces in my title or content it only considering first word and leaving reamining
Examples:content without spaces
in my return json object iam getting it like
"status": "draft",
"title": "sivaji",
"title_plain": "sivaji",
"content": "<p>ThisIsVeryGood<\/p>\n",
Examples:content with spaces
in my return json object iam getting it like
"status": "draft",
"title": "sivaji",
"title_plain": "sivaji",
"content": "<p>This<\/p>\n"
Iam usig ajax call and text boxes to post the content