Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The HTTP interface is used to send and receive data and information from HTTP server. If the remote HTTP server requires bearer authentication, the required configuration for bearer authentication can be specified here.

...

Info

Changes within this definition file are taking effect immediately. No server restart is required.


Col#Parameter DescriptionScopeUnitMandatory / default value
1Nameit is the key that identifies the
resource within the data point definitions
bearer definition. The name can freely be chosen but has to be unique.stringNonemandatory
2
Type

type of encoding. 

XML, JSON, URL encoded, Text, Form DataNonemandatory3Resource contentit defines the content that is excepted at the HTTP server. The structure and type depends on the used encoding and on the direction (polling or update). Examples and more information can be found within this tutorial. As an alternative, the content can be specified within a separate file. The file name must be specified in "Resource file name"
Bearer method

if static is used, the bearer token is a static one that has to be defined in "Bearer Token or Refresh Url". If dynamic is chosen, the bearer token has to be fetched from a HTTP server periodically. 

Static, DynamicNoneStatic
3Bearer token or refresh URLif static is used, the bearer token has to be defined here. If dynamic is chosen, the HTTP server URL from which the bearer token can be retrieved must be defined here.stringNonemandatory

The following parameters are only required, if "dynamic" is chosen as bearer method:

Col#Parameter DescriptionScopeUnitMandatory / default value
4Refresh methodthe HTTP request method for retrieving the token. POST, PUT, GETNonePOST
5Refresh intervalthe interval in seconds for refreshing the bearer token.1 – 65535seconds60
6Request resourcethe resource that is used for requesting the bearer token. It has to match the name that is used in the HTTP resource definition.Reference to HTTP resource definitionNonemandatory
7Request parametersA comma-separated list of parameters that are used to replace the placeholders within the request resource ({0}, {1}, ...).stringNoneempty
4
8Response Resource
file namehere a file name can be defined that contains content that is excepted at the HTTP server. The file must be located in <WorkspaceDirectory>\DataFiles\. The structure and type depends on the used encoding and on the direction (polling or update). Examples and more information can be found within this tutorial. As an alternative, the content can be specified directly in "Resource content"file name
the resource that is used for extracting the token from the response. It has to match the name that is used in the HTTP resource definition.Reference to HTTP resource definitionNonemandatory
9Response parametersA comma-separated list of parameters that are used to replace the placeholders within the request resource ({0}, {1}, ...).stringNoneempty
10Authentication methodThe authentication method (None, Basic or Digest) if required by the HTTP server.None, Basic, DigestNoneNone
11Authentication userUsername for Basic or Digest HTTP authentication if required by the HTTP server. stringNoneempty
12Authentication passwordPassword for Basic or Digest HTTP authentication if required by the HTTP server. If empty, no HTTP authentication is used.stringNoneempty
13Additional HTTP headersA list of additional HTTP headers which is included in each HTTP request, e.g. for authentication purposes. Additional headers must have the following form: "<key1>: <value1>\r\n<key2>: <value2>\r\n<key3>: <value3>..."stringNoneempty