HTTP(S) Client

The Ewon gateway can act as an HTTP client to send and receive data from other web servers.

A common way to send data to a web server is with an HTTP POST.

  • In BASIC scripting, you can use the PUTHTTP command to perform an HTTP POST to an external server.
  • In Java, you can use the PutHttp method of the ScheduledActionManager class.

You can use these commands to send requests, submit data elements or submit files to a web server.

An HTTP GET can be used to retrieve information from an external server.

  • In BASIC scripting, you can use the GETHTTP command to retrieve a file and store it on the Ewon gateway.
  • In Java, you can use the GetHttp method of the ScheduledActionManager class.

The full explanation for the PUTHTTP and GETHTTP commands is available in the Programming Reference Guide and an example of using the PUTHTTP command can be found https://tools.ewonsupport.biz/post