From: Brian Warner Date: Tue, 10 Jul 2007 17:36:37 +0000 (-0700) Subject: webapi.txt: note that the 'curl' utility can be used to exercise most of this interface X-Git-Url: https://git.rkrishnan.org/COPYING.TGPPL.html?a=commitdiff_plain;h=723825ff28a30273383e746306178bb7c124ccf0;p=tahoe-lafs%2Ftahoe-lafs.git webapi.txt: note that the 'curl' utility can be used to exercise most of this interface --- diff --git a/docs/webapi.txt b/docs/webapi.txt index 060f2674..4597dbff 100644 --- a/docs/webapi.txt +++ b/docs/webapi.txt @@ -76,6 +76,8 @@ for files and directories which do not yet exist. specification (rfc2068), this should return a 200 (OK) code when modifying 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 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/ + 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 ==