Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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);
- });
- }
Add Comment
Please, Sign In to add comment