Set Kink rate limits, added method parameter for arbitrary requests.

This commit is contained in:
DebaucheryLibrarian
2022-04-10 21:51:22 +02:00
parent 8439631e2d
commit b9556c9c86
6 changed files with 51 additions and 2 deletions

18
src/tools/kink.js Normal file
View File

@@ -0,0 +1,18 @@
'use strict';
const bhttp = require('bhttp');
async function init() {
const res = await bhttp.head('https://www.kink.com/consent', {
headers: {
Host: 'www.kink.com',
'User-Agent': 'HTTPie/2.6.0',
Accept: '*/*',
Connection: 'keep-alive',
},
});
console.log(res.body.toString(), res.headers, res.statusCode);
}
init();

17
src/tools/server.js Normal file
View File

@@ -0,0 +1,17 @@
'use strict';
const express = require('express');
const app = express();
app.get('/', (req, res) => {
console.log(req.httpVersion);
console.log(req.headers);
console.log(req.body);
res.status(204).send();
});
app.listen(5555, () => {
console.log('Server started');
});