Back to FabImage Studio website

You are here: Start » Filter Reference » System » HTTP » Http_SendRequest_GET_ByteBuffer

Http_SendRequest_GET_ByteBuffer


Module: FoundationBasic

Sends a GET request to server and receives a binary answer.

Name Type Range Description
Input value inUrl String URL of request. Without parameters.
Input value inHeaders StringArray Request headers to send. They will be automatically encoded.
Input value inHeadersData StringArray Request headers to send. They will be automatically encoded.
Input value inFields StringArray Request data to send. It will be automatically encoded.
Input value inFieldsData StringArray Request data to send. It will be automatically encoded.
Input value inTimeout Integer 0 - Request timeout in seconds.
Input value inAllowUntrusted Bool Whether or not to allow untrusted SSL certificates.
Input value inCaCertFile File* File holding one or more certificates to verify the peer with.
Output value outAnswer ByteBuffer? Answer as binary byte buffer.
Output value outResponseCode Integer Answer code. Typically 200 for OK.

Description

Filter sends a GET request to the server then waits for the server answer. Filter can be used to download files from the remote server.

When inCaCertFile is set to Auto, certificates installed in the operating system are used, otherwise only certificates from the input file are used.

Examples

Filter executed with parameters:

  • inUrl = http://localhost/test
  • inFields = ["param1", "param2"]
  • inFieldsData = ["1", "2"]

Request sent to the server:

GET /test?param1=1&param2=2 HTTP/1.1
Host: localhost
User-Agent: FabImage/1.0
Accept: */*

It is also possible to include custom headers in the request. For this purpose, inHeaders and inHeadersData parameters are used.

Using the following values for these parameters:

  • inHeaders = ["Header1", "Header2"]
  • inHeadersData = ["value1", "value2"]

causes the following headers to be added to the request:

Header1: value1
Header2: value2

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Different size of inFields and inFieldsData in Http_SendRequest_GET_ByteBuffer.
DomainError Different size of inHeaders and inHeadersData in Http_SendRequest_GET_ByteBuffer.
DomainError Empty inUrl in Http_SendRequest_GET_ByteBuffer.
DomainError Invalid inUrl in Http_SendRequest_GET_ByteBuffer.

Complexity Level

This filter is available on Basic Complexity Level.

Disabled in Lite Edition

This filter is disabled in Lite Edition. It is available only in full, FabImage Studio Professional version.

Filter Group

This filter is member of Http_SendRequest_GET filter group.

See Also