# system.net.httpGet

**URL:** <https://forum.inductiveautomation.com/t/system-net-httpget/5151>\
**Category:** Ignition\
**Created:** [September 14, 2012, 7:32pm UTC](https://forum.inductiveautomation.com/t/system-net-httpget/5151 "2012-09-14T19:32:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![njsd](https://avatars.discourse-cdn.com/v4/letter/n/54ee81/32.png) [@njsd](https://forum.inductiveautomation.com/u/njsd)\
**Post date:** [September 14, 2012, 7:32pm UTC](https://forum.inductiveautomation.com/t/system-net-httpget/5151/1 "2012-09-14T19:32:06Z")

</div>

Trying to make httpGet work, as simply as a button with script:

[code]# This code would return the source for Google’s homepage

source = system.net.httpGet(“[http://www.google.com](http://www.google.com)”)

print source[/code]

Running the client on a windows 7 64bit with internet connectivity (machine I run designer on). I can use a browser to get to the url, yet when I attempt, I get everytime:

[quote]Traceback (most recent call last):  
File “event:actionPerformed”, line 1, in   
IOError: Connection timed out: connect

Ignition v7.5.2 (b1146)  
Java: Oracle Corporation 1.7.0\_04[/quote]

I’ve tried it as a gateway script as well with no success.

---

<div class="post-metadata">

**Author:** ![greg.simpson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/greg.simpson/32/3135_2.png) [@greg.simpson](https://forum.inductiveautomation.com/u/greg.simpson)\
**Post date:** [September 14, 2012, 9:21pm UTC](https://forum.inductiveautomation.com/t/system-net-httpget/5151/2 "2012-09-14T21:21:07Z")

</div>

Are you connected to the internet or behind a firewall?

Part of that error message is a connection timeout. I ran the exact same script and it returned the source of [google.com](http://www.google.com)

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [September 14, 2012, 9:25pm UTC](https://forum.inductiveautomation.com/t/system-net-httpget/5151/3 "2012-09-14T21:25:31Z")

</div>

That means that Ignition cannot communicate with the website. You probably don’t have internet connection from where you are running the code.

---

<div class="post-metadata">

**Author:** ![njsd](https://avatars.discourse-cdn.com/v4/letter/n/54ee81/32.png) [@njsd](https://forum.inductiveautomation.com/u/njsd)\
**Post date:** [September 18, 2012, 2:27pm UTC](https://forum.inductiveautomation.com/t/system-net-httpget/5151/4 "2012-09-18T14:27:18Z")

</div>

Solved: Was firewalled, miscommunication with IT.

Thanks!
