title: Restify 2.6 post data
body: <p>I just start to try Restify (and NodeJS in general) and I have some trouble to get the users POST data.</p>
  
  <p>I have a basic Node app. On the documentation and some blog posts I read it's as simple as using the queryParser but it's not working. I think the problem is on my CURL command.</p>
  
  <p>Node App: </p>
  
  <pre><code>var restify = require('restify');
  
  function userCreation(request, result, next) {
    console.log(request.body);
    console.log(request.query);
    console.log(request.params);
    result.send({ name: request.params.name });
    return next();
  }
  
  var server = restify.createServer({ version: '1.0.0' });
  server.use(restify.gzipResponse());
  server.use(restify.queryParser());
  
  server.post({ path: '/users', versions: ['1.0.0'] }, userCreation);
  
  server.listen(8080, function() {
    console.log('%s listening at %s', server.name, server.url);
  });
  </code></pre>
  
  <p>CURL command:</p>
  
  <pre><code>curl -is -X POST -H 'accept-version: 1.0.0' -d '{ "name": "John" }' http://127.0.0.1:8080/users
  
  curl -is -X POST -H 'accept-version: 1.0.0' -d 'name=John' http://127.0.0.1:8080/users
  </code></pre>
  
  <p>The response is:</p>
  
  <pre><code>HTTP/1.1 200 OK
  Content-Type: application/json
  Content-Length: 2
  Date: Fri, 01 Nov 2013 09:40:08 GMT
  Connection: keep-alive
  
  {}
  </code></pre>
  
  <p>And the Node logs are:</p>
  
  <pre><code>restify listening at http://0.0.0.0:8080
  undefined
  {}
  {}
  </code></pre>
  
  <p>Hope somebody can help me :)</p>
  
  <p>Kevin</p>