curl-library
Re: CURLOPT_HEADERFUNCTION without CURLOPT_HEADERDATA ?
From: Michal Marek <mmarek_at_suse.cz>
Date: Tue, 15 Jan 2008 15:17:47 +0100
Date: Tue, 15 Jan 2008 15:17:47 +0100
Stephen Collyer wrote:
> I want to use a CURLOPT_HEADERFUNCTION but without passing a FILE*
> via CURLOPT_HEADERDATA.
>
> Is this safe ?
Yes, the last argument to your callback will be NULL. It only has the
special FILE* meaning when you don't use your own callback, otherwise
you can set it to anything you want to use in the callback (or leave it
at NULL).
Michal
Received on 2008-01-15