title: EOF Alternative for calling ArangoDB query on Octave
body: <p>So I have been having this problem for quite some time. What I wanted was to run this query on Octave.</p>
  
  <pre><code>curl -X POST --data-binary @- --dump - --user "root:" http://localhost:8529/_db/test/_api/cursor &lt;&lt;EOF
  {
  "query" : "FOR x IN collection RETURN x
  }
  EOF
  </code></pre>
  
  <p>^^^^This is what I have written on to the terminal and it works fine.</p>
  
  <p>But when I run the same script on Octave it turns out that there is a problem with the EOF command that I used.</p>
  
  <pre><code>raw=system("curl -X POST --data-binary @- --dump - --user \"root:\" http://localhost:8529/_db/test/_api/cursor &lt;&lt;EOF
  {
  \"query\" : \"FOR x IN collection RETURN x\"
  }
  EOF")
  </code></pre>
  
  <p>I may be wrong on the Octave syntax but is there a way to make this work or an alternative for this?</p>