Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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