---
url: >-
  /statelake/scripting-reference/http-scripting/http-responses/http-response-examples.md
---

# 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**.

*The token number has been intentionally blurred out*

Please refer to [Anatomy Of An HTTP Request](/statelake/scripting-reference/http-scripting/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.

*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.

*Example of the raw data*

*Example of the XML data*

*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**.

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

*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.

*Example of the raw data*

*Example of the Text data*

*Example of the JSON data*

*Example of the JSON (formatted) data*

Please refer to [Anatomy Of An HTTP Response](/statelake/scripting-reference/http-scripting/anatomy-of-an-http-response) for more detailed information.
