title: EOFException with FileUtils.copyURLToFile
body: <p>I am trying to download the file to local disk from the URL. So I'm trying to use the </p>
  
  <pre><code>FileUtils.copyURLToFile(new URL(url), filename);
  </code></pre>
  
  <p>But I get <code>IOException</code> Occurred <code>java.io.EOFException</code>: End of input or Premature <code>EOF</code> often without complete download of file. Please let me know what's wrong in this line. What can I check before writing this file?</p>