I am new to C#. I have to download files from HTTP web link.
I have created a string like this:
string baseURL = "http://ladsweb.nascom.nasa.gov/opendap/allData/51/MOD08_D3/2013/278";
WebClient client = new WebClient();
string content = client.DownloadString(baseURL);
string[] filePaths = Directory.GetFiles(content, "*.hdf");
I have to download files from folder 278 which has extension of hdf. but Exception shown like this "Illegal characters in path" I have to create string and for julian day (here 278) I have to modify string and pass it to webclient. what is the best way to get the files from http link .