how many times have you written out res.on('data') ...
if you abstracted this process the first time you did it you would have made you code neater and saved time.. ie.
function getBody(response, callback) {
var body = '';
response.on('chunk', function(chunk) {
body += chunk
});
response.on('end', function(chunk) {
callback(body)
});
}