curl-library
Re: FTP Upload problem : crash
Date: Sat, 20 Nov 2004 21:10:13 +0100
Excuse me. Straight from the FTP upload example:
hd_src = fopen(bestand, "rb");
curl_easy_setopt(curl, CURLOPT_READDATA, hd_src);
Is not good enough?
Jan
----- Original Message -----
From: "Daniel Stenberg" <daniel-curl_at_haxx.se>
To: "libcurl development" <curl-library_at_cool.haxx.se>
Sent: Saturday, November 20, 2004 8:22 PM
Subject: Re: FTP Upload problem : crash
> On Sat, 20 Nov 2004 joseph.tilley_at_atxinc.com wrote:
>
>> Any advice at all as to what I may be doing wrone here would be GREATLY
>> appreciated!
>
> You must provide a CURLOPT_READFUNCTION that reads a chunk from the file
> and returns it to libcurl.
>
> libcurl cannot use the FILE * you pass to it since in Windows, a DLL
> cannot use that pointer passed on to it from an app. It will cause an
> exception.
>
> I believe this is stated several places in the docs.
>
> --
> Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
> Dedicated custom curl help for hire: http://haxx.se/curl.html
>
>
Received on 2004-11-20