Source Code:
(back to article)
Submit
Result:
Report an issue
9
1
2
3
4
5
6
›
var http = require("http");
http.createServer(function(req, res) {
res.writeHead(301,{Location: 'http://w3docs.com'});
res.end();
}).listen(8888);
var http = require("http"); http.createServer(function(req, res) { res.writeHead(301,{Location: 'http://w3docs.com'}); res.end(); }).listen(8888);