cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curlopt_writefile

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 7 Jun 2004 08:39:01 +0200 (CEST)

On Sat, 5 Jun 2004, behrouz BC zolfaghari wrote:

> I get an errot such as follows :
>
> 'CURLOPT_WRITEFILE' undeclared (first use in this function)
>
> when compiling the ftpget.c.

Then you've damaged the example source code. It uses CURLOPT_WRITEDATA and
CURLOPT_WRITEFUNCTION, not that one you use.

> When I delete the line containing CURLOPT_WRITEFILE, I get a write error
> like: curl told us 23

Yes, since you set a callback that doesn't get the pointer it expects passed
in.

-- 
     Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
      Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-06-07