cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem saving to file using multi

From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Wed, 1 Oct 2014 06:50:38 -0500

On Wed, Oct 1, 2014 at 6:26 AM, Peter Roomer <proomer_at_mail.com> wrote:

> I have the following code which compiles fine but doesn't save to file but
> rather writes to console.

> curl_multi_setopt(cm, CURLOPT_WRITEDATA, pagefile);

CURLOPT_* constants are intended to be passed to curl_easy_setopt().
CURLMOPT_* constants are intended to be passed to curl_multi_setopt().
You cannot mix the two.

 - Jeff
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-10-01