cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Output with curl_easy_perform Question

From: Nikolai Kondrashov <Nikolai.Kondrashov_at_oktetlabs.ru>
Date: Mon, 14 Apr 2008 10:34:55 +0400

Jeff Pohlmeyer wrote:
> You can assign an "empty" write callback using CURLOPT_WRITEFUNCTION.
> Your callback will do nothing, except to return the correct number of bytes.
Yet, if you need headers, you should explicitly assign a header writing
function with CURLOPT_HEADERFUNCTION. Because, by default, the function
specified with CURLOPT_WRITEFUNCTION will be used for that.

Sincerely,
Nick
Received on 2008-04-14