Help with WebRequest and php (C#)


New member
I'm trying to make a simple loop to download files off a website, but I don't have direct access to the files, I have to submit with this for example:

I thought of using the WebRequest Class in the System.Net library for C#, but I'm not sure how to use it.

I've done this before (I think). In this case the link, returns a file of type .zip, which is fine. I then want to save this to my local drive, which is easy to do.

I don't want to download over 700 files from this site, one at a time, so I'm playing around trying to get this to work automatically with just a loop. the links go like this:

etc etc

So yeah, perfectly set up for a do_while loop, but getting them to download is harder than I remember.
I have to go to work now, so I was wondering if anyone had any ideas. Thanks in advance. :)
how about this simple line of shell script?
for I in `seq 1 100`;do wget -c http://site/?download=${I};done

The only drawback is that all downloaded files are called "index.html?download=<n>".
Works extremely well to pull tons of pictures off a site

EDIT: oh C#, no clue, sorry :(