Website Entry Point

The Website entry point behaves similarly to the HTTP entry point. It accepts HTTP requests from Air for Cellular devices and forwards them to the destination using HTTP or HTTPS. Unlike the HTTP entry point, it automatically maps the request URI path to the destination URL. For example, an HTTP request sent to http://beam.soracom.io:18080/my/custom/path will be forwarded to https://myserver.example.com/my/custom/path.

Optionally, you can include a path in the destination. When a path is configured, the device's request URI path is appended after it. The original request URI path is not replaced. For example, if the destination includes a path of /base, a request to http://beam.soracom.io:18080/my/custom/path will be forwarded to https://myserver.example.com/base/my/custom/path.

Configuration

Entry Point

Your device should be configured to send data to: http://beam.soracom.io:18080 or http://beam.soracom.io.

Parameters

For details on configuring and using header manipulations, refer to the Header Manipulation page.

To use WebSocket connections, set Destination > Protocol to HTTP or HTTPS. Do not use WS or WSS.

Behavior

For simple HTTP requests, the Website entry point behaves the same as the HTTP entry point.

Advanced Configuration

The Website entry point can also be configured through the Soracom API or CLI by using the SoracomBeam namespace.

Configuration should be performed using http://beam.soracom.io:18080 as the configuration key value.

Parameters

Sample

[
  {
    "key": "http://beam.soracom.io:18080",
    "value": {
      "name": "test",
      "destination": "https://beamtest.soracom.io",
      "enabled": true,
      "addSubscriberHeader": true,
      "addSimIdHeader": true,
      "addMsisdnHeader": true,
      "customHeaders": {
        "X-GROUP-NAME": {
          "action": "replace",
          "headerKey": "X-GROUP-NAME",
          "headerValue": "TEST"
        }
      },
      "addSignature": true,
      "psk": {
        "$credentialsId": "CredentialsID"
      },
      "addAuthorizationHeader": {
        "enabled": false
      }
    }
  }
]