lib/utils.js
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();
}
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();
}
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 ( ) ; }
perform a POST then callback contents
perform a POST then callback contents