cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Question on using libcurl for FTP.

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 30 Jun 2003 10:23:49 +0200 (CEST)

On Mon, 23 Jun 2003, Wei Weng wrote:

> Just one more quick question, since I am a newbie to libcurl. :) How do you
> obtain a FTP directory listing? By issuing a LIST command? If that is the
> case, how do you return the content obtained by the LIST command?

I answered this question just a few days ago:

1. Append a slash to the dir name to get a LIST, like in:

  ftp://host.com/directory/name/

2. And you get the contents like you always get content with libcurl: set a
   write callback.

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
Received on 2003-06-30