diff --git a/spice-example-sh b/spice-example-sh index cc7c6b7f..6fe5c1f5 100755 --- a/spice-example-sh +++ b/spice-example-sh @@ -59,7 +59,7 @@ fi NODE="${NODE%%\.*}" -DATA="$(curl -f -s -S -k -d "username=$USERNAME&password=$PASSWORD" "https://$PROXY:8006/api2/json/access/ticket")" +DATA="$(curl -f -s -S -k --data-urlencode "username=$USERNAME" --data-urlencode "password=$PASSWORD" "https://$PROXY:8006/api2/json/access/ticket")" echo "AUTH OK"