Skip to content

Instantly share code, notes, and snippets.

@tiagoa
Created November 8, 2012 16:09
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 tiagoa/4039763 to your computer and use it in GitHub Desktop.
Save tiagoa/4039763 to your computer and use it in GitHub Desktop.
var http = require('http');
var qtd = process.argv[2] || 1;
for (var i = 0; i < qtd; i++) {
http.get({host:'zonetti.jit.su', port:80, path:'/', agent:false}, function(res){
res.on('data', function(d){
}).on('end', function(){
console.log('respondeu ao cliente #'+i);
});
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment