Results 1 to 3 of 3
Thread: list files from URL on webserver
- 12-19-2011, 11:44 PM #1
Member
- Join Date
- Dec 2011
- Posts
- 6
- Rep Power
- 0
- 12-20-2011, 12:36 AM #2
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,543
- Rep Power
- 11
Re: list files from URL on webserver
I'm not sure the expression "the files in folder on webserver" has a well defined meaning. Or if you do mean something specific by it, what that is.
Filenames and URLs are different sorts of beast. Filenames name actual entities on a disk. Links aside, the hierarchical structure of a file path mirrors the hierarchical structure of the entities on the disk. And it makes sense to ask what the contents of a given folder (given by its path) are.
URLs also have a hierarchical structure, but it is a structure of the names only. Servers are free to interpret the path however they like. (RFC 3986 "a path segment is considered opaque by the general syntax"). And a URL makes no distinction between a "folder" and a "file".
Given a url like http://foo.com/bar/baz.html you might imagine that bar is a folder, but it's not. And you might want to know what other things could replace baz.html and result in a valid return by the server. That's a valid question, but in general a server need not provide you with a way of finding out. If it makes sense, a server may give you something useful if you hit the URL http://foo.com/bar/ but it need not. And what it gives you will be up to the server.
- 12-20-2011, 08:28 PM #3
Re: list files from URL on webserver
Don't double post. Your other thread with virtually the same question has been closed.
how to liat the files in a folder on webserver
dbWhy do they call it rush hour when nothing moves? - Robin Williams
Similar Threads
-
How to get a list of files from an online URL
By crikey in forum Advanced JavaReplies: 6Last Post: 10-02-2011, 05:41 PM -
List of files and directories.
By artemff in forum CLDC and MIDPReplies: 6Last Post: 01-02-2010, 04:06 PM -
how to get the list of war files
By vijayabaskar in forum Java ServletReplies: 0Last Post: 04-03-2009, 08:39 AM -
Is Apache Tomcat webserver redirecting http request to another webserver
By barunva in forum Web FrameworksReplies: 1Last Post: 10-21-2008, 09:21 AM -
How can I get list of files in a directory
By karma in forum New To JavaReplies: 2Last Post: 12-14-2007, 11:20 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks