Get or Set the HTTP servers configurations.
When set, the specific HTTP server has to be addressed in the argument of this URL. When read, the configurations of two HTTP servers will be returned.
There are two HTTP server database, named HTTPD1 and HTTPD2, in the device. The notification message, image and video could be uploaded to these servers as events were triggered. The event has to be associated with one of these servers before it was enabled.
The Basic authentication is only supported here. If the user name is empty, the device will not do any authentication when it connects to the HTTP server.
Because login account name and password are in HTTP server configurations, the user level account could not access this URL. The error message, ERROR: not authorized, will be returned if the user account uses this URL.
id,state,addr,port,name,password,timer where id : the index of the HTTP servers. 1: HTTPD1 and 2:HTTPD2 state : state of the HTTP server. 0:Disable, 1:Enable addr : address of the HTTP server. The maximum length is 64 including '\0'. port : the HTTP server port number from 1~65535. The default number is 80. name : the user name to login the HTTP server. The maximum length is 32 including '\0'. password : the user password to login the HTTP server. The maximum length is 32 including '\0'. timer : the maximum time in seconds to establish a HTTP connection. It could be from 0~60. 0: no limited connection time to HTTP server. The error message will be returned if the length of any input argument is longer than the maximum length.
HTTP_SERVER='1,0,www.server1.com,80,myname,mypwd,10'
HTTP_SERVER='2,0,www.server2.com,80,myname,mypwd,10'
OK: HTTP_SERVER='1,0,www.server1.com,80,myname,mypwd,10'
or
ERROR: invalid parameters
Valid
http://ip:port/cgi-bin/encoder?USER=Admin&PWD=123456&HTTP_SERVER
or
http://ip:port/cgi-bin/cmd/encoder?HTTP_SERVER
http://ip:port/cgi-bin/encoder?USER=Admin&PWD=123456&HTTP_SERVER=1,1,www.server1.com,80,myname,mypwd,10
or
http://ip:port/cgi-bin/cmd/encoder?USER=Admin&PWD=123456&HTTP_SERVER=1,1,www.server1.com,80,myname,mypwd,10