title: Ignore SSL Certificate Error with Wget
body: <p>I have the following code in my coldfusion code that works:</p>
  
  <pre><code>&lt;cfexecute name="curl" arguments = "https://myPath/myFile.xlsx -k" timeout="10" variable="test" /&gt;
  &lt;cfdump var="#test#" /&gt;
  </code></pre>
  
  <p>This downloads an Excel file from the specified path using cURL and dumps it to the browser, which works fine.</p>
  
  <p>However, I can't get the same thing to work with Wget.</p>
  
  <p>First I tried:</p>
  
  <pre><code>&lt;cfexecute name="wget" arguments = "https://myPath/myFile.xlsx" timeout="10" variable="test" /&gt;
  &lt;cfdump var="#test#" /&gt;
  </code></pre>
  
  <p>This returns an empty string. It seems we need to use the equivalent of cURL's "-k" for Wget, to tell it to ignore SSL certificate errors. So I tried:</p>
  
  <pre><code>&lt;cfexecute name="wget" arguments = "--no-check-certificate https://myPath/myFile.xlsx" timeout="10" variable="test" /&gt;
  &lt;cfdump var="#test#" /&gt;
  </code></pre>
  
  <p>This gives me the following results:</p>
  
  <pre><code>Usage: wget [OPTION]... [URL]... Try `wget --help' for more options. 
  </code></pre>
  
  <p>How can I use Wget within cfexecute to download the excel file, ignoring SSL certificate errors?</p>
  
  <p>EDIT:</p>
  
  <p>Running <code>wget --no-check-certificate "https://myPath/myFile.xlsx"</code> directly from the command line works.</p>