Code: Select all
Prototype.l URLDownloadToFile(pCaller.i,*szURL.c,*szFileName.c,dwReserved.l,*fun)
url.s = "http://www.google.com/"
filename.s = "index.htm"
*szURL.c = @url
*szFileName.c = @filename
If OpenLibrary(0,"urlmon.dll")
Debug CallFunction(0,"URLDownloadToFile",#Null,*szURL.c,*szFileName.c,0,#Null)
Debug GetLastError_()
EndIf
About URLDownloadToFile function:http://msdn.microsoft.com/en-us/library ... S.85).aspx