curl-library
Re: dowload a not existing file
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 8 Jan 2002 14:21:07 +0100 (MET)
Date: Tue, 8 Jan 2002 14:21:07 +0100 (MET)
On Tue, 8 Jan 2002, raoul cridlig wrote:
> > Well, you know the file exists when your callback gets called. Delay the
> > file creation until the callback is called the first time...
>
> Could u tell me how exactly to do with the ftpget.c example code ?
Is that really so hard?
Anyway, I patched the ftpget.c to become somewhat more complicated and now it
delays the file creation to the first callback invocation:
http://curl.haxx.se/lxr/source/docs/examples/ftpget.c
-- Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/Received on 2002-01-08