How do I post application/x-www-form-urlencoded;charset=UTF-8 body parameters?
I 'm struggling to make an API call to Keycloak direct grant endpoint which is a POST request with some parameters . The curl command works fine : curl -d 'client_id=some-client' -d 'username=my@email.com' -d 'password=my_password' -d 'grant_type=password' 'https://my-keycloak-server/realms/my-realm/protocol/openid-connect/token' but the toddle post complains the grant _type is missing when I make the Body of the request like this : client_id=some-client&grant_type=password&username=my@email.com&password=my_password I don 't know if this is the correct format to be putting in the Body Are you building it out using toddle nodes ? It should be JSON already if so If Keyclock needs it stringified then you could use a formula node for that as well keycloak doesn 't want Json - only wants old school form -url encoded parameters - usually they would be passed like I put above with key1 =value &key2 =value etc - If I pass this as a string made by formulas or as a hardcoded string in the body - I always get the same response . I guess toddle is using fetch under the hood and looking at the docs usually you have to make a specific type of javascript object which probably does some work to encode properly or something - so I guess just putting a string in the body isn 't going to work
.jpeg/public)