By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,276 Members | 1,418 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,276 IT Pros & Developers. It's quick & easy.

Is it possible to list directory content with CURL

P: n/a
My site is hosted on a Godaddy reseller site. Godaddy only allows the
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 directory.

The purpose is to compare the list to the filenames in my database.
Aug 2 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.
Aug 2 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.