Directory on HTTP web server url

shizon

Newcomer
Joined
Oct 24, 2002
Messages
6
Anyone know how to get a list of files from an http server? I want to pass a function or method a url and have it give me a list of files/directories.

I know you can do it with FTP, but I'm using BITS so I have to use HTTP. Thanks
 
I don't think this is possible.... what you could do is gather as much information a possible about the directory structure by parsing the HTML code the server sends you. Like a search engine spyder.
 
Depends if the remote server is configured to support this. There is an option under IIS to allow the viewing of directory list, however, HTTP does not natively support any command such as LIST that is implemented by FTP.

The two options are:

1.) Do a "GET /" and see if it gives you a list of the files

or

2.) Work out what files are available by manually parsing the HTML as suggested by Splice.

:)
 
Back
Top