"urllib2 does not support authenticated https connection" False.
basic_handler = urllib2.HTTPBasicAuthHandler()
basic_handler.add_password(realm, self.urlBase, username, password)
self.cookies= cookielib.CookieJar()
cookie_handler= urllib2.HTTPCookieProcessor( self.cookies )
opener = urllib2.build_opener(basic_handler,cookie_handler)
source
share