I am downloading a file with the WebClient class, but sometimes the file returns as HTML (I can't do anything about this) What I would like to do is check whether the content is HTML or not using the WebClient class, my code is as follows:
client.DownloadFile(downloadURL, "downloadedfile.zip");