Is there a property or setting in Outsystems - similar to the one that is available in Postman - that allows my application to globally follow all REST API redirects? Here is what the setting looks like in Postman; it's a simple toggle switch:
It would be great if there were some sort of low-code property or action that is the equivalent of the toggle switch above in Postman.
In my case, I'm getting "Error 308 - "Permanent Redirect" but I can imagine this setting could be useful for all types of redirects, including temporary ones. I saw the older post recommending a piece of .NET code. I'm not sure if that is the only option, or if anyone else has overcome this in another way. Before I (a non-developer) try to teach myself how to implement that .NET code, I would appreciate it if other solutions could be "tossed into the ring" for consideration. Thank you!
Hi Flowcooker,
To my knowledge there's no setting in OutSystems to do this. You will indeed need an OnBeforeRequestAdvanced and some .NET code if you expect temporary redirects. That said, fixing a 308 is of course easy, just use the new URL.
Thank you again, Kilian. I just want to future proof the application in the event of new redirects, and so I'll sort out the .NET way of handling redirects. Always appreciate your time.
Update: I'm sharing that my issue was caused by an avoidable mistake. I was using "http:" instead of "https:" and so I was getting redirected to the secure connection. All I had to do was re-address the call and no more redirect.
Great, those are the easy fixes :).