# Force httpGet to make call from gateway?

**URL:** <https://forum.inductiveautomation.com/t/force-httpget-to-make-call-from-gateway/16833>\
**Category:** Ignition\
**Created:** [January 31, 2018, 10:09pm UTC](https://forum.inductiveautomation.com/t/force-httpget-to-make-call-from-gateway/16833 "2018-01-31T22:09:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ehren](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ehren/32/3367_2.png) [@Ehren](https://forum.inductiveautomation.com/u/Ehren)\
**Post date:** [January 31, 2018, 10:09pm UTC](https://forum.inductiveautomation.com/t/force-httpget-to-make-call-from-gateway/16833/1 "2018-01-31T22:09:36Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 31, 2018, 10:12pm UTC](https://forum.inductiveautomation.com/t/force-httpget-to-make-call-from-gateway/16833/2 "2018-01-31T22:12:43Z")

</div>

Try [system.util.sendRequest()](https://docs.inductiveautomation.com/display/DOC79/system.util.sendRequest). Then in your project’s gateway scripts, handle the request by running httpGet().

---

<div class="post-metadata">

**Author:** ![Ehren](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ehren/32/3367_2.png) [@Ehren](https://forum.inductiveautomation.com/u/Ehren)\
**Post date:** [January 31, 2018, 11:41pm UTC](https://forum.inductiveautomation.com/t/force-httpget-to-make-call-from-gateway/16833/3 "2018-01-31T23:41:22Z")

</div>

Excellent! I’ll give this a shot.

---

<div class="post-metadata">

**Author:** ![Ehren](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ehren/32/3367_2.png) [@Ehren](https://forum.inductiveautomation.com/u/Ehren)\
**Post date:** [February 1, 2018, 3:38pm UTC](https://forum.inductiveautomation.com/t/force-httpget-to-make-call-from-gateway/16833/4 "2018-02-01T15:38:22Z")

</div>

That works nicely. Thanks a bunch pturmel!
