> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.utils.http.Get

- Component: `appmixer.utils.http.Get`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.utils.http 1.7.5](https://connectors.appmixer.com/connector/appmixer.utils.http/1.7.5.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.utils.http/1.7.5/component/appmixer.utils.http.Get>

This action sends HTTP GET request to external services.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Host url (`url`) | text | Fully qualified uri. |
| Request headers (`headers`) | textarea | JSON object containing request headers. |
| Query parameters (`body`) | textarea | Query parameters expressed as JSON object of key/value pairs |
| Request body in base64 (`bodyBase64Encode`) | toggle | Turn it on to encode request body in base64. |
| Response encoding (`responseEncoding`) | select | Set the encoding for response. Use **null** for binary. Note: Today's browsers follow the WHATWG spec which aliases both 'latin1' and ISO-8859-1 to win-1252. This means that while doing something like http.get(), if the returned charset is one of those listed in the WHATWG spec it's possible that the server actually returned win-1252-encoded data, and using 'latin1' encoding may incorrectly decode the characters. |
| Ignore SSL Certificate Issues (`ignoreSsl`) | toggle | Enable this to ignore SSL certificate validation errors. Warning: This should only be used for testing or with trusted servers as it disables certificate verification. |
| CA Certificate File (`caCertificateFileId`) | filepicker | Optional. Upload custom CA certificate file (.crt, .pem) for servers with self-signed certificates. |
| Client Certificate File (`clientCertificateFileId`) | filepicker | Optional. Upload client certificate file (.crt, .pem) for mutual TLS authentication. |
| Client Private Key File (`clientKeyFileId`) | filepicker | Optional. Upload client private key file (.key, .pem) for mutual TLS authentication. |

## Output ports

### Port `response`

| Field | Type | Description |
| --- | --- | --- |
| `body` | - | - |
| `headers` | - | - |
| `request` | - | - |
| `statusCode` | - | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.utils.http.Get",
  "author": "Tomáš Waldauf <tomas@client.io>",
  "description": "This action sends HTTP GET request to external services.",
  "outPorts": [
    {
      "name": "response",
      "options": [
        {
          "label": "body",
          "value": "body"
        },
        {
          "label": "headers",
          "value": "headers"
        },
        {
          "label": "request",
          "value": "request"
        },
        {
          "label": "statusCode",
          "value": "statusCode"
        }
      ]
    }
  ],
  "inPorts": [
    {
      "name": "in",
      "inspector": {
        "inputs": {
          "url": {
            "type": "text",
            "index": 1,
            "label": "Host url",
            "group": "transformation",
            "tooltip": "Fully qualified uri."
          },
          "headers": {
            "type": "textarea",
            "index": 2,
            "label": "Request headers",
            "group": "transformation",
            "tooltip": "JSON object containing request headers."
          },
          "body": {
            "type": "textarea",
            "index": 3,
            "label": "Query parameters",
            "group": "transformation",
            "tooltip": "Query parameters expressed as JSON object of key/value pairs"
          },
          "bodyBase64Encode": {
            "type": "toggle",
            "index": 4,
            "label": "Request body in base64",
            "group": "advanced",
            "tooltip": "Turn it on to encode request body in base64."
          },
          "responseEncoding": {
            "type": "select",
            "index": 5,
            "group": "advanced",
            "label": "Response encoding",
            "defaultValue": "utf8",
            "options": [
              {
                "value": "ascii",
                "content": "ascii"
              },
              {
                "value": "utf8",
                "content": "utf8 (default)"
              },
              {
                "value": "utf16le",
                "content": "utf16le"
              },
              {
                "value": "base64",
                "content": "base64"
              },
              {
                "value": "latin1",
                "content": "latin1"
              },
              {
                "value": "binary",
                "content": "binary"
              },
              {
                "value": "hex",
                "content": "hex"
              },
              {
                "value": null,
                "content": "no encoding"
              }
            ],
            "tooltip": "Set the encoding for response. Use <b>null</b> for binary. <br/>Note: Today's browsers follow the WHATWG spec which aliases both 'latin1' and ISO-8859-1 to win-1252. This means that while doing something like http.get(), if the returned charset is one of those listed in the WHATWG spec it's possible that the server actually returned win-1252-encoded data, and using 'latin1' encoding may incorrectly decode the characters."
          },
          "ignoreSsl": {
            "type": "toggle",
            "defaultValue": false,
            "index": 6,
            "label": "Ignore SSL Certificate Issues",
            "group": "ssl",
            "tooltip": "Enable this to ignore SSL certificate validation errors. Warning: This should only be used for testing or with trusted servers as it disables certificate verification."
          },
          "caCertificateFileId": {
            "type": "filepicker",
            "index": 7,
            "label": "CA Certificate File",
            "group": "ssl",
            "tooltip": "Optional. Upload custom CA certificate file (.crt, .pem) for servers with self-signed certificates."
          },
          "clientCertificateFileId": {
            "type": "filepicker",
            "index": 8,
            "label": "Client Certificate File",
            "group": "ssl",
            "tooltip": "Optional. Upload client certificate file (.crt, .pem) for mutual TLS authentication."
          },
          "clientKeyFileId": {
            "type": "filepicker",
            "index": 9,
            "label": "Client Private Key File",
            "group": "ssl",
            "tooltip": "Optional. Upload client private key file (.key, .pem) for mutual TLS authentication."
          }
        },
        "groups": {
          "transformation": {
            "label": "Transformation",
            "index": 1
          },
          "advanced": {
            "label": "Advanced",
            "closed": true,
            "index": 2
          },
          "ssl": {
            "label": "SSL/TLS Certificates",
            "closed": true,
            "index": 3
          }
        }
      },
      "schema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "format": "uri"
          },
          "body": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object"
              }
            ]
          },
          "bodyBase64Encode": {
            "type": "boolean"
          },
          "headers": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object"
              }
            ]
          },
          "method": {
            "type": "string"
          },
          "responseEncoding": {
            "enum": [
              "ascii",
              "utf8",
              "utf16le",
              "base64",
              "latin1",
              "binary",
              "hex",
              null
            ]
          },
          "ignoreSsl": {
            "type": "boolean"
          },
          "caCertificateFileId": {
            "type": "string"
          },
          "clientCertificateFileId": {
            "type": "string"
          },
          "clientKeyFileId": {
            "type": "string"
          }
        },
        "required": [
          "url"
        ]
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
