DECLARE LONG URLDownloadToFile IN URLMON.DLL ; LONG, STRING, STRING, LONG, LONG lnResult = URLDownloadToFile(0, "http://west-wind.com/images/wwlogo.gif", "c:\temp\wwlogo.gif", 0, 0) IF lnResult # 0 ? "Failed" ENDIFOr if you need something a little more sophisticated (like if authentication is involved) you can look at the wwHttp class in West Wind Client Tools:
loHttp = CREATEOBJECT("wwHttp") *** Directly download into string/binary stream you can use in Fox *** Options also allow downloading to file directly lcFile = loHttp.HttpGet("http://west-wind.com/images/wwlogo.gif") STRTOFILE(lcFile,"c:\temp\wwlogo.gif")Hope this helps,