*!* -urlDownloadtofile api can download any web file but you must give it a name and extension in disc yourself (fullpath.) *!*https://msdn.microsoft.com/en-us/library/ms775123(v=vs.85).aspx *!*by luck if the url have an extension you must choose the same extension to make the downloaded file available. *- the code below at least can give you the type of the file downloaded (mime or content-type) Local loRequest,lcUrl m.lcUrl="http://img.over-blog-kiwi.com/1/43/54/07/20160313/ob_1f4998_sam-2260-resized.JPG" m.loRequest = Createobject('MsXml2.XmlHttp') m.loRequest.Open("HEAD",lcUrl,.F.) m.loRequest.Send() Messagebox( m.lcUrl+Chr(13)+"content-type="+m.loRequest.getResponseHeader("content-type")) Messagebox(m.lcUrl+Chr(13)+ "AllResponseHeaders:"+Chr(13)+m.loRequest.getAllResponseHeaders) m.loRequest=Null