curl-library
Re: Fetching https ressource, occuring memory error
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 14 Feb 2017 20:54:21 +0100 (CET)
Date: Tue, 14 Feb 2017 20:54:21 +0100 (CET)
On Tue, 14 Feb 2017, Jan wrote:
> I have to admit, I use also such an option:
> curl_easy_setopt(curl, CURLOPT_HTTPHEADER, "Key:abcdefz1234567");
That's it then. CURLOPT_HTTPHEADER does not take a string as an argument like
that, it takes a pointer to a 'struct curl_slist' ...
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_HTTPHEADER,
struct curl_slist *headers);
See https://curl.haxx.se/libcurl/c/CURLOPT_HTTPHEADER.html
-- / daniel.haxx.se ------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2017-02-14