Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-16) was last changed on 24-Aug-2017 14:27 by Ben Spink

This page was created on 21-Jul-2017 07:43 by Ben Spink

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 2 added 2 lines
\\
The base URL on all of these is simply http://domain.com/\\
At line 14 changed 2 lines
GET /myfiles/file1.txt
PUT /anotherfolder/file2.txt
GET /myfiles/file1.txt HTTP/1.1
Authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l
At line 19 added 4 lines
{{{
PUT /anotherfolder/file2.txt HTTP/1.1
Authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l
}}}
At line 22 changed one line
MOVE /myfiles/file1.txt
MOVE /myfiles/file1.txt HTTP/1.1
At line 30 added one line
Authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l
At line 35 changed one line
MKCOL /myfiles2/
MKCOL /myfiles2/ HTTP/1.1
Authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l
At line 47 changed one line
DELETE /myfiles/file1.txt
DELETE /myfiles/file1.txt HTTP/1.1
Authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l
At line 73 added 14 lines
!!STAT\\
Getting info about a single file can be done with HTTP HEAD, or more info from STAT:\\
{{{
HEAD /myfolder/file1.txt HTTP/1.1
Authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l
}}}
Or POST:\\
{{{
command=stat&path=/anotherfolder/file1.txt&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.\\
\\
\\
At line 105 added 26 lines
!!!EXAMPLES\\
\\
Upload a file:\\
{{{
curl -T KB2.txt -u user:pass http://127.0.0.1:8080/KB2.txt
}}}
Download:\\
{{{
curl -u user:pass http://127.0.0.1:8080/KB2.txt -o KB2.txt
}}}
Delete:\\
{{{
curl --data "command=delete&names=/KB2.txt" -u user:pass http://127.0.0.1:8080/
}}}
Rename:\\
{{{
curl --data "command=rename&path=/&name1=KB2.txt&name2=/KB3.txt" -u user:pass http://127.0.0.1:8080/
}}}
MakeDir:\\
{{{
curl --data "command=makedir&path=/myfiles2/" -u user:pass http://127.0.0.1:8080/
}}}
List:\\
{{{
curl --data "command=getXMLListing&path=/&format=jsonobj" -u user:pass http://127.0.0.1:8080/
}}}
Version Date Modified Size Author Changes ... Change note
16 24-Aug-2017 14:27 4.427 kB Ben Spink to previous
15 24-Aug-2017 14:26 4.313 kB Ben Spink to previous | to last
14 24-Aug-2017 14:25 4.208 kB Ben Spink to previous | to last
13 24-Aug-2017 14:23 4.106 kB Ben Spink to previous | to last
12 24-Aug-2017 14:21 4.023 kB Ben Spink to previous | to last
11 24-Aug-2017 14:17 3.9 kB Ben Spink to previous | to last
10 01-Aug-2017 10:50 3.793 kB Ben Spink to previous | to last
9 24-Jul-2017 02:56 3.728 kB Ben Spink to previous | to last
8 24-Jul-2017 02:51 3.755 kB Ben Spink to previous | to last
7 24-Jul-2017 02:49 3.436 kB Ben Spink to previous | to last
6 24-Jul-2017 02:47 2.959 kB Ben Spink to previous | to last
5 24-Jul-2017 02:46 2.914 kB Ben Spink to previous | to last
4 21-Jul-2017 07:55 2.209 kB Ben Spink to previous | to last
3 21-Jul-2017 07:54 2.213 kB Ben Spink to previous | to last
2 21-Jul-2017 07:45 1.387 kB Ben Spink to previous | to last
1 21-Jul-2017 07:43 1.058 kB Ben Spink to last
« This page (revision-16) was last changed on 24-Aug-2017 14:27 by Ben Spink
G’day (anonymous guest)

OLD WIKI!!!#

New: CrushFTPv9#

OLD WIKI!!!#


CrushFTP8 | What's New

Referenced by
API

JSPWiki