From 08e04afcd2a142f7e4d9ef04b6e019dba65d4e96 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Tue, 22 Sep 2015 07:39:27 -0400 Subject: [PATCH] fixed security instructions with curl --- docs/api.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/api.rst b/docs/api.rst index f42f5c4a2..d4dc9b6f1 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -24,10 +24,13 @@ This means if you plan to use cuRL to experiment with these APIs, you first need :: - curl -d "username=XXXX&password=YYYY&action=login&view=console" http://yourzmip/zm/index.php -c cookies.txt + curl -d "username=XXXX&password=YYYY&action=login&view=console" -c cookies.txt http://yourzmip/zm/index.php replacing *XXXX* and *YYYY* with your username and password, respectively. -Then for each of the examples below, add a ``-c cookies.txt`` at the end of the requests. +Then for each of the examples below, add a ``-b cookies.txt`` to each of the commands below. + +Please make sure you do this in a directory where you have write permissions, otherwise cookies.txt will not be created +and the command will silently fail. Examples (please read security notice above) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^