Chrome has given me a curl command that I don't fully recognize. What does the $'{...}'
do in the following curl command? I know that the --data-binary
is the switch to put that string in the body of the POST, but I'm trying to understand if $'...
gets "expanded" or something.
curl 'http://localhost.example.com:8080/graphql' \
-H 'cookie: auth.token_key=zztopTuNQ61YYbHGJpfA00' \
-H 'content-type: application/json' \
--data-binary $'{"query":"query workPlanSearch($searchParameters: WorkPlanSearchParameters\u0021) { workPlanSearch( searchParameters: $searchParameters ) { workPlanId } }","variables":{"searchParameters":{"partNumbers":"000-662-7980-001"}},"operationName":"workPlanSearch"}'
Is it a curl thing or a bash thing?