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

瀏覽次數:43 次
跳到第一則未讀訊息

Varun Jain

未讀,
2016年4月27日 上午10:12:042016/4/27
收件者: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

未讀,
2016年4月27日 上午10:30:282016/4/27
收件者:Tasker
The Output File parameter.

Pent

Varun Jain

未讀,
2016年4月27日 上午11:08:152016/4/27
收件者: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

未讀,
2016年4月27日 下午3:51:102016/4/27
收件者: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

未讀,
2016年4月27日 下午5:08:102016/4/27
收件者: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

未讀,
2016年4月28日 中午12:24:212016/4/28
收件者:tas...@googlegroups.com
It chnages spaces to + instead of %20.

Varun Jain
+91 98180 77577

nanobrain

未讀,
2016年4月29日 上午11:20:272016/4/29
收件者:Tasker
Then do a javascriptlet

 var result = encodeURIComponent(payload)

then use %result

Varun Jain

未讀,
2016年5月4日 凌晨2:29:422016/5/4
收件者: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

未讀,
2016年5月4日 上午8:04:312016/5/4
收件者:Tasker
You can always search and replace the offending characters after you used one of the methods above which get you 90% there.
回覆所有人
回覆作者
轉寄
0 則新訊息