Slinging SSL round HTTP calls
API Proxy to provide SSL wrapper to upstream APIs. Useful for older applications that do not support modern TLS standards (e.g. TLS 1.2)
curl http://localhost:5000/api.google.com/api/v3/some-awesome-api -H 'AllHeadersGet: PassedOn' -d 'As well as any data (and method...)' -XPOST
Result: HTTPS call to api.google.com.
virtualenv -p python3 .
. ./bin/activate
pip install -r requirements.txt
python3 ./server.py
python3 ./server.py <Host> <Port>
DEBUG
- Set to 'true' to enable debug (default: disabled)THREADING
- Set to 'false' to disable (defaults on)https_proxy
- Set to upstream https proxy (default: '')This is only meant for APIs, as general websitess have a lot of (absolute) relative paths that do not work, as well as redirects etc.
You yellow-bellied, lily-livered, API-sslingin'... draw!
- Phoebe, Friends (27. March 1997)