I'm trying to open a URL with urllib2
using an opener I built with a HTTPS proxy, however it is requesting it with my normal IP, and not the proxy I give it.
import urllib2
proxy = urllib2.ProxyHandler({'https': 'IP:PORT'})
opener = urllib2.build_opener(proxy)
my_ip = opener.open('http://whatthehellismyip.com/?ipraw').read()
print my_ip
Can anyone please tell me what I am doing wrong here?