AluminumHaste
Active 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: http://www.domain.com/?download=27
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 http://www.domain.org/?download=27, 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:
http://www.domain/?download=1
http://www.domain/?download=2
http://www.domain/?download=3
.
.
.
http://www.domain.org/?download=700
http://www.domain.org/?download=701
http://www.domain.org/?download=702
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.
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 http://www.domain.org/?download=27, 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:
http://www.domain/?download=1
http://www.domain/?download=2
http://www.domain/?download=3
.
.
.
http://www.domain.org/?download=700
http://www.domain.org/?download=701
http://www.domain.org/?download=702
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.
