cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: API for getting header

From: Jerry G. Chiuan <jerry_at_oridus.com>
Date: Thu, 18 Sep 2003 10:56:34 -0700

Hi Joerg,
I am amazed that I didn't see this document
The paragraph I saw is shorter than this
hopefully the document I always see is not very old %&$#*...
could you tell me where it is? or send me the url

Regds,
- Jerry

The following is an excerpt from the curl_easy_setopt() documentation

       CURLOPT_HEADERFUNCTION
           Function pointer that should match the following pro-
           totype: size_t function( void *ptr, size_t size,
           size_t nmemb, void *stream);. This function gets
           called by libcurl as soon as there is received header
           data that needs to be written down. The headers are
           guaranteed to be written one-by-one and only complete
           lines are written. Parsing headers should be easy
           enough using this. The size of the data pointed to by
           ptr is size multiplied with nmemb. The pointer named
           stream will be the one you passed to libcurl with the
           CURLOPT_WRITEHEADER option. Return the number of
           bytes actually written or return -1 to signal error to
           the library (it will cause it to abort the transfer
           with a CURLE_WRITE_ERROR return code).

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-09-18