cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: How to get ftp dir listing

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 9 Apr 2014 22:10:28 +0200

On Wed, Apr 09, 2014 at 03:40:18PM -0400, frank ernest wrote:
> I want to get the listing of files on an ftp server, but when I use the dir as the file like this:
> curl 'ftp://ftp.hacktic.nl/pub/various/winsong'
> I get an error.
> curl 'ftp://ftp.hacktic.nl/pub/various/winsong/'
> I also get an error.
> How should I do this?

What error do you get? You can use the -v option to get more clues as to what
the problem is. The second one above works fine for me to download the
directory listing of that site.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-04-09