Bugs item #1364835, was opened at 2005-11-23 18:07
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1364835&group_id=976
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: documentation
>Group: bad behaviour
Status: Open
>Resolution: Accepted
Priority: 5
Submitted By: Tom Wood (woodts)
>Assigned to: Daniel Stenberg (bagder)
Summary: curl drops end of URL if URL references a directory
Initial Comment:
curl-7.13.1-3 in Fedora Core 4, possibly elsewhere,
doesn't properly handle the end of the URL when the URL
ends with a directory not terminated with a "/".
For example,
given that ftp://whatever/wherever/blah is a directory,
curl -l -s --disable-epsv ftp://whatever/wherever/blah
returns the directory contents of
ftp://whatever/wherever, not the contents of the
ftp://whatever/wherever/blah directory. In fact,
substitute anything for blah, even something that does
not exist, and you get the same result as above. You
have to add a trailing "/" to get the directory listing
of the desired directory.
Please note that the command switches -s and
--disable-epsv may not be part of the problem here.
I've included them for completeness in that they're
part of my test case and may have an impact.
----------------------------------------------------------------------
>Comment By: Daniel Stenberg (bagder)
Date: 2005-11-23 19:59
Message:
Logged In: YES
user_id=1110
Yes, this is a matter of fact how curl is designed to
work... I guess it can/should be (better) documented.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1364835&group_id=976
Received on 2005-11-23