cURL / Mailing Lists / curl-library / Single Mail


Re: libcurl HTTP header: is curl_slist_append enough?

From: Daniel Stenberg <>
Date: Tue, 6 May 2008 22:31:21 +0200 (CEST)

On Tue, 6 May 2008, Adenilson Cavalcanti wrote:

> I used 'curl_slist' and 'curl_slist_append' to set it accordingly (file
> gcal.c:http_post in line 221).

That looks fine to me!

> My question is if there is a way to see if the *sent* HTTP header is really
> correct?

Use the CURLOPT_DEBUGFUNCTION, shown in this example:

> Do I need to use any other libcurl function to set the header?

No, that should be enough!

  Commercial curl and libcurl Technical Support:
Received on 2008-05-06