Question

Cour Justice Européenne
Cour Justice Européenne
LU
Cour Justice Européenne
Posted: 2 days 3 hours ago
Last activity: 1 day 3 hours ago
Last activity: 29 Aug 2025 11:22 EDT
API REST
I have to call an API to receive a token allowing a second request.
This is the command :
curl --location --request POST 'https://url-of-api' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'grant_type=client_credentials' \ --data-urlencode 'client_id=aaaaaaa' \ --data-urlencode 'client_secret=bbbbb'
How can I give "data-urlencode" to API ?
Second API has another URL with JSON parameter :
{
"policyId": "QUALIFIED",
"fileName": "test.pdf",
"fileData": "string=="
}