Hi, I am having trouble setting requestBody for POST calls when using crisp API. As mentioned in the official document, ExchangeHintBuilder can be used to specify the methodName, requestHeader and requestBody.(https://documentation.bloomreach.com/library/concepts/crisp-api/getting-started.html)
I have to make a call where the content-type is application/x-www-form-urlencoded. I have tried setting this requestHeader but unfortunately this does not work for me.
The same call in POSTMAN works fine when I set the content-type. POSTMAN also appends some temporary request headers like Accept-Encoding, Content-length, UserAgent, Host etc…
Can someone help me understand where am I going wrong?
I have attached the snippet responsible for this below:
Resource resource = resourceServiceBroker.resolve(“catalog”,path,
Do I need to append every request header before making the call or are there some headers which will be taken care of by CRISP like content-length? Is there some property that needs to be set when making POST calls that I have missed?