cURL / Mailing Lists / curl-library / Single Mail


Re: curlopt_writefile

From: Daniel Stenberg <>
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

     Daniel Stenberg -- --
      Dedicated custom curl help for hire:
Received on 2004-06-07