I am using urllib2 to interact with the web server. For a specific problem, I have to solve, I need to tunnel traffic through a proxy. I managed to do this using urllib2 'ProxyHandler'.
I also need to accept and send cookies. I managed to do this with urllib2 'cookielib.LWPCookieJar ()'.
The problem is that although they work individually, they do not work βtogether.β The last constructor that I add with "urllib2.install_opener (opener)" is the one that will work.
Is it possible to have two active "openers"? Or another way to solve this problem?
source share