Can't get POST body from request using Express.js
Move the bodyParser
middleware above the router
middleware!
var app = express();
app.set('port', process.env.PORT || 3999);
app.use(express.favicon());
app.use(express.logger('dev'));
app.use(express.bodyParser());
app.use(app.router);
Content-Type = "application/json"
should be one of the Request Headers
BodyParser is no longer bundled with Express
npm install body-parser
var bodyParser = require("body-parser");
app.use(bodyParser.urlencoded({ extended: false }));