I have the following curl:
curl -X 'GET' 'http://some/some/sample' -H 'accept: application/json' -H 'authorization: admin'
From which I get 2 different results from an apache pod(I need it to work here, but it doesn't) and Swagger UI(which give the right output). The one on the right is what I should receive, this is just one example, I need to do this CURL that automatically escapes characters like Swagger UI does, any help would be much appreciated, thank you.
The differences are below:left is mine which should work, right is Swagger UI which works
And I want to use the above output to do the following:
curl -X 'POST' \
'http://some/some' \
-H 'accept: application/json' \
-H 'authorization: admin' \
-H 'Content-Type: application/json' \
-d '{
"components": [
{
"locator": "sample1",
"config": "output from the above GET curl" (it is an xml file)
}
]
}'