473,614 Members | 2,321 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5661
On 2 aug, 18:48, Steve <dafella...@yah oo.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
2164
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 = new File("C:\myDirectory"); String list = directory.list(); .... .... .... etc.
1
2046
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 important thing: I am not able to built a synchronise mechanism between the content of the directories where I keep my stuff and the access tables where I keep a lot of additional data for these files.
0
949
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 table to pull the descriptions from for the next combo box. Example tables: Work Done - Main Table Tasks: Drains, Gas, Water (Is in a table of it's on) Task Descriptions: Drains Descriptions, Gas Descriptions, Water Descriptions (Each of these...
1
1323
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 particular option (tick box) selected then they get a particular passage of text inserted into the letter. Firstly is this possible? I know Word can create letters; however I don't think that it can place different passages of text in to the letter,...
2
1549
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 there any controls or simple code out there to do this? TIA -- ats@jbex
3
5605
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 you click refresh, the content on that page is fine. I believe this could possibily a firefox issue. When I load the website in IE6 or IE7 the content is just fine. Any page you visit with IEXporer displays correctly where as if you go to the start...
0
3347
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 working first before I tackle that. Anyway, in my function I can list all the files, but the function I have, no matter how I try, will only return one file -- the last file. My for() loop seems pretty straightforward, so not sure why only the...
3
1406
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 displays the source folders from the application, the directory Why is this, what am I doing wrong? Thanks
3
2782
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 Sub Form_Load() Dim LoadFiles As String Dim strFill As String LoadFiles = dir$("c:\*.*") Do While LoadFiles > "" strFill = strFill & LoadFiles & ";"
0
8197
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8640
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8287
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8443
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7114
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5548
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4058
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2573
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1438
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.