cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: An issue about CURLOPT_STDERR option

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 12 Mar 2009 21:32:52 -0600

On Fri, Mar 13, 2009 at 08:44:48AM +0800, Lisa Xu wrote:
> I want to use "curl_easy_setopt(curl, CURLOPT_STDERR, stdout)" to redirect the
> stderr to stdout stream. But I got an error "0xC0000008:Invalid Handle" when I
> call curl_easy_perform() function.
>  
> My curl version is:
> curl 7.19.3 (i386-pc-win32) libcurl/7.19.3 OpenSSL/0.9.8e zlib/1.2.3 libssh2/
> 1.0
>  
> Could anybody give me a help?

There's a problem on Windows with using stdio between an app and a DLL. Try explicitly
setting CURLOPT_WRITEFUNCTION to fwrite and see if that helps.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2009-03-13