HTTp GET vs HTTP REQUEST (GET)

334 views
Skip to first unread message

Cristian Cattaneo

unread,
Apr 29, 2020, 1:52:12 PM4/29/20
to Tasker
I'm having problem with the new version of HTTP Action.

Using the "old" HTTP Get I don't have any problem:
HTTP Get
Server:Port  ---> 192.168.1.1:88
Path ---> /JSON?request=controldevicebylabel&ref=123&label=On

With this solution i can control my home automation device.

With the "new" HTTP Request I'm having problem:
Method --> GET
Headers ---> (empty)
Query Parameters ---> /JSON?request=controldevicebylabel&ref=123&label=On

I receive this error:
Error:1
java.until.concurrent.TimeoutException

Where I'm wrong?

Thanks

Cris

João Dias

unread,
Apr 30, 2020, 4:47:17 AM4/30/20
to tas...@googlegroups.com
In the new HTTP Request action you should put the full path in the URL field :)
So something like:  

http://192.168.1.1:88 /JSON?request=controldevicebylabel&ref=123&label=On  

Alternatively you could use the query parameters field like this:
request:controldevicebylabel
ref:123
label:On

and then the URL would be

Hope this clarifies it!

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias

Cristian Cattaneo

unread,
Apr 30, 2020, 6:24:29 AM4/30/20
to tas...@googlegroups.com
Thanks! To simple for my mind  :-D !!!
Thank you so much!!!
Ciao
Cris 

--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/CAG6Z%2BFcp2bnCTBQ3exYxr1m%2Bzte9DXhn76KBWNEwENMB1k9TOQ%40mail.gmail.com.

João Dias

unread,
Apr 30, 2020, 6:55:36 AM4/30/20
to tas...@googlegroups.com
No problem! :)
Reply all
Reply to author
Forward
0 new messages