Lantronix SGX 5150 IoT Device Gateway SGX 5150 Command Reference - Page 65
HTTP MKCOL, Directory successfully created. This code is part of the WebDAV standard.
View all Lantronix SGX 5150 IoT Device Gateway manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 65 highlights
5: Configuration Using Web API Note that PUT will overwrite an existing file by the same name. URL: http:///fs/[path]/file HTTP Response Codes: 201: File successfully created. This code is part of the WebDAV standard. 509: Not enough space 500: Other failure Example: # ls -l -rw-r--r-- 1 user wheel 166 Oct 22 2013 file.txt # curl -s -u admin:PASSWORD http://192.168.0.1/fs/ -T file.txt # curl -s -u admin:PASSWORD http://192.168.0.1/fs/ ]> file.txt 166 HTTP MKCOL Used to create new directories (not files) in the file system. MKCOL ?is an HTTP extension from the WebDAV standard. URL: http:///fs/[path]/directory HTTP Response Codes: 201: Directory successfully created. This code is part of the WebDAV standard. 409: Directory already exists 500: Other failure Example: # curl -s -u admin:PASSWORD http://192.168.0.1/fs/dir1 -X MKCOL # curl -s -u admin:PASSWORD http://192.168.0.1/fs/ ]> file.txt 166 SGX 5150 IoT Device Gateway Command Reference 65