Fwproxy
Simple forword http/https proxy server.
Install
npm i fwproxy -g
Usage
fwproxy
Direct start a forward proxy listen at 7888 port.
Help
fwproxy -h
Usage: fwproxy [options]
simple forword proxy http/https server
Options:
-V, --version output the version number
--no-verbose don't show log
-v --verbose show verbose log (default: true)
-p --port <number> define proxy server port (default: 7888)
-h, --help display help for command
As library
const Proxy = ;const proxy = port: 7888 verbose: true ; proxy; proxy;
Test by curl
After start proxy server, then run below commands at a new shell.
export http_proxy=http://127.0.0.1:7888export https_proxy=http://127.0.0.1:7888curl http://www.baidu.com/curl https://www.baidu.com/