How to pass application/x-www-form-urlencoded in POST body in HTTP method of outbound REST message

aditya174
Tera Guru

Hi,
How to pass application/x-www-form-urlencoded in POST body in HTTP method of outbound REST message

aditya174_0-1718030985304.png

in this 

aditya174_1-1718031095968.png

 

Regards,
Aditya

 

1 REPLY 1

Community Alums
Not applicable

Hi @aditya174 ,

 

It should be application/x-www-form-urlencoded
You are doing it right.

 

SanjayG_1-1718036841087.png

 

The issue is with the content that you are passing-

 

Ensure in the body you store in the below format-

grant_type=client_credentials&client_id=xxxxxxxxxxxxxxxxxxx&client_secret=xxxxxxxxxxxxxxxxxxx&scope=xxxxxxxxxxxxxxxxxxx&username=xxxxxxxxxxxxxxxxxxx&password=xxxxxxxxxxxxxxxxxxx

 

If my response has resolved your query, please consider giving it a thumbs up ‌‌ and marking it as the correct answer‌‌!

 

Thanks & Regards,

Sanjay Kumar