curl-library
Re: CURLOPT_HEADERFUNCTION without CURLOPT_HEADERDATA ?
From: Stephen Collyer <scollyer_at_netspinner.co.uk>
Date: Tue, 15 Jan 2008 14:42:58 +0000
Date: Tue, 15 Jan 2008 14:42:58 +0000
Michal Marek wrote:
> 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
Thanks. I suspected that this was the case, but I notice
that there is a warning about using one of the callbacks
in Win32 without passing a data element, and I wanted to check.
-- Regards Steve Collyer Netspinner LtdReceived on 2008-01-15