Appendix D
CGI Commands
SMB/CIFS SharedFolder Command
Method: GET
URL:http://<ip>/adm/smb_dirctrl.cgi?server=value[¶meter=value...]
Parameter | Value and description |
server
path
cmd
user
pass
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
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.
(Optional) The username to login to the server
(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
…
...
\r\n
<?xml version=”1.0”
<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
Name
The folder name
40 |