473,406 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Is it possible to list directory content with CURL

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
1 5618
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: John | last post by:
Hi, I wonder if it is possible to list the content of a directory (a directory that contains image files for example) by using a JavaScript method, something like in Java with File directory =...
1
by: Koen | last post by:
Hi all, I have built different databases for managing data I keep for my digital collections of mp3's, e-book's, divx movies and digital photographs. Until now, all these solutions lack one...
0
by: PWendland | last post by:
I have made real simple databases before. This one is more into it then the ones I have done before. I want to choose a task from a combo box, and then have it choose from that selection which...
1
by: Village | last post by:
Hi there, I'm trying to get Access to create reports which will be sent out as letters to a mailing list, these letters would be personalised for each recipient, so that should they have a...
2
by: ats | last post by:
Hope this is the correct group. I am looking to place a set of constantly changing excel files in a directory on my web server. I want to display these as a list of clickable links on a page. Are...
3
by: autospanker | last post by:
Ladies and Gentleman, I have been having this problem that has been driving me insane. I have a website that when viewed in Firefox first, the content in the body area is pushed down. Then when...
0
by: xerc | last post by:
I am trying to create a generic function I can call to download all files from a single remote FTP directory -- using CURL. I want to multi-thread it, but need to get the single thread functionality...
3
by: =?Utf-8?B?UmljaGFyZA==?= | last post by:
Hi, I got latest from an ASP .NET project from TFS. With the project loaded in Visual Studio, I opened a vb source file from this web project, and pressed F5 to run the project. IE opens, and...
3
by: ragazzo | last post by:
Hi, I am using this code in access form to list everything in directory but it did`not show hidden or system files. how works this code to list all files include hidden or system files.? Private...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.