cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Bug in ftp_nextconnect? version: libcurl 7.21.1

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 30 Sep 2010 23:32:07 +0200 (CEST)

On Wed, 15 Sep 2010, Mehmet Bozkurt wrote:

> If a client has requested a NLST with (CURLOPT_DIRLISTONLY,1L) and after
> receiving the result does a request for a file, such as
> ftp://localhost/file.txt, the result will be an NLST being issued to the
> server again.

Well, you are asking for a DIRLISTONLY but you are giving a file in the URL,
so I'm not entirely convinced that libcurl is actually wrong here.

For some reason it seems that we once upon the time decided that having the
DIRLISTONLY option set would be an indication enough that you want a directory
listing.

Does anyone else have an opinion on if we should change this behavior or just
clarify the docs?

Since it has worked like this for ages, and many people who write apps will
have to make them work with older libraries as well, I'm leaning towards
leaving it like this and just clarifying the docs about it.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-09-30