I have an external service that requires an HTML response from a GET request rather than plain text. ie. content-type header to be set text/html.
I have exposed an API endpoint in Outsystems but I can't find a way to change the content-type from text to html.
I had a look at this ticket: https://www.outsystems.com/forums/discussion/39185/exposed-api-need-to-return-content-type-as-text-xml/ which is for XML and seems to show an AddHeader Server action, but I can't find this anywhere.
Can anyone assist me with how to change the response to text/html? Is this possible?
Hi Craig,
You can find the "Addheader" Server action by,
1.Open Dependencies window.
2.Search for HTTPrequestHandler.
3.double click on Httprequesthandler module.
4. "Add header" Server action will be available in this module, now you can take this action and use it in your logic.
Hope this helps!