Forum Discussion
PaoloT
10 years agoLithium Alumni (Retired)
Hi sachin
If you are expecting JSON, have you tried using (vary the HTTP request as appropriate for your need)
<#assign resp = http.client.request("https", "api.test.com", "/context/path").body("param1=val1", "application/x-www-form-urlencoded").json().post() /> <#if resp.hasError> Error! <#else> <#assign jsonResp = resp.content > ${resp.content} </#if>
Thanks,
Related Content
- 3 months ago
- 10 months ago
- 11 years ago