cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: FTP Upload problem : crash

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Sat, 20 Nov 2004 20:22:13 +0100 (CET)

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