Author Message
clickme
Joined: Nov 26, 2018
Messages: 6
Offline
when invoking a rest service call from a workflow my api receives the accept header of a post method as */*
I need this to be application/json

I cannot find a way to set this value, even when trying a custom header of "Accept" and setting the value as a property there my api receives
*/*, application/json

is there a way to do this or is this ?

Also I need to read response headers but cannot see how to do that either.
RajeshChandrashekar
Joined: Oct 27, 2016
Messages: 60
Offline
Hi,
the rest task add Accept header implicitly with value */*, there is no support for adding specific accept header currently.

Also you can read only thefollowing from response and not the other response headers
responsePayloadType
responsePayload
oauthToken
responseCode

Thanks,
Rajesh
AnuragAggarwal
Joined: Jun 1, 2014
Messages: 154
Offline
we would try to enhance rest task to fix both the issues mentioned in next release
clickme
Joined: Nov 26, 2018
Messages: 6
Offline
Thanks AnuragAggarwal,

We will look out for that enhancement in a future release then and I am sure it will benefit many other users too.
AnuragAggarwal
Joined: Jun 1, 2014
Messages: 154
Offline
Fixed the code, would be available next release
Go to:   
Mobile view