Problem with HTTP Get action when http status = 302 (Moved Temporarily)

788 views
Skip to first unread message

Nicolas Trinh

unread,
Jan 19, 2015, 9:48:16 AM1/19/15
to tas...@googlegroups.com
Hello,

I am using Tasker to call a homemade Google webservices with below URL:
(1) https://script.google.com/macros/s/[WEB_APP ID]/exec?[some args here]

When I execute this URL with the navigator, I can see that it is redirecting to an other URL with a http status 302:
=> The result of this redirection is with an http status 200, so everything is ok.

The problem is that I think that Tasker considers that it is an error and try to call the URL (1) three times !!!
I am not sure it is a correct behavior. I think we should be able to choose if a 3xx http status should be considered correct or not.
=> Maybe is there a workaround for this issue?

Regards,
Nicolas

Nicolas Trinh

unread,
Jan 23, 2015, 3:57:14 AM1/23/15
to tas...@googlegroups.com
I put a lock in my script to avoid this issue.
It will be better if we could have an option in Tasker, something to avoid to call the GET action many times when http status code 302 is returned.
Reply all
Reply to author
Forward
0 new messages