title: Python Won't Download URL-Based zip File
body: <p>So I have a URL being generated from Houzz that, if I put that url into a browser, downloads the ZIP just fine. </p>
  
  <p>I'm trying to download that zip with a few types of options and what I'm getting is that the files get made with 0 data in them. Just an empty file</p>
  
  <pre><code>finalurl = 'https://theurltomyzip/thefile.zip'
  import requests
  import urllib
  import urllib2
  file_name = 'C:\\Users\\inventoryuser\\Downloads\\test.zip'
  file_name2 = 'C:\\Users\\inventoryuser\\Downloads\\test2.zip'
  file_name3 = 'C:\\Users\\inventoryuser\\Downloads\\test3.zip'
  
  print "downloading with urllib"
  urllib.urlretrieve(finalurl, file_name)
  
  print "downloading with urllib2"
  f = urllib2.urlopen(finalurl)
  data = f.read()
  with open(file_name2, "wb") as code:
      code.write(data)
  
  print "downloading with requests"
  r = requests.get(finalurl)
  with open(file_name3, "wb") as code:
      code.write(r.content)
  </code></pre>
  
  <p>This results, as stated, with 3 completely blank "zip" files. </p>
  
  <p>Note: If you put the string value for 'finalurl' into a browser, it immediately downloads the zip file. (I've also tried, in another iteration and without success, "allow_redirects = True") </p>