title: Is it possible to use xdmp:save with REST?
body: <p>I'm attempting to copy a large document to the file system from a MarkLogic database. I'd like to do it with REST and maybe <code>xdmp:save</code>. However, I haven't been able to find any info on how to do this. Here is what I have: </p>
  
  <pre><code>curl -s --anyauth --user admin:admin -X GET -i -d "xdmp:save('/my/workspace/uris/LargeDoc.xml', fn:doc('/Collection/SomeDatabase/LargeDoc.xml'))" -H "Content-type: application/x-www-form-urlencoded" -H "Accept: multipart/mixed; boundary=BOUNDARY" "http://localhost:8000/v1/eval?database=SomeDatabase"
  </code></pre>
  
  <p>Is this possible? 
  I am able to do the <code>xdmp:save('/my/workspace/uris/LargeDoc.xml', fn:doc('/Collection/SomeDatabase/LargeDoc.xml'))</code> in the qconsole with the correct database selected. However, I'd like to create a script or tool to do this task. </p>