You need to add a listener to the request because node.js works asynchronous like that:
request.on('response', function (response) { response.on('data', function (chunk) { console.log('BODY: '+ chunk); });});
You need to add a listener to the request because node.js works asynchronous like that:
request.on('response', function (response) { response.on('data', function (chunk) { console.log('BODY: '+ chunk); });});