Where / How is the file downloaded in response to a HTTP Post request?

43 visningar
Hoppa till det första olästa meddelandet

Varun Jain

oläst,
27 apr. 2016 10:12:042016-04-27
till Tasker
I am using HTTP POST requests to export reports using the Zoho Reports API. Zoho Reports in a cloud DMBS.

There API uses only HTTP POST protocol and not the HTTP GET protocol. When I post the request using tasker, it is executed perfectly (as seen by %HTTPR = 200) but the file doesn't get downloaded or maybe I don't know where it gets downloaded. I'm pretty sure it doesn't get downloaded.

What do I need to download / find this file?

Thank you for your help in advance.

Pent

oläst,
27 apr. 2016 10:30:282016-04-27
till Tasker
The Output File parameter.

Pent

Varun Jain

oläst,
27 apr. 2016 11:08:152016-04-27
till tas...@googlegroups.com
Thanks. Will try

Varun Jain
+91 98180 77577

On Wed, Apr 27, 2016 at 8:00 PM, Pent <crafty...@gmail.com> wrote:
The Output File parameter.

Pent

--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/w-VXYo9Yx08/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

Varun Jain

oläst,
27 apr. 2016 15:51:102016-04-27
till tas...@googlegroups.com
This works. thanks. I am also having a lot of trouble with the Data parameter of HTTP POST. I need to pass on the following in this parameter:

ZOHO_SQLQUERY=select events.timems,events.tagid,events.datetime,tags.Client,tags.Site,tags.taglocation from events join tags where events.tagid=tags.tagid

And this needs to be made URL Encoded, ie should look like below when it goes:


&ZOHO_SQLQUERY=select%20events.timems%2events.tagid%2events.datetime%2tags.Client%2tags.Site%2tags.taglocation%20from%20events%20join%20tags%20where%20events.tagid=%3Dtags.tagid


Any ideas?





Varun Jain
+91 98180 77577

nanobrain

oläst,
27 apr. 2016 17:08:102016-04-27
till Tasker
Set a variable e.g. %payload to ZOHO_SQLQUERY=select events.timems,events.tagid,events.datetime,tags.Client,tags.Site,tags.taglocation from events join tags where events.tagid=tags.tagid

then do an action  Variables >> Variable Convert on %payload with the function URL Encode

Then do the HTTP POST with %payload

Varun Jain

oläst,
28 apr. 2016 12:24:212016-04-28
till tas...@googlegroups.com
It chnages spaces to + instead of %20.

Varun Jain
+91 98180 77577

nanobrain

oläst,
29 apr. 2016 11:20:272016-04-29
till Tasker
Then do a javascriptlet

 var result = encodeURIComponent(payload)

then use %result

Varun Jain

oläst,
4 maj 2016 02:29:422016-05-04
till tas...@googlegroups.com
This results in not encoding single quotes.... I've now given up on this for the time being....

Varun Jain
+91 98180 77577

nanobrain

oläst,
4 maj 2016 08:04:312016-05-04
till Tasker
You can always search and replace the offending characters after you used one of the methods above which get you 90% there.
Svara alla
Svara författaren
Vidarebefordra
0 nya meddelanden