Tuesday, 11 April 2017

How can I get a post request in node.js?

app.post("/", function(request, response) {
response.send(request.body.something);
} )

I make a POST-request to my server and I got:

TypeError: Cannot read property 'something' of undefined

Why?



via D.Joe

No comments:

Post a Comment