This content has been marked as final. Show 7 replies
I tried to mean that, I want to get the list of all the files present in a URL.
For example consider i want to explore the list of files present in www.dinesh.com/javaexamples/. I thought that there should be a directory called javaexamples in the server system (www.dinesh.com). So i want to write a client side java program to list all the files.
I had a doubt java will not allow me to do so. But i just want to know is there any other options.
I had a doubt java will not allow me to do so.If for a URL like http://torrent.fedoraproject.org/ the web server returns some form of list of the available 'files' then yes you can get at them with Java or any other languge but if no list is provided, as with most web server I have seen, then you have no way of getting at the 'files' using Java or any other language.
I can confirm that the standard java API will not enable you to list the files in a web directory from the client... I mean, think about it... It'd give every prebubescent halfwit wannabe cracka a way to explore every web directory... and it's childs play on the server side. Cool with me.
corlettk: the reckon cracka is fucking swear word!
corlettk: obviously a very strange dictionary.
Some web servers can be configured to list the files in a given directory if the URL points to that directory and there isn't any kind of default content. But that trick is being used less and less these days, it seems.
If the server doesn't want to provide a list of files (either automatically generated or written by a web designer) then a client can't force the server to do so.
If there are a bunch of example files on a site, you can try to see if the server will auto-list them. If not, you can use Google perhaps to get a list of the URLs.