If you are downloading a file via HTTP, it does not matter what's on the server side, MVC or not. You just need to use the class
System.Net.HttpWebRequest
or, sometime, simplified class
System.Net.WebClient
:
https://msdn.microsoft.com/en-us/library/system.net.httpwebrequest%28v=vs.110%29.aspx[
^],
https://msdn.microsoft.com/en-us/library/system.net.webclient%28v=vs.110%29.aspx[
^].
By the way, for reference, you can use the source code of my HTTPDownloader I provided here:
how to download a file from internet[
^].
It covers majority of common cases, but does not work in all cases, because it does not deal with authentication and other fine details of HTTP requests. In principle, the site can apply a lot of precautions to deny HTTP requests from anywhere except some certain page on the same site. Sometimes, you can learn all the detail of the request using some HTTP spy tools and replicate it on your downloading code. I mentioned it in one of my past answers referenced below.
See also my past answers:
how to download a file from the server in Asp.net 2.0[
^],
FTP: Download Files[
^],
How to get the data from another site[
^],
get specific data from web page[
^],
Performing a some kind of Web Request and getting result[
^].
See also:
http://en.wikipedia.org/wiki/Web_scraping[
^].
—SA