From d1100c6293fa6dbfaaac58ee2816aa5aee76d100 Mon Sep 17 00:00:00 2001 From: joe miller Date: Wed, 20 May 2015 13:11:54 -0700 Subject: [PATCH] fix doc example to submit valid json in POST body I don't know if there is some version of curl that auto-generates json but the example didn't work for me on curl 7.32.0. Submitting the data as JSON works though. --- website/source/docs/auth/userpass.html.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/source/docs/auth/userpass.html.md b/website/source/docs/auth/userpass.html.md index 7ecd36cbbf..e5d985c3c3 100644 --- a/website/source/docs/auth/userpass.html.md +++ b/website/source/docs/auth/userpass.html.md @@ -35,7 +35,7 @@ The password should be sent in the POST body encoded as JSON. ```shell $ curl $VAULT_ADDR/v1/auth/userpass/login/mitchellh \ - -d "password=foo" + -d '{"password: "foo"}' ``` The response will be in JSON. For example: