---
 spice-example-sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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"
 
-- 
2.11.0


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to