I tried to use CloudFlare API with strings in Bash script:
curl -X POST \
-H "X-Auth-Email: email" \
-H "X-Auth-Key: key" \
-H "Content-Type: application/json" \
-d '[
{"expression": "(http.cookie contains \"ID=$MYSTRING\")", "description":"Login from office"}
]' "https://api.cloudflare.com/client/v4/zones/ZONE_ID/filters"
I want to use $MYSTRING but cannot do this because of single quotes. I tried to use " and \ but CloudFlare show me error. Can I use $MYSTRING with this CURL request? Please help!