# GET HTTP Request in Scripting

**URL:** <https://forum.inductiveautomation.com/t/get-http-request-in-scripting/24825>\
**Category:** Ignition\
**Created:** [May 9, 2019, 10:51am UTC](https://forum.inductiveautomation.com/t/get-http-request-in-scripting/24825 "2019-05-09T10:51:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![irshadh](https://avatars.discourse-cdn.com/v4/letter/i/aeb1de/32.png) [@irshadh](https://forum.inductiveautomation.com/u/irshadh)\
**Post date:** [May 9, 2019, 10:51am UTC](https://forum.inductiveautomation.com/t/get-http-request-in-scripting/24825/1 "2019-05-09T10:51:26Z")

</div>

Hi,  
I am working on a demo project to read variable value from a PLC using HTTP GET Request. I am reading the value of variable **var3** using this script:  
result = system.net.httpGet(“[http://192.168.1.220/dir/cgi-bin/readVal.exe?@GV.var3](http://192.168.1.220/dir/cgi-bin/readVal.exe?@GV.var3)”)

I am getting proper response with variable value to result for first time. But when I send the request again, I am not getting the new value but instead I am getting the last received value.

Anyone can help on this to sort out it.

Thanks in advance.  
Irshad

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [May 9, 2019, 11:35am UTC](https://forum.inductiveautomation.com/t/get-http-request-in-scripting/24825/2 "2019-05-09T11:35:47Z")

</div>

Try setting the `useCaches` parameter to `false`.

[https://docs.inductiveautomation.com/display/DOC80/system.net.httpGet](https://docs.inductiveautomation.com/display/DOC80/system.net.httpGet)

```auto
system.net.httpGet(url = "...", useCaches = false)

```

---

<div class="post-metadata">

**Author:** ![irshadh](https://avatars.discourse-cdn.com/v4/letter/i/aeb1de/32.png) [@irshadh](https://forum.inductiveautomation.com/u/irshadh)\
**Post date:** [May 9, 2019, 11:47am UTC](https://forum.inductiveautomation.com/t/get-http-request-in-scripting/24825/3 "2019-05-09T11:47:50Z")

</div>

This works…  
Thanks for the quick support…
