summaryrefslogtreecommitdiff
path: root/templates/help.tmpl
blob: 5dc096f906daa2cc07ae66af0f579436a6274492 (plain)
1
2
3
4
5
6
7
8
9
10
11
#def title: help
#def header: help
#extends templates.base
#def content
		<p>Usage: POST to <a href="$scheme://$host/u">$scheme://$host/u</a> 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)).</p>
		<p>cURL example:
		<code>curl -b 'uid=42; identifier=360b411581c3d516c8d55c290f039b144cea79ad' -F 'file=@image.png' -F 'filename=image.png' http://myhost/u</code>
		Here user id is 42 and the password is "foobar".
		If you get HTTP 417 responses, try adding:<code>-H 'Expect:'</code></p>
#end def