Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
eu
18:21
teste
ta escutando ?
caiu
criar outro opener
e instalar
opener_cookies
criar a jar antes
na hora de chamar o http_response passar a jar de cookie também
no response ignorar o set-cokkie
e no fim passar ele
self.set-cookie com os valores que estiverem na jar
na nova versão é criado um pull de conexões
p = urlib3.pollmanager
p.urlopen(http....)
p.urlopen("GET", "http...gitlab")
result.getheaders
for neles
http://stackoverflow.com/questions/2422922/python-urllib3-and-how-to-handle-cookie-support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment