| At line 1 changed one line |
| CrushFTP supports REST style operations for file transfer. All you need is an auth header with BASIC auth, or a logged in cookie token.\\ |
| CrushFTP supports REST style operations for file transfer. All you need is an auth header with BASIC auth, or a logged in cookie token. If issuing a POST command, and using the CrushAuth cookie, you must also specify the c2f parameter. The c2f is the last 4 characters of the CrushAuth cookie.\\ |
| At line 3 added one line |
| !!LOGIN\\ |
| At line 11 added one line |
| !!DOWNLOAD/UPLOAD\\ |
| At line 15 removed one line |
|
| At line 19 added one line |
| !!RENAME\\ |
| At line 28 removed one line |
| * As with all POST scenarios, the c2f is required if using a CrushAuth cookie token. The c2f is the last 4 characters of the CrushAuth cookie.\\ |
| At line 32 added 13 lines |
| !!MAKEDIR\\ |
| A make directory can be done via the MKCOL HTTP command, or via a POST with more parameters:\\ |
| {{{ |
| MKCOL /myfiles2/ |
| }}} |
| Or POST:\\ |
| {{{ |
| command=makedir&path=/myfiles2/&c2f=ABCD |
| }}} |
| * This is the same command issued via our WebInterface, so you can always inspect with Chrome for other commands on how we do it.\\ |
| \\ |
| \\ |
| !!DELETE\\ |
| At line 39 removed one line |
| * As with all POST scenarios, the c2f is required if using a CrushAuth cookie token. The c2f is the last 4 characters of the CrushAuth cookie.\\ |
| At line 42 changed one line |
| Multipart from uploading is also possible, but far more complex of a topic. You should already be familiar with how multipart works. The parameters for uploading are:\\ |
| !!LIST\\ |
| Directory listings have no REST command, so POST must be used:\\ |
| At line 58 added 9 lines |
| command=getXMLListing&path=/anotherfolder/&format=stat_dmz&c2f=ABCD |
| }}} |
| \\ |
| *Format can be one of these types:json,jsonobj,stat,stat_dmz. stat_dmz is the most commonly used format type. It contains some summary info about the current directory's permissions followed by the listing for that directory.\\ |
| \\ |
| \\ |
| !!UPLOAD MultiPart\\ |
| Multipart form uploading is also possible, but far more complex of a topic. You should already be familiar with how multipart works. The parameters for uploading are:\\ |
| {{{ |
| At line 52 changed one line |
| * As with all POST scenarios, the c2f is required if using a CrushAuth cookie token. The c2f is the last 4 characters of the CrushAuth cookie.\\ |
| \\ |
| \\ |
| !!LOGOUT\\ |
| A logged in session with a CrushAuth cookie can be logged out so anything pending the logout will be triggered.\\ |
| {{{ |
| command=logout&c2f=ABCD |
| }}} |