From 723825ff28a30273383e746306178bb7c124ccf0 Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@lothar.com>
Date: Tue, 10 Jul 2007 10:36:37 -0700
Subject: [PATCH] webapi.txt: note that the 'curl' utility can be used to
 exercise most of this interface

---
 docs/webapi.txt | 7 +++++++
 1 file changed, 7 insertions(+)

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 ==
 
-- 
2.45.2