HTTP Request

<< Click to Display Table of Contents >>

Navigation:  Workflow Designer > Activities >

HTTP Request

Previous pageReturn to chapter overviewNext page

Function

http_request

The HTTP Request activity allows you to send an HTTP request to a REST API. There are two versions of this activity available in gooflow:

The container variant of the activity creates a container for each configured status code as well as unmatched status codes (including errors).

The flow variant of the activity allows for output flow nodes for unmatched status codes and other errors, each configured status code creates a seprate node, allowing for different routings depending on the answer from the target host.

 

Input

All input fields can be populated via script or variable for this activity.

Url

The URL for the request, including parameters.

Method

Only one method per activity is allowed, choose which one here. Consult your REST API documentation for provided methods.

Content

The content to be sent with the request, for example the JSON object for a POST request. Can be left empty if not needed.

Content Type

Choose the content type, only one is allowed per activity.

Authorization

The authorization header, for example for bearer tokens.

Disable Authorization Header Validation

Authorization header validation can be disabled client side with this check box.

Expected Status Codes

Add or remove expected status code, add multiple using the tab key. As described above, these will add more containers or output nodes for the activity.

Request Headers

If you want to add additional header information, you can create a JSON object here. Can also be used for authorization headers, it is recommended to only use one of the fields as to not create duplicate headers.

 

Output

Status Code

An int variable to store the status code of the HTTP response.

Parsed Content

An object variable to store the parsed content of the HTTP response. If your HTTP request results in not serializable data, it is recommended to leave this empty or use a memory variable.

Response Headers

An HttpHeaders variable to store the response headers.

Result

An HttpResponseMessage variable to store the raw HTTP response. Can be used to circumvent issues when the request would result in not serializable data.