How to make Post request in Node.js?
var request = require('request');
request.post( 'http://www.example.com/action', { form: { key: 'value' } }, function (error, response, body) { if (!error && response.statusCode == 200) { console.log(body) } } );
Comments
Post a Comment