To the best of my knowledge, I am doing the same thing using 2 different approaches: const https = require("https"); const …