# httpGet (system.net.httpGet) timeouts

**URL:** <https://forum.inductiveautomation.com/t/httpget-system-net-httpget-timeouts/17622>\
**Category:** Ignition\
**Created:** [April 6, 2018, 10:35am UTC](https://forum.inductiveautomation.com/t/httpget-system-net-httpget-timeouts/17622 "2018-04-06T10:35:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amarth](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarth/32/3313_2.png) [@Amarth](https://forum.inductiveautomation.com/u/Amarth)\
**Post date:** [April 6, 2018, 10:35am UTC](https://forum.inductiveautomation.com/t/httpget-system-net-httpget-timeouts/17622/1 "2018-04-06T10:35:53Z")

</div>

Hello all,

I recently bumped into a strange behavior of the method system.net.httpGet. I use this in a script (shared scope) so that it is executed by the Gateway.

I specify the timeouts like this:

```auto
try:
	logger.info("Demande de Refresh pour le site %s" % ip.value)			
	shared.cmd.refresh(ip.value,param1)
except Exception,e:
	logger.info("ERREUR de Refresh pour le site %s (%s)" % (ip.value, e))

```

```auto
def refresh(ip,username,password):
	url_ = "http://" + ip + [...] 
	system.util.getLogger('refresh').info(url_)
	page = system.net.httpGet(url_,45000,60000,username,password)

```

When I execute all this, I get the timeout message about 20 seconds after calling the method (and not 45 or 60 seconds as specified).

Am I doing something wrong ? How can I make the httpGet method to respect the given timeouts ?

NB: The URL provided works correctly (but slowly) when called in a webbrowser on the Gateway machine.

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/0/023f4d3c17a1b221d78b571017dd5cbc94960d8c.png)
