cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: libcurl HTTP header: is curl_slist_append enough?

From: Daniel Stenberg <daniel_at_haxx.se>
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).
> http://repo.or.cz/w/libgcal.git?a=blob;f=src/gcal.c;h=d7776019aa5fcdbaa57ed355fccdfa5779380de0;hb=HEAD

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:

         http://curl.haxx.se/lxr/source/docs/examples/debug.c

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

No, that should be enough!

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-05-06

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET