VIVOTEK
User's Manual - 121
6. Set Server Parameter Values
Note: The access right depends on the URL directory.
Method: GET/POST
Syntax:
http://<servername>/cgi-bin/anonymous/setparam.cgi? <parameter>=<value>
[&<parameter>=<value>…][&update=<value>][&return=<return page>]
http://<servername>/cgi-bin/viewer/setparam.cgi? <parameter>=<value>
[&<parameter>=<value>…][&update=<value>] [&return=<return page>]
http://<servername>/cgi-bin/operator/setparam.cgi? <parameter>=<value>
[&<parameter>=<value>…][&update=<value>] [&return=<return page>]
http://<servername>/cgi-bin/admin/setparam.cgi? <parameter>=<value>
[&<parameter>=<value>…][&update=<value>] [&return=<return page>]
Assign <value> to the parameter <group>_<name>.
Set to 1 to update all fields (no need to update parameter in
each group).
Redirect to the page <return page> after the parameter is
assigned. The <return page> can be a full URL path or relative
path according to the current path. If you omit this parameter, it
will redirect to an empty page.
(Note: The return page can be a general HTML file (.htm, .html)
or a VIVOTEK server script executable (.vspx) file. It cannot be
a CGI command or have any extra parameters. This parameter
must be placed at the end of the parameter list
HTTP/1.0 200 OK\r\n
Content-Type: text/html\r\n
Context-Length: <length>\r\n
\r\n
<parameter pair>
where <parameter pair> is
<parameter>=<value>\r\n
[<parameter pair>]
Only the parameters that you set and are readable will be returned.
Example: Set the IP address of server to 192.168.0.123:
Request:
http://myserver/cgi-bin/admin/setparam.cgi?network_ipaddress=192.168.0.123
Response:
HTTP/1.0 200 OK\r\n
Content-Type: text/html\r\n
Context-Length: 33\r\n
\r\n
network.ipaddress=192.168.0.123\r\n
7. Available parameters on the server
Valid values:
VALID VALUES DESCRIPTION
string[<n>] Text strings shorter than „n‟ characters. The characters “,‟, <,>,& are invalid.
string[n~m] Text strings longer than `n‟ characters and shorter than `m‟ characters. The
characters “,‟, <,>,& are invalid.
password[<n>] The same as string but displays „*‟ instead.
integer Any number between (-2
31
– 1) and (2
31
– 1).
positive integer Any number between 0 and (2
32
– 1).
<m> ~ <n> Any number between „m‟ and „n‟.
domain name[<n>] A string limited to a domain name shorter than „n‟ characters (eg.
www.ibm.com).
email address [<n>] A string limited to an email address shorter than „n‟ characters (eg.
joe@www.ibm.com).
ip address A string limited to an IP address (eg. 192.168.1.1).
mac address A string limited to contain a MAC address without hyphens or colons.
boolean A boolean value of 1 or 0 represents [Yes or No], [True or False], [Enable or
Disable].
<value1>,
<value2>,
<value3>,
…
Enumeration. Only given values are valid.
blank A blank string.