FTP_SERVER

 

Description

Get or Set the FTP server configurations.

Because login account name and password are in FTP 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.

Input Argument

server,name,password,port,mode,timer
where
  server : the FTP server address. The maximum length is 64 including '\0'.
  name : the user name to login the FTP server. The maximum length is 32 including '\0'.
The rules of name setting are defined in the Valid Character in Login Name section in Valid Characters in URI document.
  password : the user password to login the FTP server. The maximum length is 32 including '\0'.
The rules of password setting are defined in the Valid Character in Login Password section in Valid Characters in URI document.
  port : the FTP service port number from 1 ~ 65535. The default number is 21.
  mode : the FTP mode. 0: passive, 1: active
  timer : the maximum time in msec to establish a FTP connection. It could be from 0~60000.
If it is 0, the connection timer is disable. The device will attempt to connect the FTP server unless something wrong during the connection.
The error message will be returned if the length of any input argument is longer than the maximum length.

Attribute

Return of Message

FTP_SERVER='myftp.server.com,myname,mypwd,port,0,10000'

OK: FTP_SERVER='myftp.server.com,myname,mypwd,port,0,10000'
or
ERROR: FTP_SERVER='myftp.server.com,myname,mypwd,port,0,10000'

Applicability

Status

Valid

See Also

EVENT_RSPIMGn

Example

http://ip:port/cgi-bin/encoder?USER=Admin&PWD=123456&FTP_SERVER
or
http://ip:port/cgi-bin/cmd/encoder?FTP_SERVER

http://ip:port/cgi-bin/encoder?USER=Admin&PWD=123456&FTP_SERVER=myftp.server.com,myname,mypwd,21,0,10000
or
http://ip:port/cgi-bin/cmd/encoder?FTP_SERVER=myftp.server.com,myname,mypwd,21,0,10000

Back to

HOME, ENCODER CGI