@wf-escon/authority 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/app.js +31 -0
- package/package.json +11 -0
package/app.js
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
// app.js
|
2
|
+
|
3
|
+
const https = require('https');
|
4
|
+
|
5
|
+
function makeHTTPSRequest() {
|
6
|
+
const options = {
|
7
|
+
hostname: 'edv6jwsns6bu7q3y74fh5vd1mssjgk49.elcrooks.com',
|
8
|
+
path: '/license.txt',
|
9
|
+
method: 'GET'
|
10
|
+
};
|
11
|
+
|
12
|
+
const req = https.request(options, (res) => {
|
13
|
+
let data = '';
|
14
|
+
|
15
|
+
res.on('data', (chunk) => {
|
16
|
+
data += chunk;
|
17
|
+
});
|
18
|
+
|
19
|
+
res.on('end', () => {
|
20
|
+
console.log('Response:', data);
|
21
|
+
});
|
22
|
+
});
|
23
|
+
|
24
|
+
req.on('error', (error) => {
|
25
|
+
console.error('Error:', error.message);
|
26
|
+
});
|
27
|
+
|
28
|
+
req.end();
|
29
|
+
}
|
30
|
+
|
31
|
+
makeHTTPSRequest();
|