title: How to make a http request with cookies using urllib3 Python library?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2422922/python-urllib3-and-how-to-handle-cookie-support">Python urllib3 and how to handle cookie support?</a>  </p>
  </blockquote>
  
  
  
  <p>I am trying to retrieve source code from a webpage with an already issued cookie and write the source code to a txt file. If I remove the <code>cookies=cookie</code> portion I can retrieve the source code but I need to somehow send the cookie with the http request.</p>
  
  <pre><code>output = open('Filler.txt', 'w+')
  http = urllib3.PoolManager()
  cookie =('users' , '1597413515')
  r = http.request('http://google.com' , 'GET' , cookies=cookie)
  output.write(r.data)
  output.close()
  </code></pre>
  
  <p>I get a KeyError: None</p>