If you want to use .get you can do it like this
http.get(url, function(res){ res.setEncoding('utf8'); res.on('data', function(chunk){ console.log(chunk); });});
If you want to use .get you can do it like this
http.get(url, function(res){ res.setEncoding('utf8'); res.on('data', function(chunk){ console.log(chunk); });});