Microsoft ships a redistributable msinet.ocx with a number of products including Visual Basic 5.0, 6.0, Office 2000 Developer, Visual FoxPro 6.0, Visual C++ 5.0, 6.0. This file hosts Microsoft Internet Transfer Control which implements a number of protocols including HTTP and FTP. You need to know the commands that initiate the operations. The code snippet given below shows how to use Microsoft Internet Transfer Control to download a file from a machine. To use the code, make sure that you add a reference to Microsoft Internet Transfer Control. To add a reference to it
Sub HTTPDownloadFile(ByVal
URL As String, ByVal
LocalFileName As String) |