Cisco WVC80N User Guide - Page 41

SMB/CIFS SharedFolder Command, Xml tag description - ip address

Page 41 highlights

Appendix D CGI Commands SMB/CIFS SharedFolder Command Method: GET URL: http:///adm/smb_dirctrl.cgi?server=value[¶meter=value...] Parameter server path Value and description Server address (up to 64 characters) (Optional, depends on the parameter "cmd") The operation folder (up to 128 characters) (Optional) Valid values are: mkdir: create a new folder, given by the "path" parameter cmd rmdir: delete a folder, given by the "path" parameter If this parameter is omitted, the CGI will survey the shared folder list in the given URL. user pass Return: (Optional) The username to login to the server (Optional) The password to login to the server A successful request returns the following case sensitive result. The content is included only when the status is ok. HTTP/1.0 200 OK\r\n ... Content-type: text/xml\r\n ... \r\n \r\n .... Xml tag description: Parameter Status Value and description Value as following (all are in lower case): ok → Create the folder successfully. invalid → Invalid input parameters unauth → Need username/password denied → Denied , resoource occupied file-exist → There is the file, reject the operation. error → Error happened Name The folder name Wireless-N Internet Home Monitoring Camera 40

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66

Appendix D
CGI Commands
40
Wireless-N Internet Home Monitoring Camera
SMB/CIFS SharedFolder Command
Method:
GET
URL:
http://<ip>/adm/smb_dirctrl.cgi?server=value[&parameter=value...]
Parameter
Value and description
server
Server address (up to 64 characters)
path
(Optional, depends on the parameter “cmd”) The operation folder (up to 128 characters)
cmd
(Optional) Valid values are:
mkdir: create a new folder, given by the “path” parameter
rmdir: delete a folder, given by the “path” parameter
If this parameter is omitted, the CGI will survey the shared folder list in the given URL.
user
(Optional) The username to login to the server
pass
(Optional) The password to login to the server
Return:
A successful request returns the following case sensitive result. The <List> content
is included only when the status is ok.
HTTP/1.0 200 OK\r\n
Content-type: text/xml\r\n
...
\r\n
<?xml version=”1.0” encoding=”utf-8”?>\r\n
<List>
<Status></Status>
<Folder>
<Name></Name>
....
</Folder>
</List>
Xml tag description:
Parameter
Value and description
Status
Value as following (all are in lower case):
ok
Create the folder successfully.
invalid
Invalid input parameters
unauth
Need username/password
denied
Denied , resoource occupied
file-exist
There is the file, reject the operation.
error
Error happened
Name
The folder name