Discuss this help topic in SecureBlackbox Forum

REST: Determine the type of response (XML or JSON)

To find out if the server has sent a response in XML or JSON format, inspect TElRESTClient.ResponseType property. The return value could be XML, JSON or Unknown.

Response type if determined from Content-Type HTTP header, so you can get Unknown result in case when server didn't set the header.

Once you have determined the response type, you can Handle an XML response or Handle a JSON response.

How To articles about REST client

Discuss this help topic in SecureBlackbox Forum