1

I need to download files using tasker.(detailed post here on softwarerecs)

But I am not able to understand the HTTP_GET task. I want to download different files from various links read from a file, so I tried this settings.

Server:Port    http://
Path           %Line  #this is variable that stores link

Everything else was optional so I left it as it is.

But I get Unknown host error. So I think I'm doing something wrong.

So can you give an example of downloading a file using tasker?

1

1 Answer 1

2

Have a look at the Documentation (search for HTTP GET).

Server:Port    www.example.com:80
Path           path/to/file.txt

This is how you should format that request. The server is just the base of the url (www.example.com) and the Path is the path to the file in the respective server (path/to/file.txt).

3
  • I had read the documentation, but was getting it wrong. This solved the problem finally, Thanks! BTW note that I had to add output filename so that the file actually gets saved, otherwise it was not getting saved. Commented Jul 24, 2014 at 13:40
  • @RegisteredUser I quote from the documentation: "Any returned data is stored in the variable %HTTPD if the content type is text-based (max 4K)". So if you just want to evaluate the response in some way, you don't need to save it to disk first.
    – Markus
    Commented Jul 24, 2014 at 15:01
  • Actually I would be downloading mostly packages for Linux(hundreds of them of small sizes(few KB's or mb's) which totally make up to 1 or 2 GB) Commented Jul 24, 2014 at 15:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .