msrajeshdev's posterous http://msrajeshdev.posterous.com Most recent posts at msrajeshdev's posterous posterous.com Wed, 23 Jun 2010 02:49:48 -0700 Body content post to the posterous site issues http://msrajeshdev.posterous.com/body-content-post-to-the-posterous-site-issue http://msrajeshdev.posterous.com/body-content-post-to-the-posterous-site-issue Hai,

i am using posterous API in my project.

i have run the posterous api code through curl , content post to the posterous site. title, media files are posted to the posterous site but body content could not posted. if body content using (div tag or table, font tag or span tag not working) otherwise body content working.

1. title using textbox
2. bodycontent using FCKEDITOR

please give the solution

Below Posterous API code using in my project

$body_cont = '





Sprint To Host 10th Annual Open Developer Conference

Posted: 16-Jun-2010 [Source: Overland Park, Kan.]
[Sprint promoting upcoming Open Developer Conference in efforts to encourage development of mobile applications that can take advantage of the company's 4G network and devices.]
Sprint announced that its 10th annual Open Developer Conference will be held Oct. 26 - 28 in Santa Clara, Calif. Developers can register for the conference at http://developer.sprint.com/devcon2010.>
The registration cost is $250 for developers who register by Aug. 15. The cost increases to $300 from Aug. 15 through Oct. 1 and registration will be $350 after Oct. 1 Developers can register and find additional information about the Developer Conference at
http://developer.sprint.com/devcon2010.>
More...';

$m = new posterous;
$m->username = $username;
$m->password = $password;
$m->title = "sample content"; // title
$m->body = $body_cont;
$m->post();


class posterous{
var $username;
var $password;
var $title;
var $body;

function post(){

echo $a = shell_exec('curl http://posterous.com/api/newpost -u '.$this->username.':'.$this->password.' -d title="'.stripslashes($this->title).'" -d body="'.$this->body.'"');

if (!$a){
echo "Failure";
} else {
echo "success";
}
}
}
?>

Permalink | Leave a comment  »

]]>
http://posterous.com/images/profile/missing-user-75.png http://posterous.com/users/5AvMh69ec4I9 msrajeshdev msrajeshdev