Zed
Zed

Reputation: 5931

Wget download after POST, make it wait?

I am working on bash script in which I use Wget to supply POST data, and Wget is supposed to make POST request on specific page, and that page is supposed to return file for download.The problem is that, after making request, that page returns file after few seconds, not immediately so Wget only downloads html page, and don't wait for that file to be returned.Is there any option to make this work - make post request and wait a few seconds for a file to be returned from remote server ?

Upvotes: 0

Views: 578

Answers (1)

patrickdamery
patrickdamery

Reputation: 539

If your only problem is that you need more time you can use the sleep command.

You can get more information about it here: http://www.linuxtopia.org/online_books/advanced_bash_scripting_guide/timedate.html

Hope that helped!

Upvotes: 1

Related Questions