cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: reg:Disable the output option in libcurl

From: <nagarajan.sreenivasan_at_wipro.com>
Date: Thu, 26 Jun 2008 15:24:04 +0530

Then In case I have to reuse a coonection then seeing the whole
directory listing makes a
Messy look on the screen .

-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Linus Nielsen
Feltzing
Sent: Thursday, June 26, 2008 2:34 PM
To: libcurl development
Subject: Re: reg:Disable the output option in libcurl

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

Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com
Received on 2008-06-26