title: Cannot read post parameters with Node.js and Express framework
body: <p>I have a node.js server with express Framework.</p>
  
  <pre><code>var express = require('express');
  var http = require('http');
  var api_helper = require('./helpers/api_helper');
  var app = express();
  
  app.use(app.router);
  app.use(express.bodyParser());
  app.set('port', process.env.PORT || 8081);
  
  app.post('/api/nodev1/users/login', function(req, res){
    var email = req.param('email', null);
    var password = req.param('password', null);
    console.log(email);console.log(password);
  });
  
  http.createServer(app).listen(app.get('port'), function(){
    console.log('Express server listening on port ' + app.get('port'));
  });
  </code></pre>
  
  <p>When I try to post a request to /api/nodev1/users/login I cannot read the parameters. I am trying with curl as follows: </p>
  
  <pre><code>curl -d "email=user@example2.com" -d "password=mypassword" http://localhost:8081/api/nodev1/users/login
  </code></pre>
  
  <p>The email and password are undefined.</p>