Hi, in the Web Service you will find a HTTPRequest built-in class that can solve your issue. For instance you can do something like the following :
IMPORT COM
MAIN
DEFINE res com.HTTPResponse
DEFINE req com.HTTPRequest
LET req = com.HTTPRequest.Create("
http://www.domain.com/collections/12345-01_thumb.jpg")
CALL req.setMethod("HEAD")
CALL req.doRequest()
LET res = req.getResponse()
IF res.getStatusCode()== 200 THEN
DISPLAY "Found"
ELSE
DISPLAY "Not found"
END IF
END MAIN
Notice that I'm not sure about the status code returned by the server, but it should be something in 2xx.
Regards,
Frank Gross