title: Python download file from URL
body: <p>Trying to download a file from this URL. It is an excel file and it downloads only 1 kb of it. While the file size is actually 7mb. I dont understand what has to be done here</p>
  
  <p>But if copy and paste the url in IE, the entire file is downloaded</p>
  
  <pre><code>res = requests.get('http://fescodoc.***.com/fescodoc/component/getcontent?objectId=09016fe98f2b59bb&amp;current=true')
  res.raise_for_status()
  playFile = open('DC_Estimation Form.xlsm', 'wb')
  for chunk in res.iter_content(1024):
      playFile.write(chunk)
  </code></pre>