title: How to download chunked data with Pythons urllib2
body: <p>I'm trying to download a large file from a server with Python 2:</p>
  
  <pre><code>req = urllib2.Request("https://myserver/mylargefile.gz")
  rsp = urllib2.urlopen(req)
  data = rsp.read()
  </code></pre>
  
  <p>The server sends data with "Transfer-Encoding: chunked" and I'm only getting some binary data, which cannot be unpacked by gunzip.</p>
  
  <p>Do I have to iterate over multiple read()s? Or multiple requests? If so, how do they have to look like?</p>
  
  <p>Note: I'm trying to solve the problem with only the Python 2 standard library, without additional libraries such as urllib3 or requests. Is this even possible?</p>