mirror of
https://github.com/Kong/insomnia.git
synced 2026-04-22 15:18:27 -04:00
15 lines
288 B
JavaScript
Executable File
15 lines
288 B
JavaScript
Executable File
var request = require('request');
|
|
|
|
var options = {
|
|
method: 'POST',
|
|
url: 'http://mockbin.com/har',
|
|
headers: { 'content-type': 'text/plain' },
|
|
body: 'Hello World',
|
|
};
|
|
|
|
request(options, function(error, response, body) {
|
|
if (error) throw new Error(error);
|
|
|
|
console.log(body);
|
|
});
|