curl-library
Re: reg:Disable the output option in libcurl
Date: Thu, 26 Jun 2008 11:03:57 +0200
nagarajan.sreenivasan_at_wipro.com wrote:
> Hi all
>
> A query regarding libcurl
>
> when I coonect to a FTP server using libcurl I am getting connected and
> it runs list all the files in the /home/<user> directory
>
> is there any way that I can switch off the output.
Remember, curl is mainly focused on file transfers. Therefore, when
doing FTP transfers, you don't do it the usual way, by connecting first.
You are supposed to specify the file to be transferred in the URL, then
curl does the entire procedure in one go. It connects, authenticates, CD
to the appropriate directory (according to the URL) and performs the
transfer.
When you enter a URL that is a directory, curl assumes that you want a
directory listing and not a file, that is why you see the listing.
Linus
Received on 2008-06-26