Http post perspective and where the code executes

I want to run code to post to an API and this code has to execute on the Ignition server. We are using Perspective and the session has a button that run the system.util.httpsPost. Is this code executed on the Perspective session or does the code execute on the Ignition server? If this needs to run on the Ignition side then what are my options. I suppose I can create a tag and a tag change script but I find that solution to be not as creative as I want it to be. I am looking for to your suggestions.

All scripting in Perspective is actually executing from the gateway. Web browsers can't (pedants: don't) run Python code.