public
Created

Creating an HTTP request using Unirest for node.js

  • Download Gist
unirestnode.js
JavaScript
1 2 3 4 5 6
unirest.post('http://httpbin.org/post')
.headers({ 'Accept': 'application/json' })
.send({ "parameter": 23, "foo": "bar" })
.end(function (response) {
console.log(response.body);
});

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.