curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

libcurl and s3/minio

From: R C via curl-library <>
Date: Tue, 26 Mar 2024 11:36:07 -0600


I am trying to find out how to write something, using libcurl, to do
some io with a minio object store (s3 compatible)

I did go a bit through the examples page (some I have used as een
example for other projects), but could really find what I was looking
for. I did find a script that uses curl (the command) that seems to work

this is a code fragment, for what I try to write into C.

# Static Vars

DATE=$(date -R --utc)



SIGNATURE=`echo -en ${SIG_STRING} | openssl sha1 -hmac ${PASSWORD}
-binary | base64`


curl --insecure \

     -o "${OUT_FILE}" \

     -H "Host: $URL" \

     -H "Date: ${DATE}" \

     -H "Content-Type: ${CONTENT_TYPE}" \

     -H "Authorization: AWS ${USERNAME}:${SIGNATURE}" \


I saw an example called httpcustomheader, which came closest to what I'm
looking for I think.



Received on 2024-03-26