"link": "up",
"connected": "yes",
"state": "up",
"mtu": 1500,
"tx-queue": 1000,
"address": "192.168.1.1",
"mask": "255.255.255.0",
"uptime": 2621,
"global": false,
"security-level": "private",
"mac": "50:ff:20:00:00:08",
"auth-type": "none"
}
}
]
B.2 XML Core Interface
Warning: XML Core Interface is deprecated and is maintained for backward
compatibility.
Keenetic Lite provides an HTTP XML API. The API is implemented as /ci resource that
accepts POST XML requests and returns XML after the user agent has been authenticated.
If Keenetic Lite is reset to factory defaults, authentication is not required.
Example B.4. XML API call
Execute the “show interface” command for the WAN interface named ISP. This interface
exists by default in Keenetic Lite.
POST /ci HTTP/1.1
Host: 192.168.1.1
Connection: keep-alive
Content-Length: 177
Origin: http://192.168.1.1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64)
Content-Type: application/xml
Referer: http://192.168.1.1/
<packet ref="/">
<request id="1" ref="former.ifaces[load]">
<command name="show interface">
<name>ISP</name>
</command>
</request>
</packet>
The device responds with the current status of ISP:
HTTP/1.0 200 OK
Server: Ag [47]
Set-Cookie: _authorized=*; path=/
Keenetic Lite (KN-1310) — Command Reference Guide
305
Appendix B HTTP API