How to access the request body when POSTing using Node.js and Express?
Express 4.0 and above: $ npm install –save body-parser And then in your node app: Express 3.0 and below: Try passing this in your cURL call: –header “Content-Type: application/json” and making sure your data is in JSON format: {“user”:”someone”} Also, you can use console.dir in your node.js code to see the data inside the object … Read more