I am trying to use WebClient to download a file from web using a WinForms application. However, I really only want to download HTML file. Any other type I will
You could issue the first request with the HEAD verb, and check the content-type response header? [edit] It looks like you'll have to use HttpWebRequest for this, though.