I am using express2.js when using req.body I get undefined or empty {}:
exports.post = function (req: express3.Request, res: express3.Response) {
console.log(req.body);
});
I have the following configurations:
app.use(express.bodyParser());
app.use(app.router);
app.post('/getuser', routes.getuserprofile.post);
The request body is in XML and I checked the request header which was correct.