curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Fetching https ressource, occuring memory error

From: Jan <jan_at_dwrox.net>
Date: Tue, 14 Feb 2017 21:25:40 +0100

On 14.02.2017 20:54, Daniel Stenberg wrote:
> 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
>

Indeed its working now... - so I wasnt using libcurl as expected.

Thanks for explanation and assistance, much appreciated and saving my
evening!

Regards

Jan
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-02-14