The first check you need to do is to see if we get a response from the server at all. There can be many reasons why you didn't get a response from the server:
- You have the wrong end-point URL.
- The server is under a heavy load (or the network is unreliable) and your request times out.
Use the IsSuccessfulRequest property (of the Response object) to check if your request went through OK.
Use the ErrorCode and ErrorMessage properties (of the Response object) to get an indication of the error.
Define_Com Class(#XPRIM_HttpRequest) Name(#Request)
...
#OK := #Request.Response.IsSuccessfulRequest
#ErrorMessage := #Request.Response.ErrorMessage
#ErrorCode := #Request.Response.ErrorCode