How to make post request in node.js?
Answer / Jitendra Kumar Sharma
You can use the 'http' or 'request' modules to make a POST request in Node.js. For example, using 'request': `const request = require('request'); request.post({url: '...', headers: { ... }, json: { ... }}, (error, response, body) => { ... });`
| Is This Answer Correct ? | 0 Yes | 0 No |
What are uses of path module in Node.js?
What is event loop?
How to update the dependency using npm?
Is it possible to evaluate simple expressions using node repl?
What is a child_process module in node.js?
Which server is used in node js?
What are lts releases of node.js?
What are the security mechanisms available in Node.js?
In which language node js is written?
What is MongoDB?
How to use async await with promises in node js?
How to build a web app with node js?