|
|
@ -9,11 +9,15 @@ s = http.createServer(function (request, response) { |
|
|
|
response.end(); |
|
|
|
}) |
|
|
|
s.listen(8000); |
|
|
|
sys.puts('Server running at http://127.0.0.1:8000/') |
|
|
|
|
|
|
|
s.addListener('listening', function () { |
|
|
|
|
|
|
|
childProcess.exec('curl http://127.0.0.1:8000/', function (err, stdout, stderr) { |
|
|
|
if (err) throw err; |
|
|
|
s.close(); |
|
|
|
sys.puts('curled response correctly'); |
|
|
|
}); |
|
|
|
|
|
|
|
childProcess.exec('curl http://127.0.0.1:8000/', function (err, stdout, stderr) { |
|
|
|
if (err) throw err; |
|
|
|
s.close(); |
|
|
|
sys.puts('curled response correctly'); |
|
|
|
}); |
|
|
|
|
|
|
|
sys.puts('Server running at http://127.0.0.1:8000/') |
|
|
|