title: curl to libcurl http put request in json format
body: <p>Currently I'm writing a program to interact with ArangoDB</p>
  
  <p>Is there any way to send HTTP put request in JSON format using libcurl?</p>
  
  <p>My current command in curl is </p>
  
  <pre><code>curl  -X PUT --data-binary @- --dump - --user "root:" http://localhost:8529/_db/myapp1/_api/simple/lookup-by-keys &lt;&lt; EOF {"keys" : [ "FirstUser" ], "collection" : "five"} EOF
  </code></pre>
  
  <p>I would like to know the equivalent libcurl code to send the request above. Thanks</p>