You simply change the get () call in the example on this page using post ().
exports.main = function() { var Request = require("request").Request; Request({ url: "http://google.com/", content: {q: "test"}, onComplete: function (response) { console.log(response.text); } }).post(); };
source share