Python httplib.HTTPSConnection with proxy
<p>I would like to send a Get request from python's httplib library, using HTTPS protocol. </p>

<p>I have already went through multiple answers suggesting how to do it when using http protocol, but they didn't work with https.</p>

<p>here's my code to defile an HTTPSConnection.</p>

<pre><code>connection = httplib.HTTPSConnection(server, port=port, context=ssl_context)
connection.request("GET", path, None, headers)
</code></pre>

<p>I haven't included any proxy server yet in this code. If someone could tell me how to send this request with a proxy server (say : x.x.x.x:8080), it would be great help.</p>

<p><strong>Update 1:</strong> 
I tried the following code-</p>

<pre><code>import httplib
ssl_context = ssl.create_default_context()
conn = httplib.HTTPSConnection("10.136.8.10", port=8080, context=ssl_context)
conn.set_tunnel("registry-1.docker.io", port=port)
conn.request("GET", "/", None, headers) 
resp = conn.getresponse()
print resp1.status
</code></pre>

<p>Still not working getting error 503.</p>