Forum Discussion
djondinium
2 years agoExpert
Hi AbhishekGu
We went with protocol, host and url because that's how the help article is telling us we can do https://developer.khoros.com/khoroscommunitydevdocs/reference/httpclientrequestprotocol-host-url
But we tried both ways, even removing variables and using hard coded values, didn't help. We spent so so many hours to make this work, but none seem to work. I am doubting post requests are even possible.
- MatK2 years agoKhoros Staff
djondinium Have you tried changing the body to be formatted for the "application/x-www-form-urlencoded" contentType?
<#assign req = http.client.request(protocol, host, url).body("grant_type=refresh_token&refresh_token=${upAuth.refreshToken}&client_id=${upAuth.clientId}&client_secret=${upAuth.clientSecret}", "application/x-www-form-urlencoded").post() />
Related Content
- 11 years ago
- 2 months ago
- 11 years ago