freeCodeCamp/guide/english/certifications/apis-and-microservices/basic-node-and-express/get-data-from-post-requests/index.md

772 B

title
Get Data from POST Requests

Get Data from POST Requests

Just like using req.query we can do req.body to get our data. This challenge is very similar to "Get Query Parameter Input from the Client."

In order to get data from a post request a general format is:

app.post(PATH, function(req, res) {
  // Handle the data in the request
});

Help our community expand these hints and guides.