shizon Posted June 18, 2003 Posted June 18, 2003 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 Quote
splice Posted July 3, 2003 Posted July 3, 2003 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. Quote -=splice=- It's not my fault I'm a Genius!
Martin Posted July 4, 2003 Posted July 4, 2003 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. :) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.