RandallKent/DrupalREST.PHP — pull request #1 by epinapala (2012-10-26 06:18:07+00:00)
Title: My Initial fixes - more coming soon

//fixed no trailing slash problem check
//fixes for 406 errors
- changed createNode post data to json

- usage example:
// Node data
```$node = (object) NULL;
$node->title = 'A Blog post created with services 3.x and REST server by
rajesh';
$node->type = 'blog_entry';
$node->body['und'][0]['value'] = '

Body

';
$node->path = '';
$node_data = (array) $node;
$node_data = json_encode($node_data);
var_dump($dp->createNode($node_data));
```
-changed curl options to prevent 401/406 errors.