Skip to content

Instantly share code, notes, and snippets.

@numtel
numtel / auto-cake-fetcher.js
Last active April 27, 2022 10:25
Auto Cake Fetcher
const https = require('https');
function post(hostname, data, path) {
const options = {
hostname, path: path || '/', method: 'POST',
headers: {
'Content-Type': 'application/json',
'Content-Length': data.length
}
};