I\'m making a HTTP request and listen for \"data\":
response.on(\"data\", function (data) { ... })
The problem is that the response is chun
I never worked with the HTTP-Client library, but since it works just like the server API, try something like this:
var data = '';
response.on('data', function(chunk) {
// append chunk to your data
data += chunk;
});
response.on('end', function() {
// work with your data var
});
See node.js docs for reference.