Simplified HTTP/HTTPS upload requests
Deprecated: use got directly.
Wrapper around got to send POST data from arguments.
Use request if you need more.
$ npm install --save sent
var sent = require('sent');
// Callback mode.
sent('http://devnull-as-a-service.com/dev/null', 'Hello', function (err, data, res) {
console.log(res.statusCode);
});
// Stream mode.
sent('http://devnull-as-a-service.com/dev/null', 'Hello').pipe(fs.createWriteStream('index.html'));
See got for options explanation.
MIT © Vsevolod Strukchinsky