Trigger [Action to] send GET url

Posted on
Thu Jul 13, 2017 7:02 am
qcvictor offline
Posts: 80
Joined: Apr 23, 2015
Location: Quebec, Canada

Trigger [Action to] send GET url

Hi Guys
I'm looking for send simple http url like that "http://10.10.10.12:8080/json.htm?type=command&param=udevice&idx=59&nvalue=0" as action script
I tried with curl (curl http://10.10.10.12:8080/json.htm?type=c ... 9&nvalue=0) but doesn't work
Regards
Vic

Posted on
Thu Jul 13, 2017 9:29 am
jay (support) offline
Site Admin
User avatar
Posts: 18219
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Trigger send GET url

Python script:

Code: Select all
import urllib2
return_string = urllib2.urlopen("http://10.10.10.12:8080/json.htm?type=command&param=udevice&idx=59&nvalue=0").read()


[MODERATOR NOTE] moved to Actions forum since the question is about an action, not a trigger.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Thu Jul 13, 2017 3:06 pm
qcvictor offline
Posts: 80
Joined: Apr 23, 2015
Location: Quebec, Canada

Re: Trigger send GET url

Many thanks Jay, work as expected.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest