...
Curl command not surrounded with echo -en “$()”
curl --silent --header "Accept: application/json" -u admin:password http://localhost:8085/objects/TEST/SUBSCRIPTION/.*/SELECTOR
Code Block | ||
---|---|---|
| ||
$ curl --silent --header "Accept: application/json" -u admin:password http://localhost:8085/objects/TEST/SUBSCRIPTION/.*/SELECTOR
{
"queryTime": 0,
"objects": [
{
"messageBrokerName": "TEST",
"objectName": "TestSub",
"objectType": "SUBSCRIPTION",
"entryTime": "28/05/2018 11:07:57 AM",
"fields": {
"SELECTOR": "EAI_method \u003d \u0027notifyStatusChange\u0027 AND EAI_mandant \u003d \u0027000\u0027 AND EAI_routingCode LIKE \u0027%O%\u0027"
}
}
]
} |
Same curl command surrounded with echo -en “$()”
$ echo -en "$(curl curl --silent --header "Accept: application/json" -u admin:password http://localhost:8085/objects/TEST/SUBSCRIPTION/.*/SELECTOR)"
Code Block | ||
---|---|---|
| ||
$ echo -en "$(curl --silent --header "Accept: application/json" -u admin:password http://localhost:8085/objects/TEST/SUBSCRIPTION/.*/SELECTOR)"
{
"queryTime": 0,
"objects": [
{
"messageBrokerName": "TEST",
"objectName": "TestSub",
"objectType": "SUBSCRIPTION",
"entryTime": "28/05/2018 11:06:27 AM",
"fields": {
"SELECTOR": "EAI_method = 'notifyStatusChange' AND EAI_mandant = '000' AND EAI_routingCode LIKE '%O%'"
}
}
]
} |