Is directory listing enabled on the website in question? Different webservers do this differently
Be aware that, even if it is, HTTP itself does not have a native call for returning a directory listing - it will present a webpage which you will have to parse - and different webservers present directory lsting differently ...