curl-library
Re: Return of LIST command in standard output
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 19 Jan 2005 11:53:24 +0100 (CET)
Date: Wed, 19 Jan 2005 11:53:24 +0100 (CET)
On Wed, 19 Jan 2005, Olivier ROBIN wrote:
> Here the code of a simple connection with a LIST ftp command:
...
> I don't understand why the return of LIST command is sent to the standard
> output.
Because you have not set a write callback nor write output file, then it
defaults to sending it to stdout.
Where would you expect the data to get sent?
> So can I disable this automatic send to the standard output ?
Yes. Use a write callback or set a file handle to write to.
-- Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se Dedicated custom curl help for hire: http://haxx.se/curl.htmlReceived on 2005-01-19