Using Http-connector with application/x-www-form-urlencoded as content-type

Hello,

I am trying to make a remote call via service task to get the authorization token . Below is sample postman payload for same .
I tried looking at the forums but not a clear indication on how to use the http-connector and headers to get this done .

Any input ?

Postman payload

curl --location --request POST 'https://<hostName>/../endpoint/default/token' \

--header 'Content-Type: application/x-www-form-urlencoded' \

--data-urlencode 'client_id=XXXX' \

--data-urlencode 'client_secret=XXXX' \

--data-urlencode 'grant_type=client_credentials' \

--data-urlencode 'scope=openid'

Does the data-urlencode attributes goes under POST payload ? Any samples would help .
Thanks,
Romil

1 Like

Hi, romil!
You should send your data-urlencode attributes in payload