®
smartDEN
IP-Maxi
User Manual
09 Mar 2018
- 53 -
8. HTTP XML/JSON operation
This operation mode allows custom applications to control the
smartDEN IP-Maxi
without using a Web-browser. The custom application acts as a HTTP client, sending
HTTP GET requests to the
smartDEN IP-Maxi
(Fig. 8.1). As a reply the
smartDEN
IP-Maxi
returns data as either JSON or XML file for parsing and/or processing by the
custom application.
Figure 8.1.
smartDEN IP-Maxi
working as a HTTP server
To receive the current state of the
smartDEN IP-Maxi,
the application requests
the page
current_state.xml
/
current_state.json
, for example:
http://192.168.1.100/current_state.xml
http://192.168.1.100/current_state.json
In order to use this mode, XML/JSON access should be enabled (see
The XML/JSON login process differs depending on the selected Encrypt Password
option.
8.1. XML access
8.1.1.
XML login (encrypted password)
This mode can be used to prevent unauthorized access to
smartDEN IP-Maxi
.
When selected, a two-step login sequence is performed as a protection against
unauthorized access.
The first time the custom application requests the page
current_state.xml
, a
random login key is issued in the reply. Next the custom application uses this key to
encrypt the password. The encrypted password is sent as a parameter with the next
request to the page
current_state.xml
.
Bellow is an example of login process:
Step 1:
Request
http://192.168.1.100/current_state.xml
Reply (login required):
<CurrentState>
<LoginKey>65156</LoginKey>
</CurrentState>