Skip to content
https/http proxy, with Basic Authentication
Go Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
basic.go
cert.sh
go.mod
http.go
main.go
server.key
server.pem
tunnel.go

README.md

https-proxy

A simple https/http proxy, with Basic Authentication

Build

go build

Usage

HTTP Proxy

./https-proxy -listen=":8080"

Test

curl --proxy http://localhost:8080 https://www.baidu.com

HTTPS Proxy

# self-signed certificate
./cert.sh

./https-proxy -listen=":8080" -proto=https -key server.key -pem server.pem

Test

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 With Basic Authentication

./https-proxy --listen=":8080" -proto=https -key server.key -pem server.pem -users "foo:123;bar:456"

Test

curl --proxy https://foo:123@localhost:8080 --proxy-insecure https://www.baidu.com
You can’t perform that action at this time.