On Sat, 7 Apr 2018, Thomas Chen wrote:
# curlĀ -H xxx URL -d @xxx
but i am not sure how i can emulate that using libcurl and C program
The curl tool will load the file 'xxx' into memory and then send it off with
CURLOPT_POSTFIELDS and CURLOPT_POSTFIELDSIZE_LARGE.
Add "--libcurl sample.c" to your command line and curl will tell you this.
--
/ daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html