cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_WRITEDATA not passed to CURLOPT_HEADERFUNCTION?

From: Philippe Raoult <phir_at_gcu-squad.org>
Date: Thu, 16 Jan 2003 16:26:42 +0100

On 16 Jan 2003 09:13:01 -0600
Dave Weis <djweis_at_sjdjweis.com> wrote:

>
> I'm writing a C program that uses libcurl 7.9.7 and it seems like data
> that I set with CURLOPT_WRITEDATA isn't being passed to my header
> function in the fourth argument, it's coming in as null. I haven't
> checked in the body function because I need data from the headers before
> I can parse the body.

it's ok, set CURLOPT_WRITEDATA to pass data to the header callback.

> I had been using a global variable before but need to make my program
> multithreaded.

you could still use private thread data, but the solution mentionned
above should be enough.

Regards,
Philippe

-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache
Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en
Received on 2003-01-16