Force httpGet to make call from gateway?

I have a situation where the gateway has internet access however my clients will not.
It seems the system.net.httpGet() function makes requests directly from the client.

Is it possible to ‘funnel’ the system.net.httpGet() calls through the gateway in some manner?

I considered making a gateway timer script that runs the call every minute then updating a memory tag with necessary info.
However, I was curious if there is a more tactful approach so I’m not having to call the API 24/7 just to make the tag data available when I press the ‘GO’ button in the client (the only time this value is necessary).

Thanks!

Try system.util.sendRequest(). Then in your project’s gateway scripts, handle the request by running httpGet().

2 Likes

Excellent! I’ll give this a shot.

That works nicely. Thanks a bunch pturmel!

1 Like