11.4.3 Response Property

Specifies the response headers and body of the HTTP request.

Property Type

XPRIM_HttpResponse

Examples

The following example reads the response body as a string.

     Define_Com Class(#XPRIM_HttpRequest) Name(#Request)

#Request.DoGet Url('http://. . .')
#TEXT := #Request.Response.AsString

The following example reads the X-TIMESTAMP header in the response sent by the server:

     Define_Com Class(#XPRIM_HttpRequest) Name(#Request)

#Request.DoGet Url('http://. . .')
#TIMESTAMP := #Request.Response.GetHeaderValue('X-TIMESTAMP')