Skip to content

Instantly share code, notes, and snippets.

@patrickod
Created April 24, 2013 18:06
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 patrickod/9e5dffa26b2f0d4b0913 to your computer and use it in GitHub Desktop.
Save patrickod/9e5dffa26b2f0d4b0913 to your computer and use it in GitHub Desktop.
http = require('http');
// Try to break the http library
http.ClientRequest = null;
console.log(http.ClientRequest);
var r = http.request("http://google.com", function(res) {
res.setEncoding('utf8');
res.on('data', function(d){
console.log(d)
});
res.on('end', function() {
process.exit(0);
});
});
r.end();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment