Missing form parameter grant_type

I want to write a CURL
The original text is below

curl --request POST
–url ‘https://tdx.transportdata.tw/auth/realms/TDXConnect/protocol/openid-connect/token
–header ‘content-type: application/x-www-form-urlencoded’
–data grant_type=client_credentials
–data client_id=YOUR_CLIENT_ID
–data client_secret=YOUR_CLIENT_SECRET \

the rewritten block is also attached.


But an error message appears.
The error message is error:invalid_request,error_description missing form parameter grant_type

How do I need to modify it?

Try additionally the BuildRequestData method together with a list of lists

BuildRequestData(list)
Converts a list of two-element sublists, representing name and value pairs, to a string formatted as application/x-www-form-urlencoded media type, suitable to pass to PostText.

Exampke


Taifun

Thank you for your help~ Solved

Great
Please provide a screenshot of the working solution
Taifun