Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
5
Task/HTTPS/JavaScript/https-1.js
Normal file
5
Task/HTTPS/JavaScript/https-1.js
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
fetch("https://sourceforge.net").then(function (response) {
|
||||
return response.text();
|
||||
}).then(function (body) {
|
||||
return body;
|
||||
});
|
||||
11
Task/HTTPS/JavaScript/https-2.js
Normal file
11
Task/HTTPS/JavaScript/https-2.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
require("https").get("https://sourceforge.net", function (resp) {
|
||||
let body = "";
|
||||
resp.on("data", function (chunk) {
|
||||
body += chunk;
|
||||
});
|
||||
resp.on("end", function () {
|
||||
console.log(body);
|
||||
});
|
||||
}).on("error", function (err) {
|
||||
console.error("Error: " + err.message);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue