Ok
Uri uri = new
Uri("
https://www.scoobydoo.com/downloads/velma_statistics.csv");
WebClient webClient = new WebClient();
CredentialCache mycache = new CredentialCache();
mycache.Add(new
Uri("
https://www.scoobydoo.com/home.html"),
"Basic", new NetworkCredential("scoobydoobydoo", "Passw0rd"));
webClient.Credentials = mycache;
webClient.DownloadFile(uri, @"c:\gav.txt");
Now, whats happening is Im trying to download velma_statistics.csv
(cos I love her!!) but its over HTTPS. I can see whats happening -
when I copy and paste the contents of the downloaded gav.txt into a
html page in VS, I get the login page that I would need to firstly
complete in IE before successfully downloading my csv file, again
manually.
So, any ideas? By the way, I like Daphne too but me and Velma have
always had a thing going on...