I have the following small bash script:
TEST=$(curl -X POST -s -H "Content-type: application/json" -X POST http://$SITE/REST/v1/ -d '
{
"Authorization":"Bearer '$TOKEN'"
}
' --trace-ascii /dev/stdout)
In this case, $TOKEN=c4cc0c81e279defd4bd261e9e1550e8a1ded5JKg5
However, when I send the request with --trace-ascii enabled, I can see the following in the output:
{. "Authorization":"Bearer "c4cc0c81e279defd4bd261e9 0040: e1550e8a1ded5JKg5"". }
Any reason why this gets split up? How can I prevent this?
TOKENis already set to the truncated value?-d @post.json