iboot-poe-p_v190422w
iBoot-PoE-P
Page 12
4.4.
URL Control
iBoot-PoE-P supports a RESTful API and can be controlled directly by sending a completely formed URL
through a browser window or HTTP command. The URL syntax for control is:
http://<address>?s=<status>&t=<time>&u=<user>&p=<password>
Where:
<address> =
the IP Address of the device, or DNS name that resolves to the IP Address, plus
any HTTP Port if not standard 80
<status> =
The status to change the outlet to:
0 = Off
1 = On
2 = Query only, no outlet change
<time> =
The amount of time to maintain that changed state. (optional). If used, power state
returns to the power state before command was executed.
<user> =
user or admin depending on password used
<password> =
password associated with user
Syntax notes:
The order of the variables is not significant.
The user and password are not required when Auto-Login feature is enabled
(see Section 5.7 for security options.
Examples:
http://192.168.1.254?s=1&u=user&p=user
Turn the outlet on for the default user.
http://192.168.1.254?s=0&t=5
Reboot for 5 seconds with Auto-Login
http://192.168.1.254:8080?s=2&u=admin&p=admin
Return status using http port 8080
URL Command Responses
iBoot-PoE-P will return a response to a URL command as follows:
<location id> <status>
The full http response is
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>iBoot Status</title>
</head>
<body>
<locationID>iBoot-PoE</locationID>
<status>OFF</status>
</body>
</html>
Security Note
Please note that URL commands are sent in clear text and this technique will expose security credentials.
Use only where this is not a concern.