XMLHTTP throws exceptions on failures. You should be able to trap these with TRY/CATCH blocks.
+++ Rick ---
>I have this code:
>
>
>loHTTP=CREATEOBJECT('Msxml2.ServerXMLHTTP')
>loHTTP.Open('GET',lcURL,.F.)
>
>* Set a timeout in order to avoid long request to time out the server
>loHTTP.setTimeouts(20000,20000,20000,20000)
>
>loHTTP.Send()
>
>
>I must have that somewhere but I can't remember where it is. On the Send() command, what would be the best approach to detect the success of the operation?