Closed kimaldis closed 4 years ago
If request.method is 'POST', how can I pick up the POST parameters?
equest.method
thanks.
let body = ''; request.on('data', chunk => { body += chunk.toString(); // convert Buffer to string }); request.on('end', () => { console.log(body); });
If r
equest.method
is 'POST', how can I pick up the POST parameters?thanks.