Hi,
I try to send a curl - command with several options using the exec-command for receiving the access token (with thousands of characters) for an API Interface.
The command looks like this:
<curl -v --url "https://api.xxxx.com/management-api/oauth/token" \ --header 'accept: application/json' \ --header 'authorization: Basic bWFpbEBnZS1iZW5rZXIuZGU6MTlwcDFla3M3OQ==' \ --header 'content-type: application/json' \ --data ' { "grant_type": "client_credentials" } '>
When sending the command, I receive only a part of the token, than the transfer stops after several hundred characters with "...".
The exec command shows "error 3", although it works basically.
Sending the same command using the command line interface, everything is ok and I get the complete token with correct data.
What do I have to change to get the whole access token characters using the exec-command?
Gerhard
stderr output:
stderr-output shows:
-
Expire in 0 ms for 6 (transfer 0x171950)
-
Expire in 1 ms for 1 (transfer 0x171950)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Expire in 0 ms for 1 (transfer 0x171950)
-
Expire in 2 ms for 1 (transfer 0x171950)
-
Expire in 0 ms for 1 (transfer 0x171950)
-
Expire in 0 ms for 1 (transfer 0x171950)
-
Expire in 2 ms for 1 (transfer 0x171950)
-
Expire in 1 ms for 1 (transfer 0x171950)
-
Expire in 1 ms for 1 (transfer 0x171950)
-
Expire in 4 ms for 1 (transfer 0x171950)
-
Expire in 1 ms for 1 (transfer 0x171950)
-
Expire in 1 ms for 1 (transfer 0x171950)
-
Expire in 4 ms for 1 (transfer 0x171950)
-
Expire in 2 ms for 1 (transfer 0x171950)
-
Expire in 2 ms for 1 (transfer 0x171950)
-
Expire in 4 ms for 1 (transfer 0x171950)
-
Expire in 2 ms for 1 (transfer 0x171950)
-
Expire in 2 ms for 1 (transfer...
20.11.2022, 17:02:45node: 6990de2d.6eea9
msg.payload : Object
{ code: 3, message: "Command failed: curl -v --url…"