Expand|Select|Wrap|Line Numbers
- string url = "http://digi-wiz.com/uploads/upload/Nouns";
- string result = null;
- WebClient client = new WebClient();
- result = client.DownloadString( url );
- MessageBox.Show(result);
Now, if you actually go to that website and view source, or just look at it, it shows TWO files there.
Expand|Select|Wrap|Line Numbers
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
- <HTML>
- <HEAD>
- <TITLE>Index of /uploads/upload/Nouns</TITLE>
- </HEAD>
- <BODY>
- <H1>Index of /uploads/upload/Nouns</H1>
- <PRE><IMG SRC="/icons/blank.gif" ALT=" "> <A HREF="?N=D">Name</A> <A HREF="?M=A">Last modified</A> <A HREF="?S=A">Size</A> <A HREF="?D=A">Description</A>
- <HR>
- <IMG SRC="/icons/back.gif" ALT="[DIR]"> <A HREF="/uploads/upload/">Parent Directory</A> 23-Jan-2008 14:58 -
- <IMG SRC="/icons/text.gif" ALT="[TXT]"> <A HREF="180%20Body%20Parts.lll">180 Body Parts.lll</A> 24-Jan-2008 19:36 4k
- <IMG SRC="/icons/text.gif" ALT="[TXT]"> <A HREF="Schaums%20Outlines%20-%20Vocab%20-%20Chapter%201%20-%20Am%20Flughafen.lll">Schaums Outlines - V..></A> 22-Jan-2008 11:21 3k
- </PRE><HR>
- <ADDRESS>Apache/1.3.37 Server at digi-wiz.com Port 80</ADDRESS>
- </BODY></HTML>
180 Body Parts.lll
and then
Schaums Outlilines Vocab - Chapter 2 - Am Flughafen.lll
But if you run that code above it ONLY ever shows the Schaums outlines one. Why is that? It completely skips the line about the 180 Body Parts....Anyone know why and how to fix it?