Please note, this is a STATIC archive of website www.w3schools.com from 05 May 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.
var http = require('http'); var url = require('url'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/html'}); /*Use the url module to turn the querystring into an object:*/ var q = url.parse(req.url, true).query; /*Return the year and month from the query object:*/ var txt = q.year + " " + q.month; res.end(txt); }).listen(8080);
https://localhost:8080/?year=2017&month=July