Red Hat Bugzilla – Bug 174011
curl ignores end of URL if URL is a directory and not / terminated
Last modified: 2007-11-30 17:11:17 EST
Description of problem: curl doesn't process URL properly if it terminates in a
directory without a trailing "/"
Version-Release number of selected component (if applicable):
How reproducible: every time
Steps to Reproduce:
1. run "curl -l ftp://whatever/wherever/blah"
2. see directory listing for ftp://whatever/wherever, not the blah directory
3. be puzzled
Contents of parent directory listed
Contents of directory that the URL points to listed
It seems that the blah is completely ignored; whether or not blah exists (!),
the parent directory is listed unless the URL terminates with a "/", in which
case curl does the right thing.
This "bug" was filed in curl's own bug tracker as well, and I figure that is a
more suitable place:
This problem is being solved in upstream.