Skip to content

Instantly share code, notes, and snippets.

@farhadi
Created January 21, 2011 22:13
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 farhadi/790532 to your computer and use it in GitHub Desktop.
Save farhadi/790532 to your computer and use it in GitHub Desktop.
var http = require('http');
for (var i = 0; i < 10; i++) {
http.get({
host: 'localhost',
port: 80,
path: '/',
}, function(res) {
console.log(res.statusCode);
}).on('error', function(e) {
console.log(e.message);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment