mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-18 18:56:28 +00:00
webapi.txt: note that the 'curl' utility can be used to exercise most of this interface
This commit is contained in:
parent
5264559561
commit
723825ff28
@ -76,6 +76,8 @@ for files and directories which do not yet exist.
|
|||||||
specification (rfc2068), this should return a 200 (OK) code when modifying
|
specification (rfc2068), this should return a 200 (OK) code when modifying
|
||||||
and existing file, and a 201 (Created) code when creating a new file.
|
and existing file, and a 201 (Created) code when creating a new file.
|
||||||
|
|
||||||
|
To use this, run 'curl -T localfile http://localhost:8011/vdrive/global/newfile'
|
||||||
|
|
||||||
DELETE FILEURL
|
DELETE FILEURL
|
||||||
|
|
||||||
This deletes the given file from the vdrive. Note that this *does not*
|
This deletes the given file from the vdrive. Note that this *does not*
|
||||||
@ -208,6 +210,11 @@ for files and directories which do not yet exist.
|
|||||||
|
|
||||||
mkdir -p NEWDIRURL; cp -r DIRNAME/* NEWDIRURL/
|
mkdir -p NEWDIRURL; cp -r DIRNAME/* NEWDIRURL/
|
||||||
|
|
||||||
|
Note that the "curl" utility can be used to provoke this sort of recursive
|
||||||
|
upload, since the -T option will make it use an HTTP 'PUT':
|
||||||
|
|
||||||
|
curl -T /dev/null http://localhost:8011/vdrive/global/newdir?localdir=/home/user/directory-to-upload'
|
||||||
|
|
||||||
|
|
||||||
== POST Forms ==
|
== POST Forms ==
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user