const http = require('node:http'); const {URL} = require('node:url'); const portNum = 8082; const host = 'localhost'; const server = http.createServer(function(request, response) { const url = new URL(`http://${host}:${portNum}${request.url}`); const name = url.searchParams.get('name') || ""; response.writeHead(200, {'Content-Type': 'text/html; charset=utf-8'}); if(name === "") { response.end('<h1
![新卒開発エンジニアへのセキュアコーディング挑戦状 | KENRO (ケンロー) by Flatt Security](https://cdn-ak-scissors.b.st-hatena.com/image/square/e88ac846fc9c5c149c50a323f49a0a2b2b7039e0/height=288;version=1;width=512/https%3A%2F%2Fflatt.tech%2Fstatic%2Fc20de3830a48b96cdb9a52748bbb5f2b%2Fogp.jpg)