Example
GET /api/param?network.interface.subnetmask HTTP/1.1<CRLF>
Accept: text/plain<CRLF>
Host: 192.168.0.2<CRLF>
Authorization: Basic YWRtaW46dm4tdjJ4<CRLF><CRLF>
Specify the response format by Accept line. Plain text response is returned when this is specified as text/plain. HTML
response is returned when text/html is specified. HTML response is returned when Accept is not specified.
These APIs for getting/setting parameters are protected by basic authentication. Authorization line needs to include
encoded username and password. There are 3 types of usernames, namely admin, operator and user. Available APIs
are different for each username. Join the user name and the password using a colon, Base64 encode this character
string and enter this in the Authorization line.
For example, when
User name admin
Password vn-v2x
then the character string joining the user name and the password with a colon is:
admin:vn-v2x
Base64 encoding of this string yields YWRtaW46dm4tdjJ4. Enter this in the Authorization line. Default password for
each username is vn-v2x.
3) VN-V25/26 returns a response to the client. In the following example, current subnet mask is 255.0.0.0. In
addition, 255.0.0.0 is followed by & and 200 OK, indicating that getting parameter is successful.
Example of VN-V25
HTTP/1.1 200 OK<CRLF>
Connection: close<CRLF>
Content-Length: 80<CRLF>
Content-type: text/plain<CRLF>
Date: Fri, 13 MAY 2005 07:33:12 GMT<CRLF>
Server: JVC VN-V25 API Server<CRLF>
network.interface.subnetmask=255.0.0.0&200 OK<CRLF>
4) The client disconnects TCP80 to end the use of API.
Note: APIs for getting/setting parameters are not restricted by the access restriction function.
14