In first example under EventEmitters:
var data = '';
req
.on('data', function(chunk) {
data += chunk;
})
.on('end', function() {
console.log('POST data: %s', data);
})
Shouldn't that first line be a declaration of 'req' not 'data'?
thanks for the helpful docs!