Why do you want to go through all the trouble of making a connection with Winsock? You could simply use this API call:
VB Code:
Private Declare Function URLDownloadToFile Lib "urlmon" _ Alias "URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, _ ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long




Reply With Quote