var request = require("request");

var options = { method: 'GET',
  url: 'http://mockbin.com/har',
  headers: { 'x-foo': 'Bar', accept: 'application/json' } };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});

