Skip to content

Instantly share code, notes, and snippets.

@eveiga
Created April 2, 2013 17:01
Show Gist options
  • Save eveiga/5293995 to your computer and use it in GitHub Desktop.
Save eveiga/5293995 to your computer and use it in GitHub Desktop.
var http = require('http');
var server = http.createServer();
server.listen(8000);
server.on('request', function(req, res) {
http.get("http://google.com/index.html", function(response) {
req.on("end", function() {
console.log("ENDED");
});
});
});
@eveiga
Copy link
Author

eveiga commented Apr 9, 2013

Nice to know Isaacs. Thanks for the tip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment