-
January 28th, 2010, 12:39 AM
#1
Listing files at a URL
Does anyone know how (or if it is possible) to get a directory listing for a given URL?
I thought I had it working using HttpWebRequest and specifying the URL and the parsing the HTML directory listing (yuck) that it returned.
However, if the directory contains a file called say "default.htm", then the HTML contents of that file are returned instead of the HTML directory listing.
Is there a smarter way to aceive my goal?
Note: It's read-only, so I don't want to use FTP with a User Id and Password.
Rob
-
Ohhhhh.... Old McDonald was dyslexic, E O I O EEEEEEEEEE.......
-
January 28th, 2010, 02:59 AM
#2
Re: Listing files at a URL
If I look over HTTP protocol, I see no way how to do it. It is possible only if server is configured to do this.
- Make it run.
- Make it right.
- Make it fast.
Don't hesitate to rate my post.
-
January 28th, 2010, 06:28 PM
#3
Re: Listing files at a URL
boudino, I'm tending to agree with you. I suspect it would be a security issue if you could do this by default.
Rob
-
Ohhhhh.... Old McDonald was dyslexic, E O I O EEEEEEEEEE.......
-
January 28th, 2010, 09:39 PM
#4
Re: Listing files at a URL
Then how do search engines work?
-
January 29th, 2010, 03:12 AM
#5
Re: Listing files at a URL
By following links and parsing HMTL documents returned from server.
- Make it run.
- Make it right.
- Make it fast.
Don't hesitate to rate my post.
-
January 29th, 2010, 03:19 AM
#6
Re: Listing files at a URL
thus creating a directory listing
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|