Client to Server

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
HarishVaran's picture

In practice session: we planned to create comment from client side, so we write a code using drupal_services_api.md.

Here the code is:

//planned to create comment in server from client.
$request_url = 'http://local.server.com/js-comment/cid';
$request_headers = array('Content-Type' => 'application/json');
$request_method = 'POST';
$comment = '&comment[cid]=2&comment[pid]=0&comment[nid]=13&comment[uid]=1&comment[subject]=throughtwebservice&comment[comment]=firstcomment&comment[hostname]=127001&comment[timestamp]=1346658093&comment[status]=0&comment[format]=1&comment[thread]=01&comment[name]=admin&comment[mail]=testatgmailcom&comment[homepage]=one';
$request_retry = 3;
$response = drupal_http_request($request_url, $request_headers, $request_method, &$comment, $request_retry);
dsm ($response);

Result: I got status message as: " Not Acceptable: Missing required argument comment ".

may i know, what is the problem is? please forgive me, if i did any blender mistake.

Advance Thanks...