Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
August 2, 2008, 4:48 pm
rate this thread
use of Curl to access remote sites.
What is the method for listing a directory after connecting to the
site with Curl?
I've already tested my code for connecting but how do I list whats in
The purpose is to compare the list to the filenames in my database.
Re: Is it possible to list directory content 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:
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