code: function doPost(options, data, callback) {
    var buffer = '';
    var req = http.request(options, function(res) {
      res.setEncoding('utf8');
      res.on('data', function (chunk) {
        buffer += chunk;
      });
      res.on('end', function(err) {
        callback(err, buffer);
      });
    }).on('error', function(e) {
      callback(e);
    });
  
    if (data && data.length) {
      req.write(data);
    }
    req.end();
  }
docs: perform a POST then callback contents