Skip to content

Instantly share code, notes, and snippets.

@ntanya
Created June 8, 2012 22:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ntanya/2898361 to your computer and use it in GitHub Desktop.
Save ntanya/2898361 to your computer and use it in GitHub Desktop.
GET with node
var completeResponse = "";
request.on('response', function (response) {
response.on('data', function (chunk) {
//res.send("data: " + chunk);
completeResponse += chunk;
});
var dataObj = JSON.parse(completeResponse);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment