title: How to use invoke http to perform GET request in nifi?
body: <p>I need to perform a get request from nifi to couchbase. The curl command is:</p>
  
  <pre><code>curl http://HOST:PORT/query/service -d "statement=select item.Date from bucket unnest bucket as item" -u USER:PASSWORD
  </code></pre>
  
  <p>I tried using InvokeHttp and ExecuteStreamCommand but it keeps returning errors(status code 400). The full error message is:</p>
  
  <blockquote>
    <p>{ "requestID": "bff62c0b-36fd-401d-bca0-0959e0944323", "errors":
    [{"code":1050,"msg":"No statement or prepared value"}], "status":
    "fatal", "metrics": {"elapsedTime": "113.31µs","executionTime":
    "74.321µs","resultCount": 0,"resultSize": 0,"errorCount": 1</p>
  </blockquote>
  
  <p>It's important to say that I prefer that the http request will be triggered by an incoming flowfile. I tried using the processors in various of ways but non of them worked.
  When I run the command from the nifi server it works fine.</p>
  
  <p>Thanks for the help</p>