Skip to content

HTTP Response Examples ​

A Simple GET Response Example ​

A simple HTTP GET Request was sent to NZ Customs for a response containing the days exchange rates for international currencies.

The script produced and sent the following successful HTTP GET Request.

image-20240325-225035.png

The token number has been intentionally blurred out

Please refer to Anatomy Of An HTTP Request for more detailed information.

The above request resulted in the following HTTP Response being received, along with the exchange rates as the resource.

image-20240325-225417.png

Two cookie lines have been intentionally shortened

The returned resource is available in Statelake in three (3) different formats - its raw state, as XML, and as formatted XML.

image-20240328-000418.png

Example of the raw data

image-20240402-211346.png

Example of the XML data

image-20240402-211539.png

Example of the XML (formatted) data

A Simple POST Response Example ​

An HTTP POST Request was sent via a Custom Script in an Action, with a simple JSON payload (message body) to a server.

The script produced and sent the following successful HTTP POST Request.

image-20240408-235340.png

The above request resulted in the following HTTP Response being received, along with the payload being echoed back in several forms.

image-20240408-235930.png

The Report-To and Reporting-Endpoints lines have been intentionally shortened

The response is available in Statelake in four (4) different formats - its raw state, as Text, as JSON, and as formatted JSON.

image-20240409-000304.png

Example of the raw data

image-20240409-000402.png

Example of the Text data

image-20240409-000458.png

Example of the JSON data

image-20240409-000615.png

Example of the JSON (formatted) data

Please refer to Anatomy Of An HTTP Response for more detailed information.