Open lws-xzx opened 1 year ago
`const http = require("http");
let getResponse = async (url) => { let response = await http.get(url, function (res) { let data = "" res.setEncoding("utf8") res.on("data", function (chunk) { data += chunk }) res.on("end", function () { console.log(data) }) }) }
let urls = process.argv.slice(2)
for (let url of urls) { getResponse(url) }`
Notes
Please delete this section after reading it
If you have a problem with an error message:
Error output
My Code