Language selection:
Skip to main navigation Skip to main content Skip to page footer

Standard HTTP request

Allows you to send an HTTP request to the specified server. The server response is not parsed and cannot be used.

  • Didactum HTTP request supports the single rank request only. 

  • The login and password (or token) must be contained in the same request.

  • If you need a separate login request for access, then this type of work is not supported.

All Didactum monitoring systems support adding the HTTP request element.

Where could this be used?

Could be used for example to communicate with a server, PSIM (Electronic circuit simulation software package), SCADA (Supervisory Control and Data Acquisition), or software program.

Create an HTTP request

To create an HTTP request you have to specify the following parameters:

ParameterDescription
NameThe name of the element in the system
LoginLogin string can be inserted as a macro $LOGIN$
PasswordPassword string can be inserted as a macro $PASSWORD$. For presentation as a hash, the macros $PASSWORD_MD5$ and $PASSWORD_SHA1$ can be used.
RecipientRecipient address string can be inserted as a macro $RECIPIENT$
MessageMessage text in URL encoding, may contain the following %-macros: %1 - logic definition %2 - state of sensors %3 - date and time %4 - logic name %5{id} - sensor name (by identifier or %8) %6{id} - sensor state (by identifier or %8) %7{id} - sensor value (by identifier or %8) %8 - last modified sensor id \n - a new line Message text can be inserted as a macro $MESSAGE$
Request typeType of HTTP request: GET, POST, DELETE, PUT
ServerServer string may contain $-macros
HeadRequest head string may contain $-macros, for multiple head properties, use line breaks or symbol '\n'
DataData string may contain $-macros

The Test button allows you to send HTTP requests (the %-macro will not be filled), and make sure that everything works correctly.

After sending the request, the server response can be seen in the "Server answer" field.

  • HTTP/1.1 200 OK Server: nginx/1.16.1 Date: Wed, 29 Jan 2019 11:10:35 GMT Content-Type: text/xml; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive Expires: -1 Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache <error type="no error" />

The $MAC$ macro can be used to determine a unique system identifier. This will insert a string containing the MAC address of the unit.

To associate the HTTP request task with an event in the system, use logic schemes or group notifications.

This website uses cookies

This website uses cookies to improve user experience. By using our website you consent to all cookies in accordance with our Cookie Policy.

Essential cookies enable basic functions and are necessary for the website to function properly.
Statistics cookies collect information anonymously. This information helps us to understand how our visitors use our website.
Marketing cookies are used by third parties or publishers to display personalized advertisements. They do this by tracking visitors across websites.