Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
1. http://www.youtube-mp3.org/[^]

C#
WebClient webClient = new WebClient();
webClient.Proxy = null;
webClient.UseDefaultCredentials = true;
webClient.DownloadFileCompleted += new AsyncCompletedEventHandler(Complete);
webClient.DownloadProgressChanged += new DownloadProgressChangedEventHandler(Progress);
webClient.DownloadFileAsync(new Uri(_url), _root + _name + ".mp3");


The above returns 'e.Response' = The remote server returned an error 403 Forbidden error.

Now, is it detecting webClient?

Is it because in the browser I didn't use URL and using webClient.

Only reason for webClient is due to removing the saveDialog.

Can I navigate to a website in Webclient, then download off the page?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900