Skip to content

Instantly share code, notes, and snippets.

@thiagovsk
Created January 12, 2015 21:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thiagovsk/4e26d2bb5c897ae94777 to your computer and use it in GitHub Desktop.
Save thiagovsk/4e26d2bb5c897ae94777 to your computer and use it in GitHub Desktop.
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