Skip to content Skip to sidebar Skip to footer

How Log Express.js Post Parameters

I'm wondering how to get an array that contains all parameters sent in a HTTP request. If I read the doc: http://expressjs.com/4x/api.html#req.params I can see that using req.param

Solution 1:

You're looking for req.body, which contains the parsed POST body. (assuming you have middleware that parses it)


Post a Comment for "How Log Express.js Post Parameters"