From 2b1d2bc45cb09e0df180bcbfdf30859b5ea142c7 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Wed, 16 Feb 2011 00:20:57 +0100 Subject: Updated the help template. --- templates/help.tmpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/help.tmpl b/templates/help.tmpl index 95748f5..5dc096f 100644 --- a/templates/help.tmpl +++ b/templates/help.tmpl @@ -5,6 +5,7 @@

Usage: POST to $scheme://$host/u with filedata given to "file" and original filename to "filename". Login is sent by cookies with user id in "uid" and an identifier which is sha1(uid+sha1(password)).

cURL example: - curl -b 'uid=42; identifier=3858f62230ac3c915f300c664312c63f' -F 'file=@image.png' -F 'filename=image.png' http://myhost/u - Here user id is 42 and the password is "foobar".

+ curl -b 'uid=42; identifier=360b411581c3d516c8d55c290f039b144cea79ad' -F 'file=@image.png' -F 'filename=image.png' http://myhost/u + Here user id is 42 and the password is "foobar". + If you get HTTP 417 responses, try adding:-H 'Expect:'

#end def -- cgit v1.2.3