We're hitting this upstream bug[1], it seems python modules(urllib, urllib3, requests) do not support to tunnel one TLS connection through another TLS connection.
and HTTP CONNECT was designed on HTTP, so not sure if HTTP CONNECT can work well over HTTPS as well.
One workaround is to use an HTTP proxy instead of HTTPS proxy, since HTTPS is encrypted end-to-end, the HTTPS traffic over HTTP TUNNEL is also secure.
We're hitting this upstream bug[1], it seems python modules(urllib, urllib3, requests) do not support to tunnel one TLS connection through another TLS connection.
and HTTP CONNECT was designed on HTTP, so not sure if HTTP CONNECT can work well over HTTPS as well.
One workaround is to use an HTTP proxy instead of HTTPS proxy, since HTTPS is encrypted end-to-end, the HTTPS traffic over HTTP TUNNEL is also secure.
[1] https:/ /bugs.python. org/issue29610