How to execute Content-Type: application/x-www-form-urlencoded in Call REST Service.

Hey there. We are currently implementing a login function for the SNS LINE. In the implementation of the login function for LIEN, we need to call the Request in the attached image (1) using the Call REST Service specification in Mendix. However, I do not know how to set "Content-Type: application/x-www-form-urlencoded" as a header. How do I execute the attached image (1) Request? ↓attached imag(1) ↓Reference URL "Access Token Issuance".
2 answers

This problem has been solved!

Thank you for your help!

Here is how to do "Content-Type: application/x-www-form-urlencoded" using the "RestCall" action.


1. General tab settings.


2. HTTP headers tab settings


3. Request settings

*The "Form-Data" and "Export Mapping for the Entire Request" settings caused errors during execution and compilation errors.


You misunderstand the application/x-www-form-urlencoded header, you should pass an URL parameters here. Check out an example:

http - How to perform a GET request with application/x-www-form-urlencoded content-type in Go? - Stack Overflow