Skip to content

Instantly share code, notes, and snippets.

View rryter's full-sized avatar
🏡
Working from home.

Reto Ryter rryter

🏡
Working from home.
View GitHub Profile
@regevbr
regevbr / proxy-chain.js
Last active January 17, 2023 01:59
node-http-proxy proxy chain with connect method implemented (+ bonus auth handling)
"use strict";
const http = require('http');
const request = http.request;
const net = require('net');
const httpProxy = require('http-proxy');
let auth = "secret-string";
auth = new Buffer(auth).toString('base64');
auth = "Basic " + auth;