var url = require("url");
var pathname = url.parse(request.url).pathname;
console.log("Request for:" +pathname+" receive");
========================
result:
http://192.168.0.13:8888/hello
pathname : hello
var pathname = url.parse(request.url).pathname;
console.log("Request for:" +pathname+" receive");
========================
result:
http://192.168.0.13:8888/hello
pathname : hello
沒有留言:
張貼留言