curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl -data in C

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 8 Apr 2018 14:18:24 +0200 (CEST)

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
Received on 2018-04-08