Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: How to get the exact error when downloading a file How to get the exact error when downloading a fileTo: NULL Date: 2/7/2008 2:42:00 PM
Hi,
I use the following to download a file from an url.
Is there any way to get hold of the error message.
loXMLHTTP = CREATEOBJECT("MSXML2.XMLHTTP")
loXMLHTTP.Open("GET", "http://10.10.10.253/DownloadFile/Cad/Test.pdf",.F.)
loXMLHTTP.Send()
lcData = loXMLHTTP.ResponseBody
STRTOFILE(lcData, "Test.pdf")
loXMLHTTP.Status, return 404 if the file could not be downloaded
loXMLHTTP.Status, returns 200 if the file was successfully downloaded
How can I get the relevant error message ?
Is there any other property or methods which can be used to get the error
information ?
Please advice.
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
