
6
www.dericam.com
Shenzhen Dericam Technology Co,.Ltd
Introduction
All CGI commands listed in this document are based on the HTTP protocol, which can be
executed in a web browser or software client.
Authentication
All cgi commands need authentication before they can be executed. There are 3
different authentications which can be configured in your IP camera:
administrator/user/guest. There are 2 kinds of authentications mechanism. The first
one is the Basic authentication mechanism declared by HTTP protocol. The second
one is including the username/password in the paramaters of CGI command URL.
We only support GET and POST method of HTTP CGI. The command
upgrade.cgi
and
restore.cgi
are used for the POST method, all others commands are GET
methods.
Example for GET method:
<form name="form2" method="get" action="cgi-bin/hi3510/cleanlog.cgi">
<input name="cururl" type="hidden" >
<input name="name" type="hidden" value="access">
</form>
Example for POST method:
<form name="form5" method="post" target="retframe" enctype="multipart/form-data"
action="cgi-bin/hi3510/upgrade.cgi" onSubmit="return upgrade()">
<td colspan="3"><input type="file" name="setting_file" >
<input type="submit" value=" submit" >
</form>
CGI execute return information
For the commands to get information from the IP camera, such as the running
status or configurations.
If the command is executed successfully, there will return a text to show the
information from the IP camera. Each status or parameter is defined as text
variables; you can get its values from the return information after the CGI was
executed. For example:
var bps_1="2048";
var fps_1="25";
var gop_1="50";
var brmode_1="1";
var imagegrade_1="1";
var width_1="704";
var height_1="576";
If the command is execution fails, it will return information with an error code. For
example,
“[Error]Get video attribution error! errcode is 0xa10e6008”
。
For the command to set configurations to the IP camera. If success, it will return
the executing result information, such as
“HTTP/1.0 200 OK”. If fail, it will return