mirror of
https://github.com/Kong/insomnia.git
synced 2026-04-22 23:28:33 -04:00
14 lines
275 B
JavaScript
Executable File
14 lines
275 B
JavaScript
Executable File
var request = require('request');
|
|
|
|
var options = {
|
|
method: 'GET',
|
|
url: 'http://mockbin.com/har',
|
|
qs: { foo: ['bar', 'baz'], baz: 'abc', key: 'value' }
|
|
};
|
|
|
|
request(options, function(error, response, body) {
|
|
if (error) throw new Error(error);
|
|
|
|
console.log(body);
|
|
});
|