Perspective - system.net.httpGet being executed in a script

In perspective the only way I can find to do a http Get is using an http binding on a custom property, is there any way to do the equivalent of system.net.httpGet for vision in perspective? I need to execute the request in a script on a buttons onActionPerformed only.

Why do you think this isn't available in Perspective? (Though you should be using system.net.httpClient() nowadays.)

Is it? I found another post saying it was vision only, sorry. any ideas why when I execute the same code that works in my script console, in the onActionPerformed script of my button I get the following error code in my servers logs:
"Error running action 'component.onActionPerformed' on MainView@C/root/FooterContainer/BypassContainer/ResetCameraButton: Traceback (most recent call last): File "function:runAction", line 2, in runAction IOError: connect timed out"

It doesn't have a connection timeout and successfully gets the desired information in the script console.

In Perspective, the connection originates in the gateway, not in the client. Your Vision clients would be making the GET requests themselves, where Perspective requires such actions to happen at the gateway. Your IT is obviously blocking web requests from your gateway.

According to IT it wouldn't be blocked at the gateway... Thanks for your time, If I find the reason why this is happening will update the post with a solution...

Well, you are getting a connection timeout when the gateway runs the code, which is known to work from a non-gateway origin. That's pretty definitive that there is blockage of some form (route, DNS, proxy, firewall) at the gateway. :man_shrugging:

If your gateway is running on Windows, you might need to change the user the gateway service runs under. LOCAL_SYSTEM might not have privileges for web requests.