Operation Manual

Shenzhen Dericam Technology Co .,Limited www.dericam.net
5
IP
IP
IP
IP Camera
Camera
Camera
Camera CGI
CGI
CGI
CGI Summary
Summary
Summary
Summary
All the CGI APIs is based http protocol, IP camera could be manipulate d by CGI command in client or other web
application .
CGI a uthorization : The CGI listed below is required for authorization when it be used , a nd different CGI is not
the same authority needed . A total of three a uthorization s : visitor , operator and Administrator . A uthority set by
the user on the device . IP camera support two specific authorization : Basic authorization in http protocol
Additional parameters directly in the cgi user name and password .
Cgi methods to access : In this article cgi only support get and post method , upgrade.cgi and restore.cgi
only support post method .
G et (Example)
<form name="form2" method="get" action="cgi-bin/hi3510/cleanlog.cgi">
<input name="cururl" type="hidden" >
<input name="name" type="hidden" value="access">
</form>
Post (Example):
<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>
Value of CGI returned : CGI can be divided into two types a ccording to the return value :
To get the device status and parameters , return the text of device status and parameter if CGI is executed
successfully. T he format of return text is the same as javascript v ariable definition .
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";