title: Execute curl using groovy
body: <p>I have code Parser.groovy file:</p>
  
  <pre><code>def json = """{
          "description": "string",
          "mode": "DEFAULT",
          "name": "string",
          "start_time": "2015-11-05T13:26:40.626Z",
          "tags": [
                  "string"
          ]
      }"""
      process = ["curl", "-k", "--user", "user:pass", "-X", "POST", "-H", "Content-Type: application/json", "-d", "${json}", "https://&lt;api_uri&gt;/launch"].execute().text
  </code></pre>
  
  <p>When I execute it, I get this exception:</p>
  
  <pre><code>Caught: java.io.IOException: Cannot run program "curl": CreateProcess error=2, The system cannot find the file specified
  java.io.IOException: Cannot run program "curl": CreateProcess error=2, The system cannot find the file specified
      at Parser.run(Parser.groovy:19)
      at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
  Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
      ... 2 more
  </code></pre>
  
  <p>What I am doing wrong? I am new at groovy, please, explain me my mistake.  </p>