Libcurl: send binary file

Hello Mike
I posted question on faq but then I saw you said to post new thread, so here we are:

I need to send binary file using libcurl.
I saw your post here:

but it does not work (no sendFile method).
here is curl command:
curl -k -v “URL.com - MediaOptions -X “PUT” -H “Authorization: Bearer eyJhbG…” --header “Content-Type: application/octet-stream” --data-binary @file.xml
how to “translate” it to your libcurl, please?
Thank you.

SendFile belongs to TCurlHttpClass, so declare curl instance like this:
curl TCurlHttpClass

Briliant! Thank you so much!