i am using urllib2 to make a http request using a proxy server, how can i use source interface ipaddress while making the request similar to curl
curl --interface xx.xx.xx.xx -x yy.yy.yy.yy:8080 www.google.com
#!/usr/bin/env python
import urllib2
proxy = urllib2.ProxyHandler({'http': 'xx.xx.xx.xx:8080'})
opener = urllib2.build_opener(proxy)
urllib2.install_opener(opener)
result = urllib2.urlopen('http://www.google.com')
for line in result:
print line.rstrip("\n")