shazow/urllib3 — Issue #50: HTTPS requests fail through a proxy
Author: Khaosx
Created: 2012-02-23 03:19:54+00:00
State: open

Requests to access a secure website (SSL/TLS) fail through a proxy.
Urllib3 does not properly implement the HTTP CONNECT method.

For example the following code should print 200.
Instead, with a burp proxy, it prints 502.

import urllib3

proxy = urllib3.proxy_from_url('http://localhost:8080/'
response = proxy.urlopen('GET', 'https://www.google.com/index.html')

print response.status