How to download the CSV file in my website from ot

2019-06-09 14:27发布

问题:

In my website I need to download a CSV file from other webserver through coding.

How can I do so?

回答1:

If you want to use HTTP to get the file the System.Net.WebRequest class is probably your best bet. You can probably do a quick Google search on this to find some tutorials.

For FTP see, System.Net.FtpWebRequest