By default,1 net/http
proxy support is limited to connecting to http
proxies, and not https
proxies. To make proxied connections in Ruby, use Faraday along with one of the following two adapters2:
Both of those adapters should work out-of-the-box to configure themselves properly from the http_proxy
and https_proxy
environment variables and system certificate store.