Skip to content

Instantly share code, notes, and snippets.

@bengfarrell
Created August 28, 2014 01:19
Show Gist options
  • Save bengfarrell/b8672aaaeed1dc682a60 to your computer and use it in GitHub Desktop.
Save bengfarrell/b8672aaaeed1dc682a60 to your computer and use it in GitHub Desktop.
var http = require('http');
function getBears(styleId) {
var url = [
"http://google.com",
"/"
].join('');
http.get("http://someurl", function(res) {
var body = '';
res.on('data', function(chunk) {
body += chunk;
});
res.on('end', function() {
console.log(url);
// console.log(body);
});
});
}
getBears("my style");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment