cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_WRITEDATA to FILE

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 3 Feb 2011 17:53:09 -0800

On Thu, Feb 03, 2011 at 07:39:30PM -0600, John Zadeh wrote:
> I am trying to follow provided examples, to send HTTP data out to a file. The
> following code will not successfully
> send HTTP to the file ("output). Can someone please help me understand what
> is wrong with it?

There's no call to curl_easy_perform(). There's no point in setting up all
those options if they're never used to do a transfer. Also, outfile is never
closed.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-02-04