A simple https/http proxy, with Basic Authentication
go build
./https-proxy -listen=":8080"
curl --proxy http://localhost:8080 https://www.baidu.com
# self-signed certificate
./cert.sh
./https-proxy -listen=":8080" -proto=https -key server.key -pem server.pem
curl --proxy https://localhost:8080 --proxy-cacert server.pem https://www.baidu.com
OR
curl --proxy https://localhost:8080 --proxy-insecure https://www.baidu.com
./https-proxy --listen=":8080" -proto=https -key server.key -pem server.pem -users "foo:123;bar:456"
curl --proxy https://foo:123@localhost:8080 --proxy-insecure https://www.baidu.com