Re: Iterating and downloading a URL that lists files?
- From: "Laurent Bugnion, MVP" <galasoft-lb@xxxxxxxxxx>
- Date: Thu, 02 Aug 2007 10:50:26 +0200
Hi,
Alexey Smirnov wrote:
On Aug 2, 5:15 am, "Jim Bancroft" <sd...@xxxxxxx> wrote:Is there a way to open a URL, one that shows nothing other than a directory
listing, and iteratively go through the list to download the files?
Hi Jim,
you can use a HttpWebRequest with a StreamReader to get the page from
the URL, then the content of the page can be parsed with a regular
expression to get the list of all links and then again use
HttpWebRequest to get the files...
Hope it helps
I did that a long time ago with a Java applet. I then discovered that the page format was different in Netscape (back then) and IE. I hope things are more standard now!
HTH,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft.ch
PhotoAlbum: http://www.galasoft.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
.
- Follow-Ups:
- Re: Iterating and downloading a URL that lists files?
- From: Alexey Smirnov
- Re: Iterating and downloading a URL that lists files?
- References:
- Iterating and downloading a URL that lists files?
- From: Jim Bancroft
- Re: Iterating and downloading a URL that lists files?
- From: Alexey Smirnov
- Iterating and downloading a URL that lists files?
- Prev by Date: .Net Resource
- Next by Date: Re: Cookie problem
- Previous by thread: Re: Iterating and downloading a URL that lists files?
- Next by thread: Re: Iterating and downloading a URL that lists files?
- Index(es):
Relevant Pages
|