Application Guide
MSNTN01: Controlling the MSNSwitch
Page 10
6. REST API
For firmware versions MNT.A624 and later only
(For earlier firmware versions, please contact Proxicast for additional documentation)
Basic functions of the MSNSwitch can be controlled through a series of HTTP Packet Requests.
Generate a Cookie-Token for User Login:
HTTP Packet Request
"POST /goform/login HTTP/1.1”CRLF
“Accept: */*”CRLF
“Accept-Encoding: gzip, deflate”CRLF
"Content-Type: application/x-www-form-urlencoded"CRLF
CRLF
“user=“<Web Account> “&password=“<Web Password>
HTTP Packet Response
“Pragma: no-cache”CRLF
“Set-Cookie: WQKJhuEcnAVA3t7WE+ug6A=<token>; HttpOnly; Path=/“CRLF
“Content-Type: text/html”CRLF
“Server: GoAhead-Webs”CRLF
“Location: /index.asp”CRLF
“Date: Thu Jul 1 01:01:01 2020”CRLF
“Cache-Control: no-cache”CRLF
CRLF
NOTE: The generated access token <token> is valid for 24 hours only.
Examples in this section are shown using cURL for Windows. Any software capable of sending and processing
HTTP packets can be used.