What is the equivalent DevTest REST step for the following CURL POST request that uses --data-urlencode:
curl --location --request POST 'https://localhost/oauth20/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'client_id=qwerty' \
--data-urlencode 'client_secret=123456' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'scope=security:system'
All supported DevTest releases.
The equivalent REST step can be configured as follows.
URL tab:
curl --location --request POST 'https://<hostname>/isam/sps/oauth/oauth20/token'
Headers tab:
--header 'Content-Type: application/x-www-form-urlencoded'
Content tab:
--data-urlencode 'client_id={{$x_api_key}}' \
--data-urlencode 'client_secret={{$x_api_secret}}' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'scope=security:system'
Another option is to run the Curl request from an execute external command step.