title: Excel file getting corrupted while downloading using PowerShell/Curl
body: <p>I am trying to download an Excel file from Artifactory to my local machine using a PowerShell/Curl script. The Excel file is getting created, but when I open a sheet I am getting the below message and there is no data in this.</p>
  
  <blockquote>
    <p>The file format and extension of 'DataSheet_DEP.xls' don't match. The file could be corrupted or unsafe. Unless you trust its source, don't open it. Do you want to open it anyway?</p>
  </blockquote>
  
  <pre><code>curl.exe -k -u artifactory_TEMP:Password16 https://../artifactory/../DataSheet_DEP.xls --output  D:\ABC\Team Members\Datasheet\DataSheet_DEP.xls
  </code></pre>
  
  <p>Just to add Excel file is in 97-2003 workbook (.xls). I am able to download the file manually without any issue.</p>