Application Guide
MSNTN01: Controlling the MSNSwitch
Page 14
Get Last Heartbeat Time
HTTP Packet Request
Packet Request:
"GET" <target> "HTTP/1.1"CRLF
"Host:" <host ip>CRLF
"Keep-Alive: 300"CRLF
"Connection: keep-alive"CRLF
"Authorization:Base" <auth>CRLFCRLF ;auth:encoded account(username:password) with base-64
URL: http://<IP>/cgi-bin/heartbeat.cgi? <auth>
IP:
The IP Address of the MSNSwitch.
Auth:
user=<Web Account>
passwd=<Web Password>
HTTP Packet Response
XML format:
"<?xml version='1.0'?>"
"<request>"
“<heartbeat>”YYYY/MM/DD HH:MM”</heartbeat>”
“</request>
Example: Get Last Hearbeat TIme
curl --url "http://192.168.0.42//cgi-bin/heartbeat.cgi?user=admin&passwd=05FE36" --http1.1 --header
"Accept-Encoding: gzip, deflate" --header "Accept: */*" --cookie
"WQKJhuEcnAVA3t7WE+ug6A=2ZZeUIu0LxPi80nEd"
OUTPUT
<?xml version="1.0"?><request><heartbeat>2020/12/09 06:42</heartbeat></request>