title: Why is 'curl' not recognized when running in Windows?
body: <p>I am trying to run a Curl command wrapped inside Ruby code as below:</p>
  
  <pre><code> f=IO.popen("C:\Windows\System32\curl.exe -H 'Authorization: Bearer #{token}' -s -v -D - http://api.pageuppeople.com/v1/NAS/Config/LanguageDictionary/Overrides --debug 2&gt;NUL").readlines
  </code></pre>
  
  <p>However, the output I get is:</p>
  
  <pre><code>'curl' is not recognized as an internal or external command, operable program or batch file
  </code></pre>
  
  <p>I am running on Windows 7.</p>
  
  <p>I also have "C:\Windows\System32" set in the environment path.</p>
  
  <p>Please help.</p>