5.8.4 GET

The GET command allows the program to access HTTP protocol properties.

Syntax:

Command

Keyword

Value

Developer notes

GET

LIST

value

Conditional. XML or JSON bind list name.

FRAGMENT

value

Conditional. XML or JSON Bind fragment name.

INSTRUCTION

value

Conditional. XML processing instruction.

PROPERTY

value

Get HTTP header property.

*LIST

Get all HTTP header properties.

 

The GET command can be used on received inbound properties and the received response properties from an outbound content handler.

All properties in the HTTP response from the remote host are available for GET operation when the SEND of the outbound handlers is successful. Two additional properties STATUS and STATUS-MESSAGE are included to allow access to the HTTP response status and message.

The LIST, FRAGMENT keywords are only available if the InboundXMLBind or InboundJSONBind handler are being used.

The INSTRUCTION keyword is only available if the InboundXMLBind handler is being used.

Example

GET PROPERTY(*LIST) #WRKLST(NAME,VALUE)