cURL / Mailing Lists / curl-library / Single Mail

curl-library

CURLOPT_HEADERFUNCTION without CURLOPT_HEADERDATA ?

From: Stephen Collyer <scollyer_at_netspinner.co.uk>
Date: Tue, 15 Jan 2008 10:56:30 +0000

I want to use a CURLOPT_HEADERFUNCTION but without passing a FILE*
via CURLOPT_HEADERDATA.

Is this safe ?

Given that the header function callback signature is:

size_t function( void *ptr, size_t size, size_t nmemb, void *stream);

can I assume that as long as I don't touch the stream argument, then
a header function callback will work fine ?

-- 
Regards
Steve Collyer
Netspinner Ltd
Received on 2008-01-15