I am trying to run a curl command in linux
curl -i -X POST -H 'Content-Type: application/json' -d '{"configuredLevel": "$LOGGINGLEVEL"}' ${i//$WORDTOREMOVE}
I wanted to insert the variable LOGGINGLEVEL
in the payload but I am getting some error with this request.
When I change "$LOGGINGLEVEL"
with some other value eg "INFO"
I am not getting any errors
Is the correct method to insert a variable between two "