3)VN-V686 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

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-V686 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.

6. API for Getting/Changing Parameters of VN-V686

This section provides description of APIs for getting/changing parameters of VN-V686. Make use of the API explained in this section in the way as mentioned in Section 5

.

6.1. General

(1)Getting parameter

Specify API in GET line according to the format below when getting a parameter from VN-V686.

/api/param?ParamA.ParamB.ParamC

The upper limit of this character string is 1024 bytes.

When acquisition is successfully completed, values will be shown in the body of HTTP response, followed by "&200 OK" message.

Example:

ParamA.ParamB.ParamC=Data&200 OK

When an error occurs, an error code will be returned instead of indicating a value in the body of HTTP response. Example:

ParamA.ParamB.ParamC&401 Unauthorized

16

Page 16
Image 16
JVC VN-V686U manual General, Api/param?ParamA.ParamB.ParamC, ParamA.ParamB.ParamC=Data&200 OK