定义的正确语法是什么: $data 为:
{\"username\":\"[$username]\",\"password\":\"[$password]\",\"webdata\": [$syntax]}" \
并将其替换为我的 shell 脚本
result=$(curl -D - -k -m 10 -H "Content-type: application/json; charset=UTF-8" \
-d "{\"username\":\"[$username]\",\"password\":\"[$password]\",\"webdata\": [$syntax]}" \
https://${host}/api 2>/dev/null |head -1)