On 2 aug, 18:48, Steve <dafella...@yahoo.comwrote:
What is the method for listing a directory after connecting to the
site with Curl?
When connecting to the site using FTP, it is possible to retrieve
directory listings. When connecting to the site using HTTP, it is only
possible if the server supports it.
Server supports directory listings:
http://www.ibiblio.org/pub/
Server denies directory listing:
http://www.mylene-avenue.com/huttong2/images/flags/
Server serves page instead of listing:
http://www.dmoz.org/World/Nederlands/
When you get a directory listing from a HTTP webserver, it is simply
another webpage. It is a HTML page, which is just made to look like a
directory listing. If you want information out of it, you have to make
a script which parses the HTML. Note that the HTML for different sites
may differ, depending on what webserver of software they have
installed.