Greetings to all.
I would like to know how to download and save a file on my hard drive, in particular a file zipfrom an HTTP server, using the class System.Net.Socket.Sockets.
I know that there are easier ways to download a file from .Net, but I would like to know how to do it with Sockets , if possible, of course, although I am sure that it is.
I tried several things, nothing worked when I have no experience with sockets.
Your help, satisfying my curiosity, is appreciated. Any question is just asking. Thank.
Note
- The file is a standard zip file, however I would like it to work with any type of file.
- File size is different every day.
- The file is downloaded every minute, so caching of such a file must be disabled in order to get the exact version of the update file from the server.
- Example URL file: www.somewhere.com/files/feed/list.zip
source
share